From patchwork Wed Sep 13 03:38:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp835992vqx; Tue, 12 Sep 2023 20:54:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5lpAW9n0IPlKf2mOiGNNFxIVAAuKe0NzreOrr/Eim+3ZT42xJyLYLIjsAuDkr5eVyI0Nz X-Received: by 2002:a17:907:7857:b0:9a5:aece:13b0 with SMTP id lb23-20020a170907785700b009a5aece13b0mr889828ejc.36.1694577256471; Tue, 12 Sep 2023 20:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577256; cv=none; d=google.com; s=arc-20160816; b=J3XIIgp3e7tn+sdRz4Hx9uGoujQDRuFOmXmQvT34p5QQqvExi80xYvPoBcqgpCpLAW 5Z0668QCvr04t4QHWglAb/ltiBqZczUyGF+wx90uYCxk4j/ePO0dWxddrO2tIVRrwjql VvC8ZbkFZY2l5p6SPUdHATpYjd4QtRqAtcM8MB5VP/4AwdQTQZsyaPa/7wDKghRGjHjc r1OslAfOB/B8VHOIlpmSTjNFcFi/Gw8qj8qsxdKxrJgMCpWXVLobeg49Cb5ElZU46KEy XEpBTchSoIJbPdaqe+C/pI9HxorAvi7K0qkaMjw1iwMpC10xz6fHwXXsb5OOLe8vO7TA JUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=9RCzOrDSDX1hFGO+vFT/MOdHDFTL49vJUyOAw0K5sn8=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=aNtHE4SswNsm8v/KxcC6HekfIVc3LUpai2CZWOavctumZFXVwPecChzLRdMeHX640A YJtQkmD2WVQUPl5EcUUuNfY0D0pcAVi8hHqdXdRLXqAiGixuaNQhYXmyndwwl6bvCvTd yMxmJQowoB4RST4fkOEV9vH1Ku1xqOwju9p27TnKx56HLVCTaQPyrhYvXt4s3dZWrEXl 93hGCpCJ8NsLlObW0mnSMbbErkzxQx2EhaKCW1d+z4ygcaPEzOgk+knyIxWiClgTI80y Q0X4tLn2djaJuUBG/A4JSGf7F3KeoGhIjUaaTMk71Fl39xlbbfkHe+N+jmq89W0aUKNf f3Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k21-20020a1709065fd500b0098dfdc3f2d9si9369618ejv.342.2023.09.12.20.54.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3B4673954418 for ; Wed, 13 Sep 2023 03:40:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id AC170385483C for ; Wed, 13 Sep 2023 03:39:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC170385483C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxyercLgFlPzEmAA--.64697S3; Wed, 13 Sep 2023 11:39:08 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S5; Wed, 13 Sep 2023 11:39:07 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 01/22] LoongArch: Add tests for ASX vector xvadd/xvadda/xvaddi/xvaddwev/ xvaddwodxvsadd instructions. Date: Wed, 13 Sep 2023 11:38:38 +0800 Message-Id: <20230913033859.6734-2-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S5 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBJAAAs2 X-Coremail-Antispam: 1Uk129KBj9kXoW8JrW3tr1kXr4xCr45CrWkAw4fp5X_WryUGr 15pr17JF1fG3yI9ayUKryUJFyaqrWUAr4qyasrJF17K3sru3WkKFn0qF13A3yDAw4DJFWj vF13tFW5Jr40qr45CwcCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUUkvb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7Cj xVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zV CFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW3AVW8Xw1lYx0E x4A2jsIE14v26F4j6r4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42 xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWU GwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI4 8JMIIF0xvE2Ix0cI8IcVAFwI0_Ar0_tr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26F4j6r4U JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0x vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jzCJPUUUUU= X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893041694503420 X-GMAIL-MSGID: 1776893041694503420 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvadd.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvadda.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddwev-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddwev-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddwev-3.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddwod-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddwod-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvaddwod-3.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsadd-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsadd-2.c: New test. --- .../loongarch/vector/lasx/lasx-xvadd.c | 725 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvadda.c | 785 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvaddi.c | 427 ++++++++++ .../loongarch/vector/lasx/lasx-xvaddwev-1.c | 740 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvaddwev-2.c | 485 +++++++++++ .../loongarch/vector/lasx/lasx-xvaddwev-3.c | 515 ++++++++++++ .../loongarch/vector/lasx/lasx-xvaddwod-1.c | 530 ++++++++++++ .../loongarch/vector/lasx/lasx-xvaddwod-2.c | 560 +++++++++++++ .../loongarch/vector/lasx/lasx-xvaddwod-3.c | 485 +++++++++++ .../loongarch/vector/lasx/lasx-xvsadd-1.c | 650 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvsadd-2.c | 350 ++++++++ 11 files changed, 6252 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadd.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadda.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-3.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-3.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-2.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadd.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadd.c new file mode 100644 index 00000000000..29329572364 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadd.c @@ -0,0 +1,725 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffefefffffefe; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x41cfe01dde000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x41cfe01dde000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x41cfe01dde000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x41cfe01dde000000; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000004000000040; + __m256i_out = __lasx_xvadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffefffefffefffe; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000200; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op0[1]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7f8000007f7fffff; + *((unsigned long *)&__m256i_result[2]) = 0x7f8000007f7fffff; + *((unsigned long *)&__m256i_result[1]) = 0x7f8000007f7fffff; + *((unsigned long *)&__m256i_result[0]) = 0x7f8000007f7fffff; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff900000800; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff900000800; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00b213171dff0606; + *((unsigned long *)&__m256i_op1[2]) = 0x00e9a80014ff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00b213171dff0606; + *((unsigned long *)&__m256i_op1[0]) = 0x00e9a80014ff0000; + *((unsigned long *)&__m256i_result[3]) = 0x00b213171dff0606; + *((unsigned long *)&__m256i_result[2]) = 0x00e9a80014ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x00b213171dff0606; + *((unsigned long *)&__m256i_result[0]) = 0x00e9a80014ff0000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000956a; + *((unsigned long *)&__m256i_op0[2]) = 0x000000004efffe00; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000956a; + *((unsigned long *)&__m256i_op0[0]) = 0x000000004efffe00; + *((unsigned long *)&__m256i_op1[3]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xb500000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xb500000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x007fffffffff9569; + *((unsigned long *)&__m256i_result[2]) = 0xb50000004efffe00; + *((unsigned long *)&__m256i_result[1]) = 0x007fffffffff9569; + *((unsigned long *)&__m256i_result[0]) = 0xb50000004efffe00; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff01; + __m256i_out = __lasx_xvadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000ffff8000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x06f880008000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800080008000b8f1; + *((unsigned long *)&__m256i_op1[3]) = 0x8000010180000101; + *((unsigned long *)&__m256i_op1[2]) = 0xfa08800080000101; + *((unsigned long *)&__m256i_op1[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x800080008000480f; + *((unsigned long *)&__m256i_result[3]) = 0x0001010000010100; + *((unsigned long *)&__m256i_result[2]) = 0x0101000000010100; + *((unsigned long *)&__m256i_result[1]) = 0x0001000000010000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000000010100; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00ffffffffff605a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ffffffffff605a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ffffffffff605a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ffffffffff605a; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x5555555536aaaaac; + *((unsigned long *)&__m256i_op0[2]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_op0[1]) = 0x5555555536aaaaac; + *((unsigned long *)&__m256i_op0[0]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x5555555536aaaaac; + *((unsigned long *)&__m256i_result[2]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_result[1]) = 0x5555555536aaaaac; + *((unsigned long *)&__m256i_result[0]) = 0x55555555aaaaaaac; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000089; + *((unsigned long *)&__m256i_result[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_result[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000089; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000014402080144; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000800000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000008; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[0]) = 0x0202010202020102; + __m256i_out = __lasx_xvadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000403f3fff; + *((unsigned long *)&__m256i_op1[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op1[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000403f3fff; + *((unsigned long *)&__m256i_result[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_result[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_result[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000807e7ffe; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[2]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[1]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[0]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[3]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[2]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[1]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[0]) = 0x6161616161616161; + *((unsigned long *)&__m256i_result[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[2]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[0]) = 0xc2c2c2c2c2c2c2c2; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[0]) = 0x7f807f007f7f817f; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op1[3]) = 0x000000006040190d; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000006040190d; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000860601934; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[1]) = 0x0000000860601934; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800200028; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000045; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000045; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d0005; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[2]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[1]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[0]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000c0000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000040000000; + *((unsigned long *)&__m256i_result[3]) = 0x0020001f001f001e; + *((unsigned long *)&__m256i_result[2]) = 0x001f001fc01f001f; + *((unsigned long *)&__m256i_result[1]) = 0x0020001f001f001e; + *((unsigned long *)&__m256i_result[0]) = 0x001f001f401f001f; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7ffeffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7ffeffffffff; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800000ff800000ff; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010000080040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000080040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[2]) = 0x0000010000080040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000080040; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffeffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffeffff0000; + __m256i_out = __lasx_xvadd_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadda.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadda.c new file mode 100644 index 00000000000..d6b57d1cd44 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvadda.c @@ -0,0 +1,785 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0101000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000008000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0101008000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0101008000000080; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000401000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000402000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000402000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000402000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000402000000; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffeffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100010102; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000102; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000102; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xefefefefefefefef; + *((unsigned long *)&__m256i_op0[2]) = 0xefefefefefefefef; + *((unsigned long *)&__m256i_op0[1]) = 0xefefefefefefef6e; + *((unsigned long *)&__m256i_op0[0]) = 0xeeeeeeeeeeeeeeee; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1010101010101012; + *((unsigned long *)&__m256i_result[2]) = 0x1010101010101012; + *((unsigned long *)&__m256i_result[1]) = 0x1010101010101093; + *((unsigned long *)&__m256i_result[0]) = 0x1111111111111113; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0110000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0110000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0110000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0110000000000080; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1000000000000000; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xce7ffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xce7ffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x327f010101010102; + *((unsigned long *)&__m256i_result[2]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x327f010101010102; + *((unsigned long *)&__m256i_result[0]) = 0x6300000000000000; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff5556aaaa; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff5556aaaa; + *((unsigned long *)&__m256i_op1[3]) = 0x0006ffff0004ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0006ffff0004ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0006ffff0004ffff; + *((unsigned long *)&__m256i_result[2]) = 0x00020000aaa95556; + *((unsigned long *)&__m256i_result[1]) = 0x0006ffff0004ffff; + *((unsigned long *)&__m256i_result[0]) = 0x00020000aaa95556; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xdb801b6d0962003f; + *((unsigned long *)&__m256i_op1[2]) = 0xdb8a3109fe0f0024; + *((unsigned long *)&__m256i_op1[1]) = 0x9a7f997fff01ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xbe632a4f1c3c5653; + *((unsigned long *)&__m256i_result[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_result[2]) = 0x2475cef801f0ffdd; + *((unsigned long *)&__m256i_result[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_result[0]) = 0x419cd5b11c3c5654; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x017e01fe01fe01fe; + *((unsigned long *)&__m256i_op0[2]) = 0x0586060601fe0202; + *((unsigned long *)&__m256i_op0[1]) = 0x017e01fe01fe0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0586060601fe0004; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010001000100001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010001000100001; + *((unsigned long *)&__m256i_result[3]) = 0x017f01fe01ff01fe; + *((unsigned long *)&__m256i_result[2]) = 0x05960616020e0203; + *((unsigned long *)&__m256i_result[1]) = 0x017f01fe01ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x05960616020e0005; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010146; + *((unsigned long *)&__m256i_result[2]) = 0x01010101010e0106; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010146; + *((unsigned long *)&__m256i_result[0]) = 0x01010101010e0106; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[0]) = 0x0010000000100000; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffb79fb74; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffb79fb74; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256i_result[3]) = 0x000000010486048c; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000006; + *((unsigned long *)&__m256i_result[1]) = 0x000000010486048c; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000006; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000020000; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000004411; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000004411; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x00010001000c4411; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100044411; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000002000000018; + *((unsigned long *)&__m256i_op0[2]) = 0x0000002000000019; + *((unsigned long *)&__m256i_op0[1]) = 0x000000200000001e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000002000000019; + *((unsigned long *)&__m256i_op1[3]) = 0x223d76f09f3881ff; + *((unsigned long *)&__m256i_op1[2]) = 0x3870ca8d013e76a0; + *((unsigned long *)&__m256i_op1[1]) = 0x223d76f09f37e357; + *((unsigned long *)&__m256i_op1[0]) = 0x43ec0a1b2aba7ed0; + *((unsigned long *)&__m256i_result[3]) = 0x223d771060c77e19; + *((unsigned long *)&__m256i_result[2]) = 0x3870caad013e76b9; + *((unsigned long *)&__m256i_result[1]) = 0x223d771060c81cc7; + *((unsigned long *)&__m256i_result[0]) = 0x43ec0a3b2aba7ee9; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op0[2]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_op0[1]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op0[0]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2535253514141414; + *((unsigned long *)&__m256i_result[2]) = 0x2535253500002535; + *((unsigned long *)&__m256i_result[1]) = 0x2535253514141414; + *((unsigned long *)&__m256i_result[0]) = 0x2535253500002535; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_op0[1]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_result[2]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_result[1]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_result[0]) = 0x0010000f0000000f; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000504f00002361; + *((unsigned long *)&__m256i_op0[2]) = 0xffff8f81000040e4; + *((unsigned long *)&__m256i_op0[1]) = 0x0000504f00002361; + *((unsigned long *)&__m256i_op0[0]) = 0xffff8f81000040e4; + *((unsigned long *)&__m256i_op1[3]) = 0x000007ff000007ff; + *((unsigned long *)&__m256i_op1[2]) = 0x000007ff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000007ff000007ff; + *((unsigned long *)&__m256i_op1[0]) = 0x000007ff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000584e00002b60; + *((unsigned long *)&__m256i_result[2]) = 0x0000787dffffbf1c; + *((unsigned long *)&__m256i_result[1]) = 0x0000584e00002b60; + *((unsigned long *)&__m256i_result[0]) = 0x0000787dffffbf1c; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010200000000; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010200000000; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x7fef010000010100; + *((unsigned long *)&__m256i_result[2]) = 0x7fef010000010100; + *((unsigned long *)&__m256i_result[1]) = 0x7fef010000010100; + *((unsigned long *)&__m256i_result[0]) = 0x7fef010000010100; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000001fe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40b2bf4d30313031; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fffa2bea2be; + *((unsigned long *)&__m256i_op0[1]) = 0x40b2bf4d30313031; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fffa2bea2be; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x40b240b330313031; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff5d425d42; + *((unsigned long *)&__m256i_result[1]) = 0x40b240b330313031; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff5d425d42; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000100040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000100040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000100040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000100040; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000100040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000100040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000100080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000100080; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff896099cbdbfff1; + *((unsigned long *)&__m256i_op0[2]) = 0xc987ffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xff896099cbdbfff1; + *((unsigned long *)&__m256i_op0[0]) = 0xc987ffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00769f673424000f; + *((unsigned long *)&__m256i_result[2]) = 0x3678000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x00769f673424000f; + *((unsigned long *)&__m256i_result[0]) = 0x3678000100000001; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadda_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000500000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000700000032; + *((unsigned long *)&__m256i_result[1]) = 0x0000000500000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000700000032; + __m256i_out = __lasx_xvadda_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op1[3]) = 0x00003feec0108022; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fe9c015802c; + *((unsigned long *)&__m256i_op1[1]) = 0x00003feec0108022; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fe9c015802c; + *((unsigned long *)&__m256i_result[3]) = 0x00007f124010c022; + *((unsigned long *)&__m256i_result[2]) = 0x00007f174015c02c; + *((unsigned long *)&__m256i_result[1]) = 0x00007f124010c022; + *((unsigned long *)&__m256i_result[0]) = 0x00007f174015c02c; + __m256i_out = __lasx_xvadda_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x05ea05ea05ea05ec; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101000000010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000020202020202; + *((unsigned long *)&__m256i_result[2]) = 0x0101000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000020202020202; + *((unsigned long *)&__m256i_result[0]) = 0x0101000000010000; + __m256i_out = __lasx_xvadda_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddi.c new file mode 100644 index 00000000000..054bf6e55df --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddi.c @@ -0,0 +1,427 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x44bb2cd3a35c2fd0; + *((unsigned long *)&__m256i_op0[0]) = 0xca355ba46a95e31c; + *((unsigned long *)&__m256i_result[3]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_result[2]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_result[1]) = 0x61d849f0c0794ced; + *((unsigned long *)&__m256i_result[0]) = 0xe75278c187b20039; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffbf7f7fff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe651bfff; + *((unsigned long *)&__m256i_result[3]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_result[2]) = 0x1d1d1d1ddd9d9d1d; + *((unsigned long *)&__m256i_result[1]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_result[0]) = 0x1d1d1d1d046fdd1d; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1515151515151515; + *((unsigned long *)&__m256i_result[2]) = 0x1515151515151515; + *((unsigned long *)&__m256i_result[1]) = 0x1515151515151515; + *((unsigned long *)&__m256i_result[0]) = 0x1515151515151515; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1818181818181818; + *((unsigned long *)&__m256i_result[2]) = 0x1818181818181818; + *((unsigned long *)&__m256i_result[1]) = 0x1818181818181818; + *((unsigned long *)&__m256i_result[0]) = 0x1818181818181818; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00007fff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[2]) = 0x0202810102020202; + *((unsigned long *)&__m256i_result[1]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[0]) = 0x0202810102020202; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[2]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[1]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[0]) = 0x0909090909090909; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ffce20; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ffce20; + *((unsigned long *)&__m256i_result[3]) = 0x1514151415141514; + *((unsigned long *)&__m256i_result[2]) = 0x151415141514e335; + *((unsigned long *)&__m256i_result[1]) = 0x1514151415141514; + *((unsigned long *)&__m256i_result[0]) = 0x151415141514e335; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0606060606060606; + *((unsigned long *)&__m256i_result[2]) = 0x0606060606060606; + *((unsigned long *)&__m256i_result[1]) = 0x0606060606060606; + *((unsigned long *)&__m256i_result[0]) = 0x0606060606060606; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1212121212121212; + *((unsigned long *)&__m256i_result[2]) = 0x1212121212121212; + *((unsigned long *)&__m256i_result[1]) = 0x1212121212121212; + *((unsigned long *)&__m256i_result[0]) = 0x1212121212121212; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001200000012; + *((unsigned long *)&__m256i_result[3]) = 0x1a1a1a2c1a1a1a2c; + *((unsigned long *)&__m256i_result[2]) = 0x1a1a1a2c1a1a1a2c; + *((unsigned long *)&__m256i_result[1]) = 0x1a1a1a2c1a1a1a2c; + *((unsigned long *)&__m256i_result[0]) = 0x1a1a1a2c1a1a1a2c; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x1d1d1d1e1d1d1d1e; + *((unsigned long *)&__m256i_result[2]) = 0x1d1d1d1e1d1d1d1e; + *((unsigned long *)&__m256i_result[1]) = 0x1d1d1d1e1d1d1d1e; + *((unsigned long *)&__m256i_result[0]) = 0x1d1d1d1e1d1d1d1e; + __m256i_out = __lasx_xvaddi_bu (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[2]) = 0x5982000200020002; + *((unsigned long *)&__m256i_result[1]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[0]) = 0x5982000200020002; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[3]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[2]) = 0x001f001f02c442af; + *((unsigned long *)&__m256i_result[1]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[0]) = 0x001f001f02c442af; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x807e80fd80fe80fd; + *((unsigned long *)&__m256i_op0[2]) = 0x80938013800d8002; + *((unsigned long *)&__m256i_op0[1]) = 0x807e80fd80fe0000; + *((unsigned long *)&__m256i_op0[0]) = 0x80938013800d0005; + *((unsigned long *)&__m256i_result[3]) = 0x8091811081118110; + *((unsigned long *)&__m256i_result[2]) = 0x80a6802680208015; + *((unsigned long *)&__m256i_result[1]) = 0x8091811081110013; + *((unsigned long *)&__m256i_result[0]) = 0x80a6802680200018; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000003f00390035; + *((unsigned long *)&__m256i_op0[2]) = 0x8015003f0006001f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000003f00390035; + *((unsigned long *)&__m256i_op0[0]) = 0x8015003f0006001f; + *((unsigned long *)&__m256i_result[3]) = 0x000b004a00440040; + *((unsigned long *)&__m256i_result[2]) = 0x8020004a0011002a; + *((unsigned long *)&__m256i_result[1]) = 0x000b004a00440040; + *((unsigned long *)&__m256i_result[0]) = 0x8020004a0011002a; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0016001600160016; + *((unsigned long *)&__m256i_result[2]) = 0x0016001600160016; + *((unsigned long *)&__m256i_result[1]) = 0x0016001600160016; + *((unsigned long *)&__m256i_result[0]) = 0x0016001600160016; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xa1a1a1a1a1a1a1a1; + *((unsigned long *)&__m256i_op0[2]) = 0xa1a1a1a15e5e5e5e; + *((unsigned long *)&__m256i_op0[1]) = 0xa1a1a1a1a1a1a1a1; + *((unsigned long *)&__m256i_op0[0]) = 0xa1a1a1a15e5e5e5e; + *((unsigned long *)&__m256i_result[3]) = 0xa1bfa1bfa1bfa1bf; + *((unsigned long *)&__m256i_result[2]) = 0xa1bfa1bf5e7c5e7c; + *((unsigned long *)&__m256i_result[1]) = 0xa1bfa1bfa1bfa1bf; + *((unsigned long *)&__m256i_result[0]) = 0xa1bfa1bf5e7c5e7c; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000100080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000100080; + *((unsigned long *)&__m256i_result[3]) = 0x001a001a001a009a; + *((unsigned long *)&__m256i_result[2]) = 0x001a001a002a009a; + *((unsigned long *)&__m256i_result[1]) = 0x001a001a001a009a; + *((unsigned long *)&__m256i_result[0]) = 0x001a001a002a009a; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x001c001c001c001c; + *((unsigned long *)&__m256i_result[2]) = 0x001c001c001c001c; + *((unsigned long *)&__m256i_result[1]) = 0x001c001c001c001c; + *((unsigned long *)&__m256i_result[0]) = 0x001c001c001d001d; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7200000072000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7200000072000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7200000072000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[3]) = 0x721e001e721e001e; + *((unsigned long *)&__m256i_result[2]) = 0x721e001e721e001e; + *((unsigned long *)&__m256i_result[1]) = 0x721e001e721e001e; + *((unsigned long *)&__m256i_result[0]) = 0x721e001e721e001e; + __m256i_out = __lasx_xvaddi_hu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[2]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[1]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[0]) = 0x0000001900000019; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000600000006; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[2]) = 0x0000001a0000001a; + *((unsigned long *)&__m256i_result[1]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[0]) = 0x0000001a0000001a; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[2]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[1]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[0]) = 0x0000001900000019; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001d0000001d; + *((unsigned long *)&__m256i_result[2]) = 0x0000001d0000001d; + *((unsigned long *)&__m256i_result[1]) = 0x0000001d0000001d; + *((unsigned long *)&__m256i_result[0]) = 0x0000001d0000001d; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000600000006; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000001fffd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000001fffd; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000700020004; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000700020004; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000008; + __m256i_out = __lasx_xvaddi_wu (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000019410000e69a; + *((unsigned long *)&__m256i_op0[2]) = 0xf259905a0c126604; + *((unsigned long *)&__m256i_op0[1]) = 0x0000883a00000f20; + *((unsigned long *)&__m256i_op0[0]) = 0x6d3c2d3aa1c82947; + *((unsigned long *)&__m256i_result[3]) = 0x000019410000e6aa; + *((unsigned long *)&__m256i_result[2]) = 0xf259905a0c126614; + *((unsigned long *)&__m256i_result[1]) = 0x0000883a00000f30; + *((unsigned long *)&__m256i_result[0]) = 0x6d3c2d3aa1c82957; + __m256i_out = __lasx_xvaddi_du (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000000d; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000d; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000000d; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000d; + __m256i_out = __lasx_xvaddi_du (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_result[3]) = 0xfff0fff0ff01ff14; + *((unsigned long *)&__m256i_result[2]) = 0xfff0fff0fff10003; + *((unsigned long *)&__m256i_result[1]) = 0xfff0fff0ff01ff14; + *((unsigned long *)&__m256i_result[0]) = 0xfff0fff0fff10003; + __m256i_out = __lasx_xvaddi_du (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op0[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_op0[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op0[0]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_result[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_result[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_result[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_result[0]) = 0xffff47b4ffff5879; + __m256i_out = __lasx_xvaddi_du (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvaddi_du (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[2]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[1]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[0]) = 0x0fffffff10000006; + __m256i_out = __lasx_xvaddi_du (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-1.c new file mode 100644 index 00000000000..70f3bf783a6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-1.c @@ -0,0 +1,740 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op0[2]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op0[1]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op0[0]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffeffffff88; + *((unsigned long *)&__m256i_op1[2]) = 0x61e0000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffeffffff88; + *((unsigned long *)&__m256i_op1[0]) = 0x61e0000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0010ffc80010ff52; + *((unsigned long *)&__m256i_result[2]) = 0xfff1ffca0011ffcb; + *((unsigned long *)&__m256i_result[1]) = 0x0010ffc80010ff52; + *((unsigned long *)&__m256i_result[0]) = 0xfff1ffca0011ffcb; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffe90ffffff80; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffe90ffffff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff90ffffff80; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000005; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffefffefffefffe; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000023; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x01c601c6fe3afe3a; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x01c601c6fe3afe3a; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000011; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000011; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op0[1]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x007d003e007d003e; + *((unsigned long *)&__m256i_result[2]) = 0x007d003effa80010; + *((unsigned long *)&__m256i_result[1]) = 0x007d003e007d003e; + *((unsigned long *)&__m256i_result[0]) = 0x007d003effa80010; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0c6a240000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0c6a240000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ca0000fff80000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00ca0000fff80000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_op0[2]) = 0x5464fbfc416b9f71; + *((unsigned long *)&__m256i_op0[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_op0[0]) = 0x0d8264202b8ea3f0; + *((unsigned long *)&__m256i_op1[3]) = 0x80c72fcd40fb3bc0; + *((unsigned long *)&__m256i_op1[2]) = 0x84bd087966d4ace0; + *((unsigned long *)&__m256i_op1[1]) = 0x26aa68b274dc1322; + *((unsigned long *)&__m256i_op1[0]) = 0xe072db2bb9d4cd40; + *((unsigned long *)&__m256i_result[3]) = 0xffffcd42ffffecc0; + *((unsigned long *)&__m256i_result[2]) = 0x00000475ffff4c51; + *((unsigned long *)&__m256i_result[1]) = 0x0000740dffffad17; + *((unsigned long *)&__m256i_result[0]) = 0x00003f4bffff7130; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000f3280000dfff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000022; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffff80; + *((unsigned long *)&__m256i_result[2]) = 0x0000468600008078; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffff328ffffe021; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op0[2]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op0[1]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op0[0]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[3]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[2]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[1]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[0]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_result[3]) = 0x0000399400003994; + *((unsigned long *)&__m256i_result[2]) = 0x0000399400003994; + *((unsigned long *)&__m256i_result[1]) = 0x0000399400003994; + *((unsigned long *)&__m256i_result[0]) = 0x0000399400003994; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op1[2]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op1[1]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op1[0]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_result[3]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_result[2]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_result[1]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_result[0]) = 0x0000616100004f61; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op1[2]) = 0x000b8f81b8c840e4; + *((unsigned long *)&__m256i_op1[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op1[0]) = 0x000b8f81b8c840e4; + *((unsigned long *)&__m256i_result[3]) = 0x0000504f00002361; + *((unsigned long *)&__m256i_result[2]) = 0xffff8f81000040e4; + *((unsigned long *)&__m256i_result[1]) = 0x0000504f00002361; + *((unsigned long *)&__m256i_result[0]) = 0xffff8f81000040e4; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000012; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op1[3]) = 0x40b240b330313031; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff5d425d42; + *((unsigned long *)&__m256i_op1[1]) = 0x40b240b330313031; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff5d425d42; + *((unsigned long *)&__m256i_result[3]) = 0x000040b200002fd4; + *((unsigned long *)&__m256i_result[2]) = 0x00007fff0000739c; + *((unsigned long *)&__m256i_result[1]) = 0x000040b200002fd4; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff0000739c; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op0[2]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op0[0]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_op1[3]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[2]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[0]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_result[3]) = 0x00007fde00007fd4; + *((unsigned long *)&__m256i_result[2]) = 0x00007fe000007fe0; + *((unsigned long *)&__m256i_result[1]) = 0x00007fde00007fd4; + *((unsigned long *)&__m256i_result[0]) = 0x00007fe000007fe0; + __m256i_out = __lasx_xvaddwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002e2100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x00000000012e2110; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000583800; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000100000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000583800; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000100000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[0]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007bbbbbbb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007bbbbbbb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_result[2]) = 0x0000000073333333; + *((unsigned long *)&__m256i_result[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_result[0]) = 0x0000000073333333; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x007f807f007e8080; + *((unsigned long *)&__m256i_op0[2]) = 0x007f807f007e806f; + *((unsigned long *)&__m256i_op0[1]) = 0x007f807f007e8080; + *((unsigned long *)&__m256i_op0[0]) = 0x007f807f007e806f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000023; + *((unsigned long *)&__m256i_result[3]) = 0x00000000007e8080; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007e8092; + *((unsigned long *)&__m256i_result[1]) = 0x00000000007e8080; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007e8092; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000062d4; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000006338; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010000100000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000100000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000100000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800080000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff80000000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfe01fe01fc01fc01; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op1[1]) = 0xfe01fe01fc01fc01; + *((unsigned long *)&__m256i_op1[0]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_result[0]) = 0x000000003fc03bbc; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x1b9763952fc4c101; + *((unsigned long *)&__m256i_op1[2]) = 0xe37affb42fc05f69; + *((unsigned long *)&__m256i_op1[1]) = 0x18b988e64facb558; + *((unsigned long *)&__m256i_op1[0]) = 0xe5fb66c81da8e5bb; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xe37affb42fc05f69; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x65fb66c81da8e5ba; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x1010101010101012; + *((unsigned long *)&__m256i_op1[2]) = 0x1010101010101012; + *((unsigned long *)&__m256i_op1[1]) = 0x1010101010101093; + *((unsigned long *)&__m256i_op1[0]) = 0x1111111111111113; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1010101110101011; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1111111211111112; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x5980000000000000; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffefe00000000; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000002800000010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000002800000010; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff0127000c0010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff012700040010; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x8001000180010000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x8001000180010000; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff800200000002; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff800200000002; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000020000000200; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffe97c020010001; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000001e001e001e0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000001e001e001e0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-2.c new file mode 100644 index 00000000000..22528a14f7e --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-2.c @@ -0,0 +1,485 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010100000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010100000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0010000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0010000000000000; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffc0003fffa0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x01fb010201f900ff; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000005554; + *((unsigned long *)&__m256i_op1[2]) = 0xaaaa0000aaacfffe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000005554; + *((unsigned long *)&__m256i_op1[0]) = 0xaaaa0000aaacfffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000054; + *((unsigned long *)&__m256i_result[2]) = 0x00aa000000ac00fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000054; + *((unsigned long *)&__m256i_result[0]) = 0x00aa000000ac00fe; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x017f01fe01ff01fe; + *((unsigned long *)&__m256i_op0[2]) = 0x05960616020e0203; + *((unsigned long *)&__m256i_op0[1]) = 0x017f01fe01ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x05960616020e0005; + *((unsigned long *)&__m256i_op1[3]) = 0x017f01fe01ff01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x05960616020e0203; + *((unsigned long *)&__m256i_op1[1]) = 0x017f01fe01ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x05960616020e0005; + *((unsigned long *)&__m256i_result[3]) = 0x00fe01fc01fe01fc; + *((unsigned long *)&__m256i_result[2]) = 0x012c002c001c0006; + *((unsigned long *)&__m256i_result[1]) = 0x00fe01fc01fe0000; + *((unsigned long *)&__m256i_result[0]) = 0x012c002c001c000a; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xd207e90001fb16ef; + *((unsigned long *)&__m256i_op0[2]) = 0xc8eab25698f97e90; + *((unsigned long *)&__m256i_op0[1]) = 0xd207e90001fb16ef; + *((unsigned long *)&__m256i_op0[0]) = 0xc8eab25698f97e90; + *((unsigned long *)&__m256i_op1[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[0]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[3]) = 0x0007000000fb00ef; + *((unsigned long *)&__m256i_result[2]) = 0x00ea005600f90090; + *((unsigned long *)&__m256i_result[1]) = 0x0007000000fb00ef; + *((unsigned long *)&__m256i_result[0]) = 0x00ea005600f90090; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffc03b1fc5e050; + *((unsigned long *)&__m256i_op0[2]) = 0x6a9e3fa2603a2000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffc03b1fc5e050; + *((unsigned long *)&__m256i_op0[0]) = 0x6a9e3fa2603a2000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc03fffffffc0; + *((unsigned long *)&__m256i_op1[2]) = 0xffffc00000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc03fffffffc0; + *((unsigned long *)&__m256i_op1[0]) = 0xffffc00000000000; + *((unsigned long *)&__m256i_result[3]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_result[2]) = 0x019d00a2003a0000; + *((unsigned long *)&__m256i_result[1]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_result[0]) = 0x019d00a2003a0000; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op0[1]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00e30064001a008f; + *((unsigned long *)&__m256i_result[2]) = 0x00e3006300e30063; + *((unsigned long *)&__m256i_result[1]) = 0x00e30064001a008f; + *((unsigned long *)&__m256i_result[0]) = 0x00e3006300e30063; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000013; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op1[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_op1[1]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op1[0]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_result[3]) = 0x000000010000005e; + *((unsigned long *)&__m256i_result[2]) = 0x000000a400ff004f; + *((unsigned long *)&__m256i_result[1]) = 0x000000010000005e; + *((unsigned long *)&__m256i_result[0]) = 0x000000a400ff004f; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002ffff00020002; + *((unsigned long *)&__m256i_op0[2]) = 0x04f504f104f504f5; + *((unsigned long *)&__m256i_op0[1]) = 0x0002ffff00020002; + *((unsigned long *)&__m256i_op0[0]) = 0x04f504f104f504f5; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000200ff00020002; + *((unsigned long *)&__m256i_result[2]) = 0x00f500f100f500f5; + *((unsigned long *)&__m256i_result[1]) = 0x000200ff00020002; + *((unsigned long *)&__m256i_result[0]) = 0x00f500f100f500f5; + __m256i_out = __lasx_xvaddwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000019410000e69a; + *((unsigned long *)&__m256i_op0[2]) = 0xf259905a0c126604; + *((unsigned long *)&__m256i_op0[1]) = 0x0000883a00000f20; + *((unsigned long *)&__m256i_op0[0]) = 0x6d3c2d3aa1c82947; + *((unsigned long *)&__m256i_op1[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_op1[2]) = 0xc5c085372cfabfba; + *((unsigned long *)&__m256i_op1[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_op1[0]) = 0x0658f2dc0eb21e3c; + *((unsigned long *)&__m256i_result[3]) = 0x0000b6b60001979a; + *((unsigned long *)&__m256i_result[2]) = 0x00011591000125be; + *((unsigned long *)&__m256i_result[1]) = 0x000093950000a915; + *((unsigned long *)&__m256i_result[0]) = 0x0001201600004783; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffff6ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffff6ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256i_op0[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256i_op0[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op1[2]) = 0xff000000ff000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ff000000ff00; + *((unsigned long *)&__m256i_op1[0]) = 0xff000000ff000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffee0000ff4c; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff050000ff3c; + *((unsigned long *)&__m256i_result[1]) = 0x0000fff90000ff78; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffa80000ff31; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fffc7f7f; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffc000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fffc7f7f; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffc000; + *((unsigned long *)&__m256i_op1[3]) = 0x8001b0b1b4b5dd9f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x8001b0b1b4b5dd9f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000b0b100015d1e; + *((unsigned long *)&__m256i_result[2]) = 0x0001fffe0001bfff; + *((unsigned long *)&__m256i_result[1]) = 0x0000b0b100015d1e; + *((unsigned long *)&__m256i_result[0]) = 0x0001fffe0001bfff; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fe200000fe1f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fe200000fe1f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffc0ffc1; + *((unsigned long *)&__m256i_op0[2]) = 0x003f00000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffc0ffc1; + *((unsigned long *)&__m256i_op0[0]) = 0x003f00000000003f; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001fffe0001ffc0; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0001003e; + *((unsigned long *)&__m256i_result[1]) = 0x0001fffe0001ffc0; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0001003e; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020010101610000; + *((unsigned long *)&__m256i_op0[2]) = 0x0061200000610000; + *((unsigned long *)&__m256i_op0[1]) = 0x0020010101610000; + *((unsigned long *)&__m256i_op0[0]) = 0x0061200000610000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000101000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x00011fff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000101000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x00011fff0000ffff; + __m256i_out = __lasx_xvaddwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvaddwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000013ffffffec; + *((unsigned long *)&__m256i_op1[2]) = 0x00000013ffffebd8; + *((unsigned long *)&__m256i_op1[1]) = 0x00000013ffffffec; + *((unsigned long *)&__m256i_op1[0]) = 0x00000013ffffebd8; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffec; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffebd8; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffec; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffebd8; + __m256i_out = __lasx_xvaddwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000c0007; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000c0007; + *((unsigned long *)&__m256i_op1[3]) = 0x3abb3abbbabababa; + *((unsigned long *)&__m256i_op1[2]) = 0x0080000000800080; + *((unsigned long *)&__m256i_op1[1]) = 0x3abb3abbbabababa; + *((unsigned long *)&__m256i_op1[0]) = 0x0080000000800080; + *((unsigned long *)&__m256i_result[3]) = 0x00000000babababa; + *((unsigned long *)&__m256i_result[2]) = 0x00000000008c0087; + *((unsigned long *)&__m256i_result[1]) = 0x00000000babababa; + *((unsigned long *)&__m256i_result[0]) = 0x00000000008c0087; + __m256i_out = __lasx_xvaddwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvaddwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000000a; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8060000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8060000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x805f0000ffffffff; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfe01fe010000fd02; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op0[1]) = 0xfe01fe010000fd02; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op1[3]) = 0xfe01fe010000fd02; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op1[1]) = 0xfe01fe010000fd02; + *((unsigned long *)&__m256i_op1[0]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f807f80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f807f80; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff1cff1cff1cff1c; + __m256i_out = __lasx_xvaddwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-3.c new file mode 100644 index 00000000000..38a0a53d75f --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwev-3.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[3]) = 0x0036003200360032; + *((unsigned long *)&__m256i_result[2]) = 0x0036003200360032; + *((unsigned long *)&__m256i_result[1]) = 0x0036003200360032; + *((unsigned long *)&__m256i_result[0]) = 0x0036003200360032; + __m256i_out = __lasx_xvaddwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000170017; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000170017; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000170017; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000170017; + __m256i_out = __lasx_xvaddwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000100fe000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000100fe00010001; + *((unsigned long *)&__m256i_result[1]) = 0x000100fe000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000100fe00010001; + __m256i_out = __lasx_xvaddwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6100000800060005; + *((unsigned long *)&__m256i_op0[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5ff00007fff9fff3; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0209fefb08140000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000bf6e0000c916; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000030000fff3; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000b004a00440040; + *((unsigned long *)&__m256i_op0[2]) = 0x8020004a0011002a; + *((unsigned long *)&__m256i_op0[1]) = 0x000b004a00440040; + *((unsigned long *)&__m256i_op0[0]) = 0x8020004a0011002a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000004a00000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000004a0000002a; + *((unsigned long *)&__m256i_result[1]) = 0x0000004a00000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000004a0000002a; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op1[2]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op1[1]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op1[0]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[3]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[2]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[1]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[0]) = 0x00001fff00001fff; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000080800000808; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000080800000808; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001a001a001a009a; + *((unsigned long *)&__m256i_op0[2]) = 0x001a001a002a009a; + *((unsigned long *)&__m256i_op0[1]) = 0x001a001a001a009a; + *((unsigned long *)&__m256i_op0[0]) = 0x001a001a002a009a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000001a000000da; + *((unsigned long *)&__m256i_result[2]) = 0x0000001a000000da; + *((unsigned long *)&__m256i_result[1]) = 0x0000001a000000da; + *((unsigned long *)&__m256i_result[0]) = 0x0000001a000000da; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000007ffffffce; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000001fe; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000001ce; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000001fe; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001ce; + __m256i_out = __lasx_xvaddwev_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff0000; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffffff; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x8011ffae800c000c; + *((unsigned long *)&__m256i_op1[2]) = 0x00baff050083ff3c; + *((unsigned long *)&__m256i_op1[1]) = 0x80b900b980380038; + *((unsigned long *)&__m256i_op1[0]) = 0x0017ffa8008eff31; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff800c000c; + *((unsigned long *)&__m256i_result[2]) = 0x000000000084ff3c; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff80380038; + *((unsigned long *)&__m256i_result[0]) = 0x00000000008fff31; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000001001f001e; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000001001f001e; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff00ff; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100f000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100f000ff; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op0[2]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op0[1]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op0[0]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffc0; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fff0ffc0; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffc0; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fff0ffc0; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff78ffc0; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000016e00; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff1cff1c; + __m256i_out = __lasx_xvaddwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffff1f; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffff1f; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_op1[3]) = 0x0010ffc80010ff52; + *((unsigned long *)&__m256i_op1[2]) = 0xfff1ffca0011ffcb; + *((unsigned long *)&__m256i_op1[1]) = 0x0010ffc80010ff52; + *((unsigned long *)&__m256i_op1[0]) = 0xfff1ffca0011ffcb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff1ffca0011feca; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff1ffca0011feca; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000002; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000002; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000017fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000017fff; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000004000000040; + __m256i_out = __lasx_xvaddwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-1.c new file mode 100644 index 00000000000..a4dc565e95b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-1.c @@ -0,0 +1,530 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x9240000000008025; + *((unsigned long *)&__m256i_op0[2]) = 0xfffff24affff8025; + *((unsigned long *)&__m256i_op0[1]) = 0xb2c0000000008006; + *((unsigned long *)&__m256i_op0[0]) = 0xffffb341ffff8006; + *((unsigned long *)&__m256i_op1[3]) = 0x9240000000008025; + *((unsigned long *)&__m256i_op1[2]) = 0xfffff24affff8025; + *((unsigned long *)&__m256i_op1[1]) = 0xb2c0000000008006; + *((unsigned long *)&__m256i_op1[0]) = 0xffffb341ffff8006; + *((unsigned long *)&__m256i_result[3]) = 0xff2400000000ff00; + *((unsigned long *)&__m256i_result[2]) = 0xfffeffe4fffeff00; + *((unsigned long *)&__m256i_result[1]) = 0xff6400000000ff00; + *((unsigned long *)&__m256i_result[0]) = 0xfffeff66fffeff00; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[2]) = 0xff04ff00ff00ff00; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[0]) = 0xff04ff00ff00ff00; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffefffefffefffe; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe0000fffe0002; + *((unsigned long *)&__m256i_op1[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe0000fffe0002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000fffeffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000fffeffff; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_op0[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_op0[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffc0003fffc0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffc0003fffc0; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7ffeffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7ffeffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f007bfffffffb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007f007bfffffffb; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000201220001011c; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000201220001011c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe0ffe000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x7fa0001fff808000; + *((unsigned long *)&__m256i_op0[1]) = 0xffe0ffe000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x7fa0001fff808000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x007f0000ffffff80; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x007f0000ffffff80; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0004000400040004; + __m256i_out = __lasx_xvaddwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00007ff000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00007ff000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00007ff000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000001fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001fe; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000d24; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000d24; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x4ffc3f7800000000; + *((unsigned long *)&__m256i_op1[2]) = 0x3fc03f6400000000; + *((unsigned long *)&__m256i_op1[1]) = 0x4ffc3f7800000000; + *((unsigned long *)&__m256i_op1[0]) = 0x3fc03f6400000000; + *((unsigned long *)&__m256i_result[3]) = 0x000050fd00000101; + *((unsigned long *)&__m256i_result[2]) = 0x000040c100000101; + *((unsigned long *)&__m256i_result[1]) = 0x000050fd00000101; + *((unsigned long *)&__m256i_result[0]) = 0x000040c100000101; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007fff; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000006d; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000400008; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000006d; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000400008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000800080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc9d8080067f50020; + *((unsigned long *)&__m256i_op0[0]) = 0xc70000020000c000; + *((unsigned long *)&__m256i_op1[3]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffe06df0d7; + *((unsigned long *)&__m256i_op1[1]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffbe8b470f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00007ffffffff7ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x49d8080067f4f81f; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffebeb8; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffebeb8; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op1[2]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op1[1]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op1[0]) = 0x1111111111111111; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1111111111111111; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1111111111111111; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffeffffffdd; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvaddwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-2.c new file mode 100644 index 00000000000..a2fbe9ed00a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-2.c @@ -0,0 +1,560 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe00007f000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_result[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff017e01fe; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op0[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op0[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op0[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00b7003600120000; + *((unsigned long *)&__m256i_result[2]) = 0x00b7006200fc0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000fe00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00b7004100190004; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000008e7c00; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000067751500; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000008e7c00; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000067751500; + *((unsigned long *)&__m256i_result[3]) = 0x00000000007a00f8; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff01640092; + *((unsigned long *)&__m256i_result[1]) = 0x00000000007a00f8; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff01640092; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_op1[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff000000ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff000000ff0000; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00ff00ff; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff008000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff008000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00ff008000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff008000000000; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_op0[2]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_op0[0]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff008000ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff008000ff0000; + __m256i_out = __lasx_xvaddwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000804000004141; + *((unsigned long *)&__m256i_op0[1]) = 0x00017fff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[0]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000004444; + *((unsigned long *)&__m256i_result[2]) = 0x00007bbb0000f777; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000004444; + *((unsigned long *)&__m256i_result[0]) = 0x00007bbb0000f777; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4010000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3e6ce7d9cb7afb62; + *((unsigned long *)&__m256i_op0[1]) = 0x4010000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3e6ce7d9cb7afb62; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000401000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003e6c0000cb7a; + *((unsigned long *)&__m256i_result[1]) = 0x0000401000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003e6c0000cb7a; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3aadec4f6c7975b1; + *((unsigned long *)&__m256i_op0[2]) = 0x3abac5447fffca89; + *((unsigned long *)&__m256i_op0[1]) = 0x3aadec4f6c7975b1; + *((unsigned long *)&__m256i_op0[0]) = 0x3abac5447fffca89; + *((unsigned long *)&__m256i_op1[3]) = 0x3aadec4f6c7975b1; + *((unsigned long *)&__m256i_op1[2]) = 0x3abac5447fffca89; + *((unsigned long *)&__m256i_op1[1]) = 0x3aadec4f6c7975b1; + *((unsigned long *)&__m256i_op1[0]) = 0x3abac5447fffca89; + *((unsigned long *)&__m256i_result[3]) = 0x0000755a0000d8f2; + *((unsigned long *)&__m256i_result[2]) = 0x000075740000fffe; + *((unsigned long *)&__m256i_result[1]) = 0x0000755a0000d8f2; + *((unsigned long *)&__m256i_result[0]) = 0x000075740000fffe; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffee00ba; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffee00ba; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffee; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffee; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9ffffd8020010001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffff9fffffff9; + *((unsigned long *)&__m256i_op1[1]) = 0x9ffffd8020010001; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff9fffffff9; + *((unsigned long *)&__m256i_result[3]) = 0x00009fff00002001; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x00009fff00002001; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvaddwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000900000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000900000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000001a; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000001a; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100010000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100010000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100010000; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00153f1594ea02ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffff0100; + *((unsigned long *)&__m256i_op1[0]) = 0xff15c1ea95ea02ff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000153f15; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff15c1ea; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100fe04ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100fe04ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff00ff; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00f9f9f900000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00f9f9f900000002; + *((unsigned long *)&__m256i_op1[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[0]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_result[2]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_result[0]) = 0x00000000faf3f3f2; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000029170; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000029170; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffff7fffffff; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op0[2]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op0[1]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op0[0]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xc3f0c3f0c3f0c3f0; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op1[3]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_op1[2]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_op1[1]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_op1[0]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0xe6e8e6e8e6e8d719; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0xe6e8e6e8e6e8d719; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000800400010006d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000003fffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000003fffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-3.c new file mode 100644 index 00000000000..8c98fc4be22 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvaddwod-3.c @@ -0,0 +1,485 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000033e87ef1; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002e2100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000033007e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000021; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x0020002000400040; + *((unsigned long *)&__m256i_result[2]) = 0x0020002000400040; + *((unsigned long *)&__m256i_result[1]) = 0x0020002000400040; + *((unsigned long *)&__m256i_result[0]) = 0x0020002000400040; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000f000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000f000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x007fc0083fc7c007; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x007fc0083fc7c007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffc0003fffc0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffc0003fffc0; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff00bb; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff0057; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff00bb; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff0057; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00ff00ff; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000005060503; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000073737; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000050007; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000039; + __m256i_out = __lasx_xvaddwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000f3280000dfff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000007070707; + *((unsigned long *)&__m256i_op1[2]) = 0x0102040000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000020100; + *((unsigned long *)&__m256i_op1[0]) = 0x0703020000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000707; + *((unsigned long *)&__m256i_result[2]) = 0x0000010200000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000070300000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00007fffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00007fffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff800000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[0]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x000100640000ff92; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[0]) = 0x000100640000ff92; + *((unsigned long *)&__m256i_result[3]) = 0x00007c0100007c01; + *((unsigned long *)&__m256i_result[2]) = 0x00007c0100007c00; + *((unsigned long *)&__m256i_result[1]) = 0x00007c0100007c01; + *((unsigned long *)&__m256i_result[0]) = 0x00007c0100007c00; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffe0000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000048; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000007d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000048; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000007d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000800400010006d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000010; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fffe00009fff; + *((unsigned long *)&__m256i_result[2]) = 0x0000fffe00002001; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffe00009fff; + *((unsigned long *)&__m256i_result[0]) = 0x0000fffe00002001; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000027; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000027; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010080; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_w_hu_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000007f00; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7ffe7fffeffe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffd84900000849; + *((unsigned long *)&__m256i_op0[0]) = 0x07fffc670800f086; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x311d9b643ec1fe01; + *((unsigned long *)&__m256i_op1[0]) = 0x344ade20fe00fd01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007f00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x311d73ad3ec2064a; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff80cbfffffdf8; + *((unsigned long *)&__m256i_op1[2]) = 0x0000081500000104; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffa4fffffffd; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000700000002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff80cbfffffdf8; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffa4fffffffd; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[0]) = 0x0100000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000008050501; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_op0[2]) = 0x019d00a20039fff9; + *((unsigned long *)&__m256i_op0[1]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_op0[0]) = 0x019d00a2003a0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01fe007a01c40110; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x001ffffe00200000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x001ffffe00200000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0020001d001f; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000fef0ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000fef0ff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080ff0080; + *((unsigned long *)&__m256i_op1[1]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080ff0080; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x8000400080ffc080; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x007f010000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x007f010000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvaddwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-1.c new file mode 100644 index 00000000000..2a4f29b509f --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-1.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0xa020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0xa020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0xa020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0xa020202020206431; + *((unsigned long *)&__m256i_result[1]) = 0xa020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0xa020202020206431; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffee0000ff4c; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ff050000ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fff90000ff78; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffa80000ff31; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffee0000ff4c; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff050000ff3c; + *((unsigned long *)&__m256i_result[1]) = 0x0000fff90000ff78; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffa80000ff31; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff810011; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_op0[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_op0[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000200000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000008; + *((unsigned long *)&__m256i_result[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_result[2]) = 0xff00000200000008; + *((unsigned long *)&__m256i_result[1]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_result[0]) = 0xff00000200000008; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7efefefe80ffffff; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00007fde00007fd4; + *((unsigned long *)&__m256i_op0[2]) = 0x00007fe000007fe0; + *((unsigned long *)&__m256i_op0[1]) = 0x00007fde00007fd4; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fe000007fe0; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffff7eddffff7ed3; + *((unsigned long *)&__m256i_result[2]) = 0xffff7edfffff7edf; + *((unsigned long *)&__m256i_result[1]) = 0xffff7eddffff7ed3; + *((unsigned long *)&__m256i_result[0]) = 0xffff7edfffff7edf; + __m256i_out = __lasx_xvsadd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffc81aca; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003a0a9512; + *((unsigned long *)&__m256i_op0[1]) = 0x280ac9da313863f4; + *((unsigned long *)&__m256i_op0[0]) = 0xe032c739adcc6bbd; + *((unsigned long *)&__m256i_op1[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100020001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000fffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0xfffdffffffc81aca; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff3a0b9512; + *((unsigned long *)&__m256i_result[1]) = 0x280bc9db313a63f5; + *((unsigned long *)&__m256i_result[0]) = 0xe032c738adcb6bbb; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1fe01e0100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x1fe01e0100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffffffa; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf800d0d8ffffeecf; + *((unsigned long *)&__m256i_op0[2]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_op0[1]) = 0xf800d0d8ffffeecf; + *((unsigned long *)&__m256i_op0[0]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_op1[3]) = 0xf000f000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xf000f000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xe800c0d8fffeeece; + *((unsigned long *)&__m256i_result[2]) = 0xffff383efffedf0c; + *((unsigned long *)&__m256i_result[1]) = 0xe800c0d8fffeeece; + *((unsigned long *)&__m256i_result[0]) = 0xffff383efffedf0c; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffe0000fffe0002; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffe0000fffe0002; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[2]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[0]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[2]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[0]) = 0x7575757575757575; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fc00fc00; + *((unsigned long *)&__m256i_op1[1]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fc00fc00; + *((unsigned long *)&__m256i_result[3]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fc00fc00; + *((unsigned long *)&__m256i_result[1]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fc00fc00; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000007b00f9007e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000007b00f9007e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000007b00f9007e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000007b00f9007e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000f601f200fc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000f601f200fc; + __m256i_out = __lasx_xvsadd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000007f00000022; + *((unsigned long *)&__m256i_op1[0]) = 0x0000007f00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000007f00000022; + *((unsigned long *)&__m256i_result[0]) = 0x0000007f00000000; + __m256i_out = __lasx_xvsadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[0]) = 0x1c1b1a191c1b1a19; + __m256i_out = __lasx_xvsadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_op0[2]) = 0xffb7ff80ffd0ffd8; + *((unsigned long *)&__m256i_op0[1]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_op0[0]) = 0xffb5ff80ffd0ffd8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_result[2]) = 0xffb7ff80ffd0ffd8; + *((unsigned long *)&__m256i_result[1]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_result[0]) = 0xffb5ff80ffd0ffd8; + __m256i_out = __lasx_xvsadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff800000000000; + __m256i_out = __lasx_xvsadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvsadd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000403f3fff; + *((unsigned long *)&__m256i_op1[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op1[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000403f3fff; + *((unsigned long *)&__m256i_result[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_result[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_result[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000807e7ffe; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[2]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[1]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[0]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[3]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[2]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[1]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[0]) = 0x6161616161616161; + *((unsigned long *)&__m256i_result[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[2]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[0]) = 0xc2c2c2c2c2c2c2c2; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[0]) = 0x7f807f007f7f817f; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op1[3]) = 0x000000006040190d; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000006040190d; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000860601934; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[1]) = 0x0000000860601934; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800200028; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvadd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-2.c new file mode 100644 index 00000000000..a3afc9811ba --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsadd-2.c @@ -0,0 +1,350 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001700080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001700080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001700080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001700080; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op1[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op1[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op1[0]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[0]) = 0xf7f7f7f7f7f7f7f7; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000000; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x43d03bfff827ea21; + *((unsigned long *)&__m256i_op0[2]) = 0x43dac1f2a3804ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x43d03bfff827e9f9; + *((unsigned long *)&__m256i_op0[0]) = 0x43e019c657c7d050; + *((unsigned long *)&__m256i_op1[3]) = 0x43d03bfff827ea21; + *((unsigned long *)&__m256i_op1[2]) = 0x43dac1f2a3804ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x43d03bfff827e9f9; + *((unsigned long *)&__m256i_op1[0]) = 0x43e019c657c7d050; + *((unsigned long *)&__m256i_result[3]) = 0x86ff76ffff4eff42; + *((unsigned long *)&__m256i_result[2]) = 0x86ffffffffff9eff; + *((unsigned long *)&__m256i_result[1]) = 0x86ff76ffff4effff; + *((unsigned long *)&__m256i_result[0]) = 0x86ff32ffaeffffa0; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff8910ffff7e01; + *((unsigned long *)&__m256i_op1[2]) = 0xffff3573ffff8960; + *((unsigned long *)&__m256i_op1[1]) = 0xffff8910ffff1ca9; + *((unsigned long *)&__m256i_op1[0]) = 0xfffff5e5ffff8130; + *((unsigned long *)&__m256i_result[3]) = 0xffff8910ffff7e01; + *((unsigned long *)&__m256i_result[2]) = 0xffff3573ffff8960; + *((unsigned long *)&__m256i_result[1]) = 0xffff8910ffff1ca9; + *((unsigned long *)&__m256i_result[0]) = 0xfffff5e5ffff8130; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000f90; + __m256i_out = __lasx_xvsadd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffe200000020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fffe00008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffe200000020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fffe00008000; + *((unsigned long *)&__m256i_op1[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[2]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[0]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[3]) = 0x7575ffff75757595; + *((unsigned long *)&__m256i_result[2]) = 0x7575ffff7575f575; + *((unsigned long *)&__m256i_result[1]) = 0x7575ffff75757595; + *((unsigned long *)&__m256i_result[0]) = 0x7575ffff7575f575; + __m256i_out = __lasx_xvsadd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000f0f0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000f0f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000f0f0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000f0f0; + __m256i_out = __lasx_xvsadd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000001400; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000001400; + *((unsigned long *)&__m256i_result[2]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000003c01ff9; + __m256i_out = __lasx_xvsadd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_result[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_result[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_result[0]) = 0x45c5c5c545c5c5c5; + __m256i_out = __lasx_xvsadd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvsadd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000080; + __m256i_out = __lasx_xvsadd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsadd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsadd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138607 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp836126vqx; Tue, 12 Sep 2023 20:54:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBjJMTBbYKippWl/bao2nVDS+LoO/53MXUzwaOIU554ed8AmR5lXPt37V+CCLRsm1bWWMO X-Received: by 2002:a17:907:78c2:b0:9ad:a486:222c with SMTP id kv2-20020a17090778c200b009ada486222cmr200479ejc.40.1694577283750; Tue, 12 Sep 2023 20:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577283; cv=none; d=google.com; s=arc-20160816; b=O/dXp7InmNbbrgWP5INYRS9XtH0N9XL62zsNiG1OaxZRZ/6GIAeXdC6PtYwW4imOMC 1JaGEKI3sTs7KwTTBU/iNV7yqPDfAMmYankQxthDJAuEKuOJ+gSlQmjN8rPBGZ452oLH otljCi+pG0wF7NY8TPGXcUiyagIJvRqU50xrh1T35wRDi3PAhaet0DuWn0X1UcgYpBUU xjmDFFdh9xxEHGfhxrRAk5qvTeBCqDnD0FYGk8epmjn/sM0fU7iaNd9qqoeVlUSPgf6t XdGLVNpTbde91fnPybqvS1VCMt8A7DK/XV4gOdR7Uqr+a+wr/50AUgba/c0wT6ffIPF8 Q9Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=EMQx4033SKL+ooHWGq4U29ZfaxYr18O2q4ES/B7T5EY=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=z7Gx5pFcxdDNeowZkA4ERLNlOMx89ywj63+K95wGnPyv1kVrNjgrAkmld65BEDBTHL sl2/uZMDrcXQjVDneJgSQHdRiNabogeSe867LX4DyrD3ED/gdqA32UOfeQYn8qnMrf3b NczzQGacJhF5RKnUQr91HDEQ2gax6mS5PM258O61WDsqyTvLOyTMZs244VmuyRgKLMyi lybmUr6lgzhgNmQGkslM7mXhq3lwM8aGV83cDDtSP6baQan2RZNN439ZcBgQY5ttpSva zCqWKwruLOm5r09Z792fgutPB26IAtdo/9OoUoQxQG9BFN9Ob+2ThCcngfB3dOrpiqrq UQXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qk9-20020a170906d9c900b0099e121858d6si9713890ejb.218.2023.09.12.20.54.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC21C3AA8CB6 for ; Wed, 13 Sep 2023 03:40:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id D01883857718 for ; Wed, 13 Sep 2023 03:39:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D01883857718 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8Ax1fDfLgFlQjEmAA--.8666S3; Wed, 13 Sep 2023 11:39:11 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S6; Wed, 13 Sep 2023 11:39:10 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 02/22] LoongArch: Add tests for ASX vector xvhadd/xvhaddw/xvmaddwev/xvmaddwod instructions. Date: Wed, 13 Sep 2023 11:38:39 +0800 Message-Id: <20230913033859.6734-3-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S6 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBJgAAs0 X-Coremail-Antispam: 1Uk129KBj9UXoW7XFy5Ww4Utw1kp5X_WF4rZw4xpr17Jr1fG3 yI9a4UKryUJFyaqrWUAr4qyasrJF17G3sru3WkKFn0qF13A3yDAw4DJFWjvF13tFW5Jr40 qr45CwcCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXasCq-sGcS sGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVr nRJUUUkvb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG6r Wj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2 z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr 1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j 6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F4 0EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW3AVW8Xw1lYx0Ex4A2jsIE14v2 6F4j6r4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_Ar0_tr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwCI42IY6xAI w20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jzoGQUUUUU= X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893070009935183 X-GMAIL-MSGID: 1776893070009935183 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvhaddw-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvhaddw-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmadd.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-3.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-3.c: New test. --- .../loongarch/vector/lasx/lasx-xvhaddw-1.c | 560 +++++++++++ .../loongarch/vector/lasx/lasx-xvhaddw-2.c | 650 ++++++++++++ .../loongarch/vector/lasx/lasx-xvmadd.c | 742 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaddwev-1.c | 856 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaddwev-2.c | 723 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaddwev-3.c | 940 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaddwod-1.c | 742 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaddwod-2.c | 799 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaddwod-3.c | 820 +++++++++++++++ 9 files changed, 6832 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmadd.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-3.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-3.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-1.c new file mode 100644 index 00000000000..1cf0ec698b1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-1.c @@ -0,0 +1,560 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xf7ffffffffffff1f; + *((unsigned long *)&__m256i_op0[2]) = 0xbffffffffffffeff; + *((unsigned long *)&__m256i_op0[1]) = 0xf7ffffffffffff1f; + *((unsigned long *)&__m256i_op0[0]) = 0xbffffffffffffeff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_result[3]) = 0xfff6fffefffe005b; + *((unsigned long *)&__m256i_result[2]) = 0xffbefffefffe005a; + *((unsigned long *)&__m256i_result[1]) = 0xfff6fffefffe005b; + *((unsigned long *)&__m256i_result[0]) = 0xffbefffefffe005a; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0101000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0101000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000000000000; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000060000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000060000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000060000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000060000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000fffffffefffe; + *((unsigned long *)&__m256i_result[1]) = 0xff7fffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000fffffffefffe; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000023; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000023; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op0[1]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op1[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[0]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[3]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_result[2]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_result[1]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_result[0]) = 0xfff8fffffff8ffff; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op0[2]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op0[1]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op0[0]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[3]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[2]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[1]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[0]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[3]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[2]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[1]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[0]) = 0xffffffecffffffec; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffefffffffe; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffc000400780087; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fe80fffc0183; + *((unsigned long *)&__m256i_op0[1]) = 0xfffc000400f8ff87; + *((unsigned long *)&__m256i_op0[0]) = 0xff80ff00ff7c0183; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff900000800; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffc00000078; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffffc; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffc000000f8; + *((unsigned long *)&__m256i_result[0]) = 0xffffff790000077c; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00007ff000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00007ff000000000; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff1fffffff1; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000001ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000001ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000f6ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000f6ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000017f0000017d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000017f0000017f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000017f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000017f; + __m256i_out = __lasx_xvhaddw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000017000000080; + *((unsigned long *)&__m256i_op0[2]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op0[1]) = 0x0000017000000080; + *((unsigned long *)&__m256i_op0[0]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000017000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000017000000080; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff000000000000; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7ff0000000000000; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffefef800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffefef800; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000400010004; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000400010004; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000400010004; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000400010004; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffffffffffff; + __m256i_out = __lasx_xvhaddw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-2.c new file mode 100644 index 00000000000..14ec081a4d1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhaddw-2.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000015d050192cb; + *((unsigned long *)&__m256i_op0[2]) = 0x028e509508b16ee9; + *((unsigned long *)&__m256i_op0[1]) = 0x000033ff01020e23; + *((unsigned long *)&__m256i_op0[0]) = 0x151196b58fd1114d; + *((unsigned long *)&__m256i_op1[3]) = 0x0001ffaa0000040e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000716800007bb6; + *((unsigned long *)&__m256i_op1[1]) = 0x0001ffe80001fe9c; + *((unsigned long *)&__m256i_op1[0]) = 0x0000228200001680; + *((unsigned long *)&__m256i_result[3]) = 0x000100ab000500a0; + *((unsigned long *)&__m256i_result[2]) = 0x000200b800080124; + *((unsigned long *)&__m256i_result[1]) = 0x0001011b000200aa; + *((unsigned long *)&__m256i_result[0]) = 0x00150118008f0091; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001341c4000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001000310000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00007f7f00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000007f00340040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000007f000000ff; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000180007f7f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffafaf80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000180007f7f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffafaf80000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_result[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_result[0]) = 0x01fe01ae00ff00ff; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0102; + *((unsigned long *)&__m256i_result[2]) = 0x007c000000810081; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0102; + *((unsigned long *)&__m256i_result[0]) = 0x007c000000810081; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffc0003fffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffc0003fffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x007fc0083fc7c007; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x007fc0083fc7c007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f010700c70106; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007f010700c70106; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000e0010000e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000e0010000e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000ff; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0101000101010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000101010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000000010000; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000002a5; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000002a5; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0e0e0e0e0e0e0e0e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000e0e0e0e0e0e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff8fff9000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff8fff9000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff8fff9000; + *((unsigned long *)&__m256i_result[3]) = 0x00010e0d00009e0e; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00009000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000e0e; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00009000; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op0[2]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op0[1]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op0[0]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000300000004; + *((unsigned long *)&__m256i_result[2]) = 0x0001000300000004; + *((unsigned long *)&__m256i_result[1]) = 0x0001000300000004; + *((unsigned long *)&__m256i_result[0]) = 0x0001000300000004; + __m256i_out = __lasx_xvhaddw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0501030102141923; + *((unsigned long *)&__m256i_op0[2]) = 0xffd5020738b43ddb; + *((unsigned long *)&__m256i_op0[1]) = 0x010200023b8e4174; + *((unsigned long *)&__m256i_op0[0]) = 0xfff4ff4e11410b40; + *((unsigned long *)&__m256i_op1[3]) = 0x000019410000e69a; + *((unsigned long *)&__m256i_op1[2]) = 0xf259905a09c23be0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000883a00000f20; + *((unsigned long *)&__m256i_op1[0]) = 0x6d3c2d3a89167aeb; + *((unsigned long *)&__m256i_result[3]) = 0x000000000501e99b; + *((unsigned long *)&__m256i_result[2]) = 0x0000000109973de7; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001020f22; + *((unsigned long *)&__m256i_result[0]) = 0x00000001890b7a39; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007f000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fff0000; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_op1[2]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_op1[1]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_op1[0]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_result[3]) = 0x00000001fff9fff8; + *((unsigned long *)&__m256i_result[2]) = 0x00000001fff9fff8; + *((unsigned long *)&__m256i_result[1]) = 0x00000001fff9fff8; + *((unsigned long *)&__m256i_result[0]) = 0x00000001fff9fff8; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffff81ffffeb2f; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f6ee0570b4e; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000018de; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffb4ffcec0f1; + *((unsigned long *)&__m256i_op1[3]) = 0xffffff81ffffeb2f; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f6ee0570b4e; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000018de; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffb4ffcec0f1; + *((unsigned long *)&__m256i_result[3]) = 0x00000001ffffeab0; + *((unsigned long *)&__m256i_result[2]) = 0x00000000e0574abc; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000018de; + *((unsigned long *)&__m256i_result[0]) = 0x00000001ffcec0a5; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffe367cc82f8989a; + *((unsigned long *)&__m256i_op1[2]) = 0x4f90000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffc3aaa8d58f43c8; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000082f8989a; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000d58f43c8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001700170017; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000170017; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000170017; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000004411; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000004411; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004411; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000004411; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000236200005111; + *((unsigned long *)&__m256i_op0[2]) = 0x0000175e0000490d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000236200005111; + *((unsigned long *)&__m256i_op0[0]) = 0x0000175e0000490d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000002362; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000175d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000002362; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000175d; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000ff00; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op0[1]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100003ffe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100003fcd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100003ffe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100003fcd; + __m256i_out = __lasx_xvhaddw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffcfa; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffefefffffefe; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000003f; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x9090909090909090; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000000f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000f; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_op0[2]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_op0[1]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_op0[0]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xf3f3f3f3f3f3f4f3; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xf3f3f3f3f3f3f4f3; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0080000000000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000800080008000; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000001fe; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000001ce; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000001fe; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000001ce; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000001fd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001fd; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op0[2]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op0[1]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op0[0]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op1[3]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[2]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[1]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[0]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0xfa15fa15fa15fa14; + __m256i_out = __lasx_xvhaddw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmadd.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmadd.c new file mode 100644 index 00000000000..f9634b1284f --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmadd.c @@ -0,0 +1,742 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_op1[3]) = 0x34ec5670cd4b5ec0; + *((unsigned long *)&__m256i_op1[2]) = 0x4f111e4b8e0d7291; + *((unsigned long *)&__m256i_op1[1]) = 0xeaa81f47dc3bdd09; + *((unsigned long *)&__m256i_op1[0]) = 0x0e0d5fde5df99830; + *((unsigned long *)&__m256i_op2[3]) = 0x80c72fcd40fb3bc0; + *((unsigned long *)&__m256i_op2[2]) = 0x84bd087966d4ace0; + *((unsigned long *)&__m256i_op2[1]) = 0x26aa68b274dc1322; + *((unsigned long *)&__m256i_op2[0]) = 0xe072db2bb9d4cd40; + *((unsigned long *)&__m256i_result[3]) = 0x044819410d87e69a; + *((unsigned long *)&__m256i_result[2]) = 0x21d3905ae3e93be0; + *((unsigned long *)&__m256i_result[1]) = 0x5125883a30da0f20; + *((unsigned long *)&__m256i_result[0]) = 0x6d7b2d3ac2777aeb; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffff001f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffff001f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_op2[1]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffff1f; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffff1f; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffeff; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fffe00010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000fffe00010001; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1717171717171717; + *((unsigned long *)&__m256i_op0[2]) = 0x000607f700000001; + *((unsigned long *)&__m256i_op0[1]) = 0x1717171717171717; + *((unsigned long *)&__m256i_op0[0]) = 0x000607f700000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op2[2]) = 0x0000002e0000ffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op2[0]) = 0x0000002e0000fffe; + *((unsigned long *)&__m256i_result[3]) = 0x1717171717171717; + *((unsigned long *)&__m256i_result[2]) = 0x000607f700000001; + *((unsigned long *)&__m256i_result[1]) = 0x1717171717171717; + *((unsigned long *)&__m256i_result[0]) = 0x000607f700000001; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000003f00000000; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x370036db92c4007e; + *((unsigned long *)&__m256i_op0[2]) = 0x371462137c1e0049; + *((unsigned long *)&__m256i_op0[1]) = 0x800000fe7e02fffe; + *((unsigned long *)&__m256i_op0[0]) = 0x371c413b999d04b5; + *((unsigned long *)&__m256i_op1[3]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_op1[2]) = 0xffb7ff80ffd0ffd8; + *((unsigned long *)&__m256i_op1[1]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_op1[0]) = 0xffb5ff80ffd0ffd8; + *((unsigned long *)&__m256i_op2[3]) = 0xffff00ff00ffff00; + *((unsigned long *)&__m256i_op2[2]) = 0xff000000ff00ff00; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffff00ffff; + *((unsigned long *)&__m256i_op2[0]) = 0xff00000000ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x37fe365b920d007e; + *((unsigned long *)&__m256i_result[2]) = 0x381462137d1e0149; + *((unsigned long *)&__m256i_result[1]) = 0x80ff00fe7e020060; + *((unsigned long *)&__m256i_result[0]) = 0x381c413b99cd04dd; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op1[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op1[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op1[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_op2[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op2[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op2[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op2[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_result[3]) = 0xd100645944100004; + *((unsigned long *)&__m256i_result[2]) = 0xd1908469108400d1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000404040104; + *((unsigned long *)&__m256i_result[0]) = 0xd1108199714910f9; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op2[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op2[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x61f1000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0108000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x61f1a18100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0108000000000000; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000055555555; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000004; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000055555555; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000004; + *((unsigned long *)&__m256i_op2[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2aaaaaaa2aaaaaab; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x2aaaaaaa2aaaaaab; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[0]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[0]) = 0x7c007c007c007c00; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fd00ffff02fe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001fffeff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op2[3]) = 0x00007f7f00007f00; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0100; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffee0000ff4c; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ff050000ff3c; + *((unsigned long *)&__m256i_op1[1]) = 0x0000fff90000ff78; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffa80000ff31; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0101010127272525; + *((unsigned long *)&__m256i_op2[2]) = 0x23a2a121179e951d; + *((unsigned long *)&__m256i_op2[1]) = 0x0101010127272525; + *((unsigned long *)&__m256i_op2[0]) = 0x23a2a121179e951d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvmadd_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op2[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fefffffffffffff; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x008e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x008e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000700000007; + *((unsigned long *)&__m256i_op1[2]) = 0x0007ffff0007ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000700000007; + *((unsigned long *)&__m256i_op1[0]) = 0x0007ffff0007ffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x008e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x008e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007000008e700000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007000008e700000; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op0[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op0[0]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op2[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op2[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op2[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[0]) = 0x0100000100000001; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmadd_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvmadd_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000080040; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00009fff00002001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00009fff00002001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0001497c98ea4fca; + *((unsigned long *)&__m256i_op2[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0001497c98ea4fca; + *((unsigned long *)&__m256i_op2[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000006715b036; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x000000006715b036; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmadd_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007f80; + __m256i_out = __lasx_xvmadd_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvmadd_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f80ffffff808000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7f80ffffff808000; + *((unsigned long *)&__m256i_op1[3]) = 0x001f001fffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x001f001fffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffe0ffe000000001; + *((unsigned long *)&__m256i_result[2]) = 0x7fa0001fff808000; + *((unsigned long *)&__m256i_result[1]) = 0xffe0ffe000000001; + *((unsigned long *)&__m256i_result[0]) = 0x7fa0001fff808000; + __m256i_out = __lasx_xvmadd_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-1.c new file mode 100644 index 00000000000..6238685bce9 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-1.c @@ -0,0 +1,856 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff000100000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff000100000000; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[0]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff8fff8fff8fff8; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op2[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000f7f8f7f8; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000003f78; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000f7f8f7f8; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000003f78; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[2]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f7f8f7f8; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000003f78; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f7f8f7f8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000003f78; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op0[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op0[0]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0002001800ff0078; + *((unsigned long *)&__m256i_op1[2]) = 0x01f8007001f80070; + *((unsigned long *)&__m256i_op1[1]) = 0x0002001800ff0078; + *((unsigned long *)&__m256i_op1[0]) = 0x01f8007001f80070; + *((unsigned long *)&__m256i_op2[3]) = 0x0218ff78fc38fc38; + *((unsigned long *)&__m256i_op2[2]) = 0xfc00000000000048; + *((unsigned long *)&__m256i_op2[1]) = 0x0218ff78fc38fc38; + *((unsigned long *)&__m256i_op2[0]) = 0xfc00000000000048; + *((unsigned long *)&__m256i_result[3]) = 0x00300b40fc001678; + *((unsigned long *)&__m256i_result[2]) = 0xfc00000000001f80; + *((unsigned long *)&__m256i_result[1]) = 0x00300b40fc001678; + *((unsigned long *)&__m256i_result[0]) = 0xfc00000000001f80; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe8440000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe8440000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffe8440000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffe8440000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe8440000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffe8440000; + __m256i_out = __lasx_xvmaddwev_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_op0[1]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_op1[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op1[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_result[1]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffefffefffefffef; + __m256i_out = __lasx_xvmaddwev_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op1[2]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000e0e0e0e0; + *((unsigned long *)&__m256i_op1[0]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xebfd15f000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x01700498ff8f1600; + *((unsigned long *)&__m256i_op0[1]) = 0xf520c7c024221300; + *((unsigned long *)&__m256i_op0[0]) = 0x00802fd0ff540a80; + *((unsigned long *)&__m256i_op1[3]) = 0xebfd15f000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x01700498ff8f1600; + *((unsigned long *)&__m256i_op1[1]) = 0xf520c7c024221300; + *((unsigned long *)&__m256i_op1[0]) = 0x00802fd0ff540a80; + *((unsigned long *)&__m256i_op2[3]) = 0xf96d674800000000; + *((unsigned long *)&__m256i_op2[2]) = 0x44a4330e2c7116c0; + *((unsigned long *)&__m256i_op2[1]) = 0x14187a7822b653c0; + *((unsigned long *)&__m256i_op2[0]) = 0xfbe0b866962b96d0; + *((unsigned long *)&__m256i_result[3]) = 0xebfd15f000000000; + *((unsigned long *)&__m256i_result[2]) = 0x015c6a7facc39600; + *((unsigned long *)&__m256i_result[1]) = 0xfa070a51cbd95300; + *((unsigned long *)&__m256i_result[0]) = 0x00c7463075439280; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0555550000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0555550000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_result[3]) = 0x0555550000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0555550000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x807e80fd80fe80fd; + *((unsigned long *)&__m256i_op0[2]) = 0x80938013800d8002; + *((unsigned long *)&__m256i_op0[1]) = 0x807e80fd80fe0000; + *((unsigned long *)&__m256i_op0[0]) = 0x80938013800d0005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffff00001fff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffff00001fff; + *((unsigned long *)&__m256i_result[3]) = 0x807e80fd80fe80fd; + *((unsigned long *)&__m256i_result[2]) = 0x80938013800d8002; + *((unsigned long *)&__m256i_result[1]) = 0x807e80fd80fe0000; + *((unsigned long *)&__m256i_result[0]) = 0x80938013800d0005; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_op0[2]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_op0[1]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_op0[0]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_op1[3]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_op1[2]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_op1[1]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_op1[0]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_result[2]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_result[1]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_result[0]) = 0x556caad9aabbaa88; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xff7f7f7fff7fffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xff7f7f7fff7fffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3f7f7f7eff800000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3f7f7f7eff800000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffeffffffdd; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x002affaa00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffeffffffdd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffdc; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op2[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op2[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000001000b000b; + *((unsigned long *)&__m256i_result[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000001000b000b; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x132feea900000000; + *((unsigned long *)&__m256i_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op2[3]) = 0x2020080800000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000004044f4f; + *((unsigned long *)&__m256i_op2[1]) = 0x0ef11ae55a5a6767; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_result[2]) = 0x6040190d20227a78; + *((unsigned long *)&__m256i_result[1]) = 0x132feeabd2d33b38; + *((unsigned long *)&__m256i_result[0]) = 0x6040190d00000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x3); + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfefefefe3f800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfefefefe3f800000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000fe0000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000fe0000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000118; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000118; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fff7fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff7fff7fff; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op1[2]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op1[1]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op1[0]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff7fff7fff; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1086658a18ba3594; + *((unsigned long *)&__m256i_op0[2]) = 0x160fe9f000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1086658a18ba3594; + *((unsigned long *)&__m256i_op0[0]) = 0x160fe9f000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op1[2]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op1[1]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op1[0]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_op2[3]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_op2[2]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_op2[1]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_op2[0]) = 0x0000616100004f61; + *((unsigned long *)&__m256i_result[3]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256i_result[2]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256i_result[1]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256i_result[0]) = 0x4df5b1a3ed5e02c1; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff000100000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x01fffffffe000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x01fffffffe000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x01fffffffe000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x01fffffffe000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfe00000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op2[1]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_op2[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op2[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op2[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op2[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x817f11ed81800ff0; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xff00000000ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xff00000000ffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000ffffff; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000ffffff; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000101000001010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000101000001010; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op2[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op2[0]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000101000001010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000101000001010; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff80000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-2.c new file mode 100644 index 00000000000..5fa080375c9 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-2.c @@ -0,0 +1,723 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f7f7f80; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0200000002000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0200000002000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff01fb0408; + *((unsigned long *)&__m256i_op1[2]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff01fb0408; + *((unsigned long *)&__m256i_op1[0]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_op2[3]) = 0x0000008000000080; + *((unsigned long *)&__m256i_op2[2]) = 0x00003cfc0000006f; + *((unsigned long *)&__m256i_op2[1]) = 0x0000008000000080; + *((unsigned long *)&__m256i_op2[0]) = 0x00003cfc0000006f; + *((unsigned long *)&__m256i_result[3]) = 0x02007f8002000400; + *((unsigned long *)&__m256i_result[2]) = 0x0000c5dc02005f64; + *((unsigned long *)&__m256i_result[1]) = 0x02007f8002000400; + *((unsigned long *)&__m256i_result[0]) = 0x0000c5dc02005f64; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000700020004; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000700020004; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op2[3]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op2[1]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x000000070002000a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x000000070002000a; + __m256i_out = __lasx_xvmaddwev_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_op0[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_op0[0]) = 0xff874dc687870000; + *((unsigned long *)&__m256i_op1[3]) = 0x41dfffc000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x41dfffdfffc00000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0001fbf9fbe29f52; + *((unsigned long *)&__m256i_op2[2]) = 0x5b409c0000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0001fbf9fbe29f52; + *((unsigned long *)&__m256i_op2[0]) = 0x5b409c0000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfbba01c0003f7e3f; + *((unsigned long *)&__m256i_result[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_result[1]) = 0xfbd884e7003f7e3f; + *((unsigned long *)&__m256i_result[0]) = 0xff874dc687870000; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_result[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000403f3fff; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40effc0000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x40effc0000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00007f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[2]) = 0x00010003fc827a86; + *((unsigned long *)&__m256i_op1[1]) = 0x00007f7f7f7f0000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f017fc0ddbf7d86; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x00153f1594ea02ff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffffffff0100; + *((unsigned long *)&__m256i_op2[0]) = 0xff15c1ea95ea02ff; + *((unsigned long *)&__m256i_result[3]) = 0xc06e7c817f7e8081; + *((unsigned long *)&__m256i_result[2]) = 0x0000bd3f016f177a; + *((unsigned long *)&__m256i_result[1]) = 0xc06e7c8100000000; + *((unsigned long *)&__m256i_result[0]) = 0x60c485800178147a; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000011f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000011f; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op2[2]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op2[0]) = 0x000000000000165a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000192540; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000192540; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff88ff88; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_op0[2]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_op0[0]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op2[2]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_op2[1]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op2[0]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_result[2]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_result[0]) = 0xffffdf5b000041b0; + __m256i_out = __lasx_xvmaddwev_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000fb8000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000fb8000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x807f807f00000380; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007380; + *((unsigned long *)&__m256i_op0[1]) = 0xc03fc03f000001c0; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000001c0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[3]) = 0x807f807f00000380; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007380; + *((unsigned long *)&__m256i_result[1]) = 0xc03fc03f000001c0; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001c0; + __m256i_out = __lasx_xvmaddwev_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xff80ff00ff80ff01; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xff80ff00ff80ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x007f00ff007f00fe; + *((unsigned long *)&__m256i_op2[2]) = 0xf711ee11f711ee91; + *((unsigned long *)&__m256i_op2[1]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op2[0]) = 0xf711ee11f711ee11; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff80ff00ff80ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff80ff00ff80ff01; + __m256i_out = __lasx_xvmaddwev_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op1[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op1[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op1[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op2[3]) = 0xffff801000000010; + *((unsigned long *)&__m256i_op2[2]) = 0xffff800300000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffff801000000010; + *((unsigned long *)&__m256i_op2[0]) = 0xffff800300000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvmaddwev_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[0]) = 0x01fe01fe00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[2]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000022; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000022; + *((unsigned long *)&__m256i_result[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_result[2]) = 0x00000045ff740023; + *((unsigned long *)&__m256i_result[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_result[0]) = 0x00000045ff740023; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x000000000155b200; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000b70000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000016e00; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000001e001e001e0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000001e001e001e0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-3.c new file mode 100644 index 00000000000..40549448ee3 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwev-3.c @@ -0,0 +1,940 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0003ff540000081c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0003ffd00003fd38; + *((unsigned long *)&__m256i_op1[3]) = 0x0001ffaa0000040e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000716800007bb6; + *((unsigned long *)&__m256i_op1[1]) = 0x0001ffe80001fe9c; + *((unsigned long *)&__m256i_op1[0]) = 0x0000228200001680; + *((unsigned long *)&__m256i_op2[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_op2[2]) = 0xc5c085372cfabfba; + *((unsigned long *)&__m256i_op2[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_op2[0]) = 0x0658f2dc0eb21e3c; + *((unsigned long *)&__m256i_result[3]) = 0x002e4db200000000; + *((unsigned long *)&__m256i_result[2]) = 0x000315ac0000d658; + *((unsigned long *)&__m256i_result[1]) = 0x00735278007cf94c; + *((unsigned long *)&__m256i_result[0]) = 0x0003ed8800031b38; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff01ff01ff01; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff0001ff04; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff02a0fefc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000cfefd; + *((unsigned long *)&__m256i_op1[3]) = 0x6100000800060005; + *((unsigned long *)&__m256i_op1[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5ff00007fff9fff3; + *((unsigned long *)&__m256i_op2[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op2[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op2[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op2[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff7fffbfefa; + *((unsigned long *)&__m256i_result[2]) = 0xff1eff1902a0fea4; + *((unsigned long *)&__m256i_result[1]) = 0xff10000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff10fff9ff13fd17; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfafafafafafafafa; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000fefefe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xf9fbf9fbf9fbf9fb; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[1]) = 0xfdfffdfffdfffdff; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff01fffffdff; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000627; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000627; + *((unsigned long *)&__m256i_op2[3]) = 0x7fff7fff05407fff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x7fff7fff05407fff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_result[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[0]) = 0x000000003fff3fff; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000400; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000400; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_result[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_result[0]) = 0xff00ff00ff00ef32; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_op2[2]) = 0xfffffffffdd97dc4; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_op2[0]) = 0xfffffffffdd97dc4; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000001; + *((unsigned long *)&__m256i_result[2]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00000001; + *((unsigned long *)&__m256i_result[0]) = 0x1010100f10100fd4; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op0[2]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op0[1]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op0[0]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[2]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[1]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[0]) = 0xebebebebebebebeb; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x001f001fffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x001f001fffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x34ec5670cd4b5ec0; + *((unsigned long *)&__m256i_op0[2]) = 0x4f111e4b8e0d7291; + *((unsigned long *)&__m256i_op0[1]) = 0xeaa81f47dc3bdd09; + *((unsigned long *)&__m256i_op0[0]) = 0x0e0d5fde5df99830; + *((unsigned long *)&__m256i_op1[3]) = 0x67390c19e4b17547; + *((unsigned long *)&__m256i_op1[2]) = 0xbacda0f96d2cec01; + *((unsigned long *)&__m256i_op1[1]) = 0xee20ad1adae2cc16; + *((unsigned long *)&__m256i_op1[0]) = 0x5a2003c6a406fe53; + *((unsigned long *)&__m256i_op2[3]) = 0x80c72fcd40fb3bc0; + *((unsigned long *)&__m256i_op2[2]) = 0x84bd087966d4ace0; + *((unsigned long *)&__m256i_op2[1]) = 0x26aa68b274dc1322; + *((unsigned long *)&__m256i_op2[0]) = 0xe072db2bb9d4cd40; + *((unsigned long *)&__m256i_result[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_result[2]) = 0x5464fbfc416b9f71; + *((unsigned long *)&__m256i_result[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_result[0]) = 0x0d8264202b8ea3f0; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff0000ffff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0xff000000ffffff00; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffffffff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x01fa022a01a401e5; + *((unsigned long *)&__m256i_op1[2]) = 0x030d03aa0079029b; + *((unsigned long *)&__m256i_op1[1]) = 0x024c01f901950261; + *((unsigned long *)&__m256i_op1[0]) = 0x008102c2008a029f; + *((unsigned long *)&__m256i_op2[3]) = 0x002e4db200000000; + *((unsigned long *)&__m256i_op2[2]) = 0x000315ac0000d658; + *((unsigned long *)&__m256i_op2[1]) = 0x00735278007cf94c; + *((unsigned long *)&__m256i_op2[0]) = 0x0003ed8800031b38; + *((unsigned long *)&__m256i_result[3]) = 0x01a72334ffff00ff; + *((unsigned long *)&__m256i_result[2]) = 0xff4f6838ff937648; + *((unsigned long *)&__m256i_result[1]) = 0x00a2afb7fff00ecb; + *((unsigned long *)&__m256i_result[0]) = 0xffce110f004658c7; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003a099512; + *((unsigned long *)&__m256i_op0[1]) = 0x280ac9da313763f5; + *((unsigned long *)&__m256i_op0[0]) = 0xe032c738adcc6bbf; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op2[1]) = 0x0001000100020001; + *((unsigned long *)&__m256i_op2[0]) = 0x0000fffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_result[2]) = 0x000000003a099512; + *((unsigned long *)&__m256i_result[1]) = 0x280ac9da313763f5; + *((unsigned long *)&__m256i_result[0]) = 0xe032c738adcc6bbf; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff000000000000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000045f3fb; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000045f3fb; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[0]) = 0xf7f7f7f7f7f7f7f7; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op0[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_result[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00010003; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000001f0000001f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001f0000ffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000060008; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000000c005b; + *((unsigned long *)&__m256i_op2[1]) = 0xfffffffffffe0000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000040053; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff0007fff7; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff005affa4; + *((unsigned long *)&__m256i_result[1]) = 0xffffffe100000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000053ffac; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op2[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op2[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op2[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000420080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000420080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000420080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000420080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op2[3]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000420080000000; + *((unsigned long *)&__m256i_result[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000420080000000; + *((unsigned long *)&__m256i_result[0]) = 0x5fff5fff607f0000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[2]) = 0x0100004300000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[0]) = 0x0100004300000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op2[2]) = 0xff00010001000100; + *((unsigned long *)&__m256i_op2[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op2[0]) = 0xff00010001000100; + *((unsigned long *)&__m256i_result[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[2]) = 0x01ffff4300ffff00; + *((unsigned long *)&__m256i_result[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[0]) = 0x01ffff4300ffff00; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000001000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000001000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op1[1]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffb8579f; + __m256i_out + = __lasx_xvmaddwev_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwev_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x009200f200840080; + *((unsigned long *)&__m256i_op0[2]) = 0x009200f200840080; + *((unsigned long *)&__m256i_op0[1]) = 0x00b200b300800080; + *((unsigned long *)&__m256i_op0[0]) = 0x00b200b300800080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x009200f200840080; + *((unsigned long *)&__m256i_result[2]) = 0x009200f200840080; + *((unsigned long *)&__m256i_result[1]) = 0x00b200b300800080; + *((unsigned long *)&__m256i_result[0]) = 0x00b200b300800080; + __m256i_out + = __lasx_xvmaddwev_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000202020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000404040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000202020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000404040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000202020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000404040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000202020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000404040; + __m256i_out + = __lasx_xvmaddwev_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000800080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000800080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1fa0000000080000; + __m256i_out + = __lasx_xvmaddwev_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffe00000001; + __m256i_out + = __lasx_xvmaddwev_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0202020201010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0202020201010000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xfe02fe02fee5fe22; + *((unsigned long *)&__m256i_op2[0]) = 0xff49fe4200000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_result[1]) = 0xfffe928f1313c9cc; + *((unsigned long *)&__m256i_result[0]) = 0x4244020201010000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[0]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[0]) = 0x0005000500050005; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op2[3]) = 0x3f3f3f3f3f3f3f3f; + *((unsigned long *)&__m256i_op2[2]) = 0x3f3f3f3f3f3f3f3f; + *((unsigned long *)&__m256i_op2[1]) = 0x000000003f3f3f3f; + *((unsigned long *)&__m256i_op2[0]) = 0x3f3f3f3f00000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_result[2]) = 0xc6c6c6c68787878a; + *((unsigned long *)&__m256i_result[1]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_result[0]) = 0x8787878a00000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op2[3]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op2[2]) = 0xc6c6c6c68787878a; + *((unsigned long *)&__m256i_op2[1]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op2[0]) = 0x8787878a00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffe3; + *((unsigned long *)&__m256i_result[2]) = 0x63636344c3c3c4f6; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffc3; + *((unsigned long *)&__m256i_result[0]) = 0xc3c3c500fffffff6; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op1[2]) = 0x000400030010000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op1[0]) = 0x000400030010000f; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffbfffcffeffff0; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffbfffcffeffff0; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000b0cfffff4f3; + *((unsigned long *)&__m256i_op0[2]) = 0x000f9bb562f56c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000b0cfffff4f3; + *((unsigned long *)&__m256i_op0[0]) = 0x000f9bb562f56c80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op2[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op2[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0018761ed60b5d7f; + *((unsigned long *)&__m256i_result[2]) = 0xabdcdc9938afafe9; + *((unsigned long *)&__m256i_result[1]) = 0x0018761ed60b5d7f; + *((unsigned long *)&__m256i_result[0]) = 0xabdcdc9938afafe9; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-1.c new file mode 100644 index 00000000000..6838769331f --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-1.c @@ -0,0 +1,742 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00ffffffffffffff; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fff7fff; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op0[2]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op0[1]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op0[0]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op2[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op2[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op2[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_result[3]) = 0x1031146010201020; + *((unsigned long *)&__m256i_result[2]) = 0x1020102010201020; + *((unsigned long *)&__m256i_result[1]) = 0x1031146010201020; + *((unsigned long *)&__m256i_result[0]) = 0x1020102010201020; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000080800000808; + *((unsigned long *)&__m256i_op2[2]) = 0x0000080800000808; + *((unsigned long *)&__m256i_op2[1]) = 0x0000080800000808; + *((unsigned long *)&__m256i_op2[0]) = 0x0000080800000808; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3d3d3d3d3d3d3d3d; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_op2[2]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_op2[1]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_op2[0]) = 0xfff8fffffff8ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x94d7fb5200000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x94d7fb5200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_op2[2]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_op2[0]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x94d7fb5200000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x94d7fb5200000000; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op2[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op2[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0x0000020000010201; + *((unsigned long *)&__m256i_result[2]) = 0x0000020000010201; + *((unsigned long *)&__m256i_result[1]) = 0x0000020000010201; + *((unsigned long *)&__m256i_result[0]) = 0x0000020000010201; + __m256i_out = __lasx_xvmaddwod_h_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op2[2]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op2[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op2[0]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000017e; + __m256i_out = __lasx_xvmaddwod_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f3fc6c68787; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f3f87870000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_result[2]) = 0x00003e3ec6c68686; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fffffeff; + *((unsigned long *)&__m256i_result[0]) = 0x00003e3e87870000; + __m256i_out = __lasx_xvmaddwod_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_op0[2]) = 0x019d00a2003a0000; + *((unsigned long *)&__m256i_op0[1]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_op0[0]) = 0x019d00a2003a0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000077fff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_result[2]) = 0x019d00a20039fff9; + *((unsigned long *)&__m256i_result[1]) = 0x01fe007a01c40110; + *((unsigned long *)&__m256i_result[0]) = 0x019d00a2003a0000; + __m256i_out = __lasx_xvmaddwod_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000003cc0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000003cc0; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000003cc0; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000003cc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000002780; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000002780; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_w_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000f3280000dfff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_op1[0]) = 0x00007fff7fff7fff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_result[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000f3280000dfff; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff90ffffff80; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_result[0]) = 0x7ff0000000000000; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3fffffffff7f0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3fffffffff7f0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000c7aff7c00; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000c7aff7c00; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000002030000; + *((unsigned long *)&__m256i_op2[2]) = 0x030303670101fd90; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000002030000; + *((unsigned long *)&__m256i_op2[0]) = 0x030303670101fd90; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3ffffffffc7bfc99; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3ffffffffc7bfc99; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_op2[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op2[2]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op2[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op2[0]) = 0xff80000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0200000202000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0200000202000002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0200000202000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0200000202000002; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0200000202000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0200000202000002; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000100080; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000100080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf800f800f800c000; + *((unsigned long *)&__m256i_op0[2]) = 0xf800f800f800a000; + *((unsigned long *)&__m256i_op0[1]) = 0xf800f800f800e000; + *((unsigned long *)&__m256i_op0[0]) = 0xf800f800f800e000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff00ffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0001000100010000; + *((unsigned long *)&__m256i_op2[2]) = 0x020afefb08140000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_result[3]) = 0xf800f7fff8ffc0ff; + *((unsigned long *)&__m256i_result[2]) = 0xf8fff7fff7ffa000; + *((unsigned long *)&__m256i_result[1]) = 0xf800f800f800e000; + *((unsigned long *)&__m256i_result[0]) = 0xf800f800f800e000; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffff39ffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffff39ffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_q_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-2.c new file mode 100644 index 00000000000..f9f88b65402 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-2.c @@ -0,0 +1,799 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x8000ffff8000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff80008000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800080008000b8f1; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x074132a240000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000ffff8000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x06f880008000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800080008000b8f1; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x00000012481e4950; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000001658166830; + *((unsigned long *)&__m256i_result[3]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000004000000040; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[0]) = 0xf7f7f7f7f7f7f7f7; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1f60010000080100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1f60010000080100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1f60010000080100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1f60010000080100; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_op2[3]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xc039000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xbf3ffffffffeffed; + *((unsigned long *)&__m256i_result[2]) = 0xbf3ffffffffeffed; + *((unsigned long *)&__m256i_result[1]) = 0xbf3ffffffffeffed; + *((unsigned long *)&__m256i_result[0]) = 0xbf3ffffffffeffed; + __m256i_out = __lasx_xvmaddwod_h_bu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0ff80100ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0ff80100ffffffff; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x34000000fff00000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff6e00000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x3380000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x363c0000fff3c000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffb7146213; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffc1e0049; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffb71c413b; + *((unsigned long *)&__m256i_op1[0]) = 0xf3317da580000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x34000000fff00000; + *((unsigned long *)&__m256i_result[2]) = 0xfff6e00000000000; + *((unsigned long *)&__m256i_result[1]) = 0x3380000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x363c0000fff3c000; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffe000ffffffffff; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01c03f8034c03200; + *((unsigned long *)&__m256i_op0[2]) = 0x3dc02b400a003400; + *((unsigned long *)&__m256i_op0[1]) = 0x01c03f8034c03200; + *((unsigned long *)&__m256i_op0[0]) = 0x3dc02b400a003400; + *((unsigned long *)&__m256i_op1[3]) = 0x01c03f8034c03200; + *((unsigned long *)&__m256i_op1[2]) = 0x3dc02b400a003400; + *((unsigned long *)&__m256i_op1[1]) = 0x01c03f8034c03200; + *((unsigned long *)&__m256i_op1[0]) = 0x3dc02b400a003400; + *((unsigned long *)&__m256i_op2[3]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op2[2]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_op2[1]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op2[0]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_result[3]) = 0x01ce3c0050d32d40; + *((unsigned long *)&__m256i_result[2]) = 0x3fadafc013acf600; + *((unsigned long *)&__m256i_result[1]) = 0x01ce3c0050d32d40; + *((unsigned long *)&__m256i_result[0]) = 0x3fadafc013acf600; + __m256i_out = __lasx_xvmaddwod_w_hu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op2[2]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op2[1]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op2[0]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[3]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[2]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[1]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[0]) = 0xffffffecffffffec; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000100; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000100; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xfffffefdfffffefd; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000100; + *((unsigned long *)&__m256i_result[2]) = 0x7fffff7d80000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000100; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000001fdfffffe02; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000001fefe; + *((unsigned long *)&__m256i_op0[0]) = 0xffff01fefffeff02; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000001fdfffffe02; + *((unsigned long *)&__m256i_result[1]) = 0x000000000001fefe; + *((unsigned long *)&__m256i_result[0]) = 0xffff01fefffeff02; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffdfffffffdffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffddffdeffb5ff8d; + *((unsigned long *)&__m256i_op0[1]) = 0xfffdfffffffdffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffddffdeffb5ff8d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffffffeeffaf; + *((unsigned long *)&__m256i_op1[2]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffeeffaf; + *((unsigned long *)&__m256i_op1[0]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_op2[3]) = 0xfffdfffffffdffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffddffdeffb5ff8d; + *((unsigned long *)&__m256i_op2[1]) = 0xfffdfffffffdffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffddffdeffb5ff8d; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffcffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0febedc9bb95dd8f; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffcffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0febedc9bb95dd8f; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000545400; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000545400; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fe; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_op0[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff7bfffff1; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff80007fe9; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff7bfffff1; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff80007fe9; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010511c54440437; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010511c54440437; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000103fca1bd; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000103fca1bd; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000103fca1bd; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000103fca1bd; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[2]) = 0x0010511c54440438; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[0]) = 0x0010511c54440438; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0c6a240000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0c6a240000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwod_d_wu (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[0]) = 0x01fe01fe00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[2]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000022; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000022; + *((unsigned long *)&__m256i_result[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_result[2]) = 0x00000045ff740023; + *((unsigned long *)&__m256i_result[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_result[0]) = 0x00000045ff740023; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x000000000155b200; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000b70000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000016e00; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000001e001e001e0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000001e001e001e0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaddwev_q_du (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-3.c new file mode 100644 index 00000000000..5210e4cf906 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaddwod-3.c @@ -0,0 +1,820 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op2[2]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op2[1]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op2[0]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff01ff01ff01; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000000; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[2]) = 0x000b8f81b8c850f4; + *((unsigned long *)&__m256i_op0[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[0]) = 0x000b8f81b8c850f4; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256i_op2[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op2[2]) = 0x000b8f81b8c850f4; + *((unsigned long *)&__m256i_op2[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op2[0]) = 0x000b8f81b8c850f4; + *((unsigned long *)&__m256i_result[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_result[2]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_result[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_result[0]) = 0x000b2673a90896a4; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op0[2]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op0[0]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc03fffffffc0; + *((unsigned long *)&__m256i_op1[2]) = 0xffffc00000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc03fffffffc0; + *((unsigned long *)&__m256i_op1[0]) = 0xffffc00000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_result[2]) = 0xc600000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_result[0]) = 0xc600000000000000; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff000003c0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff000003c0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7c030000ffc4; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7c030000ffc4; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00f7000000f70006; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00f7000000f70006; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff0007a861; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff0007a861; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_h_bu_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xbff0000000000000; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff0002fffeffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff0002fffeffff; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000505; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001000; + *((unsigned long *)&__m256i_op2[3]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xf000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000627; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000627; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1f60000000c00000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x1f60000000c00000; + *((unsigned long *)&__m256i_op2[3]) = 0x7fff7fff05407fff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x7fff7fff05407fff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000627; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000627; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x437f201f201f2020; + *((unsigned long *)&__m256i_op1[2]) = 0x037f201f001f2020; + *((unsigned long *)&__m256i_op1[1]) = 0x437f201f201f2020; + *((unsigned long *)&__m256i_op1[0]) = 0x037f201f001f2020; + *((unsigned long *)&__m256i_op2[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x21bb481000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01bf481000000000; + *((unsigned long *)&__m256i_result[1]) = 0x21bb481000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01bf481000000000; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op2[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_op2[1]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op2[0]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x000000ffffff1dff; + *((unsigned long *)&__m256i_op2[2]) = 0xffff1dffffff1dff; + *((unsigned long *)&__m256i_op2[1]) = 0x000000ffffff1dff; + *((unsigned long *)&__m256i_op2[0]) = 0xffff1dffffff1dff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_result[2]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_result[0]) = 0xffff8001ffff0001; + __m256i_out + = __lasx_xvmaddwod_w_hu_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffe40; + *((unsigned long *)&__m256i_op1[3]) = 0x00f9f90079f9f9f9; + *((unsigned long *)&__m256i_op1[2]) = 0x79f9f9f900000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00f9f90079f9f9f9; + *((unsigned long *)&__m256i_op1[0]) = 0x79f9f9f900000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff8c80; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffe40; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000089; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_result[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000089; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffeffffffdd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffdc; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_result[3]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfbff0000ffff0000; + *((unsigned long *)&__m256i_op0[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfbff0000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfbff0000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfbff0000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000000000; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0101010101010110; + *((unsigned long *)&__m256i_op2[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[1]) = 0x0101010101010110; + *((unsigned long *)&__m256i_op2[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwod_d_wu_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0202020201010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0202020201010000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xfe02fe02fee5fe22; + *((unsigned long *)&__m256i_op2[0]) = 0xff49fe4200000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_result[1]) = 0xfffe928f1313c9cc; + *((unsigned long *)&__m256i_result[0]) = 0x4244020201010000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[0]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[0]) = 0x0005000500050005; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op2[3]) = 0x3f3f3f3f3f3f3f3f; + *((unsigned long *)&__m256i_op2[2]) = 0x3f3f3f3f3f3f3f3f; + *((unsigned long *)&__m256i_op2[1]) = 0x000000003f3f3f3f; + *((unsigned long *)&__m256i_op2[0]) = 0x3f3f3f3f00000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_result[2]) = 0xc6c6c6c68787878a; + *((unsigned long *)&__m256i_result[1]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_result[0]) = 0x8787878a00000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffff6; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op2[3]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op2[2]) = 0xc6c6c6c68787878a; + *((unsigned long *)&__m256i_op2[1]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op2[0]) = 0x8787878a00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffe3; + *((unsigned long *)&__m256i_result[2]) = 0x63636344c3c3c4f6; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffc3; + *((unsigned long *)&__m256i_result[0]) = 0xc3c3c500fffffff6; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op1[2]) = 0x000400030010000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op1[0]) = 0x000400030010000f; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffbfffcffeffff0; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffbfffcffeffff0; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000b0cfffff4f3; + *((unsigned long *)&__m256i_op0[2]) = 0x000f9bb562f56c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000b0cfffff4f3; + *((unsigned long *)&__m256i_op0[0]) = 0x000f9bb562f56c80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op2[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op2[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0018761ed60b5d7f; + *((unsigned long *)&__m256i_result[2]) = 0xabdcdc9938afafe9; + *((unsigned long *)&__m256i_result[1]) = 0x0018761ed60b5d7f; + *((unsigned long *)&__m256i_result[0]) = 0xabdcdc9938afafe9; + __m256i_out + = __lasx_xvmaddwev_q_du_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138608 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp836172vqx; Tue, 12 Sep 2023 20:54:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9NEHN1/rokdTcKe4GqxLGXdqqtXrHzOGQAAARjw+2MmA6pnjnqN3/rDqUzBKStpR8QUEW X-Received: by 2002:a5d:5957:0:b0:317:e542:80a8 with SMTP id e23-20020a5d5957000000b00317e54280a8mr984654wri.15.1694577295279; Tue, 12 Sep 2023 20:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577295; cv=none; d=google.com; s=arc-20160816; b=JSCfpioSjlmNTdeEuFbZGssG1/3pW7pUfic5uwfxm9lpKmanYBrpWpdpUayo9pPC2E o1Bcj1q8kb+AK8cgEu5oKRYxdgWOKWG3u6sJKI62C+xuhYkjkH508qefsnZCBQvLIWe7 Vc1TOD+zAwuZjbpF9FnNQqyH+gKD4U81M1mNzdhi4Hx0MHd+x6i8AvluP4uz+cC9pCzB m311atj1xLzztrURCRg2t89O2VCIT7MwDLnbS5uQKTSV8LSE3RquK45ZAa4RJmGfqOHa j7HnojmuhdbeIOCVCLkr7gdgC+LUEEAxZ6vaSXqhoG+QdpsSSh7sD3Oef6WPZeFbEPMe qRMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=2JDBlOQBX+8TsNupHOrMOnuoDqkK93R4lBzhFcls/Z4=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=tPYZ2uefefL7y8iWg/wUrCjSmDnUTKACw2iEbnlLRKgzgnK89irG4CmIqGev9yc9CI N51G1cBrjfL8NQuYsmygipj/1lXKMdnHQ/gxVE6v9iwNLcEebDMZV5c59IUFrB/EbosQ bkvnDmLId/tS+38hy3Pzq0OcNt32XiCdNOECS1JRdxs5aneQ0I4jl6G8Sk3o5sEz1lQV ZfQAUwcypm/ARBsjiVfwO6j2hxlvam1V+YoXCur3PEm77cNw0x+NdQ0L30Fb2/I+OaA+ VMJzyRvaSfKM/0J9NZOF2ng8iwC78OJQsOoqyIQ3gAl7Qk+sLXAi3OyIVJ/nxqkWeKh9 930g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id cy24-20020a0564021c9800b0052bd8711478si2815524edb.686.2023.09.12.20.54.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 88A0738305C6 for ; Wed, 13 Sep 2023 03:40:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 47590382DC55 for ; Wed, 13 Sep 2023 03:39:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47590382DC55 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGii-00048R-Vs for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:39:23 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8AxTevhLgFlSDEmAA--.3082S3; Wed, 13 Sep 2023 11:39:13 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S7; Wed, 13 Sep 2023 11:39:12 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 03/22] LoongArch: Add tests for ASX vector subtraction instructions. Date: Wed, 13 Sep 2023 11:38:40 +0800 Message-Id: <20230913033859.6734-4-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S7 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBKQAAs7 X-Coremail-Antispam: 1Uk129KBj9DXoWkuF1kJryDGw43Xw43XF4kZrc_yoW5Xw1DZF c_JF1UJFW0gFsa9r1kXr1UZF98Wr17GwnFv3WUAF1vq3WSyw4kA3s8AFy2gw17Kw1UZrnx AFyDu34UGrs8Gry8KosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1T uYvTs0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9f nUUIcSsGvfJTRUUUbcxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4 v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0 rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267 AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x02 67AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26Fy26r45twAv7VC2 z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04 k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18 MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr4 1lIxAIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1U MIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcV C2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8v4EtUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893081627683239 X-GMAIL-MSGID: 1776893081627683239 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvssub-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvssub-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsub.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsubi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsubwev-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsubwev-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsubwod-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsubwod-2.c: New test. --- .../loongarch/vector/lasx/lasx-xvssub-1.c | 425 +++++++++++ .../loongarch/vector/lasx/lasx-xvssub-2.c | 695 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsub.c | 590 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvsubi.c | 482 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsubwev-1.c | 530 +++++++++++++ .../loongarch/vector/lasx/lasx-xvsubwev-2.c | 440 +++++++++++ .../loongarch/vector/lasx/lasx-xvsubwod-1.c | 695 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsubwod-2.c | 620 ++++++++++++++++ 8 files changed, 4477 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsub.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-2.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-1.c new file mode 100644 index 00000000000..ada72a16a09 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-1.c @@ -0,0 +1,425 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000001dc; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000001dc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff24; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff24; + __m256i_out = __lasx_xvssub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvssub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000bdfef907bc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000bdfef907bc; + __m256i_out = __lasx_xvssub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101000000010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101000000010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffc0; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2b2b2b2b1bd68080; + *((unsigned long *)&__m256i_op1[2]) = 0x2a2ad4d4f2d8807e; + *((unsigned long *)&__m256i_op1[1]) = 0x2b2b2b2b1bd68080; + *((unsigned long *)&__m256i_op1[0]) = 0x2a2ad4d4f2d8807e; + *((unsigned long *)&__m256i_result[3]) = 0xd4d5d4d5e42a7f80; + *((unsigned long *)&__m256i_result[2]) = 0xd5d62b2c0d287f82; + *((unsigned long *)&__m256i_result[1]) = 0xd4d5d4d5e42a7f80; + *((unsigned long *)&__m256i_result[0]) = 0xd5d62b2c0d287f82; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff07b4ffff0707; + *((unsigned long *)&__m256i_op0[2]) = 0x0000b8070000a787; + *((unsigned long *)&__m256i_op0[1]) = 0xffff07b4ffff0707; + *((unsigned long *)&__m256i_op0[0]) = 0x0000b8070000a787; + *((unsigned long *)&__m256i_op1[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op1[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_op1[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op1[0]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_result[3]) = 0xffffb7650000d496; + *((unsigned long *)&__m256i_result[2]) = 0x0001800000018000; + *((unsigned long *)&__m256i_result[1]) = 0xffffb7650000d496; + *((unsigned long *)&__m256i_result[0]) = 0x0001800000018000; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff000003c0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff000003c0; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff81001dff9dff9e; + *((unsigned long *)&__m256i_op0[2]) = 0xff81001dff9d003b; + *((unsigned long *)&__m256i_op0[1]) = 0xff81001dff9dff9e; + *((unsigned long *)&__m256i_op0[0]) = 0xff81001dff9d003b; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff81001dff9dff9e; + *((unsigned long *)&__m256i_result[2]) = 0xff81001dff9d003b; + *((unsigned long *)&__m256i_result[1]) = 0xff81001dff9dff9e; + *((unsigned long *)&__m256i_result[0]) = 0xff81001dff9d003b; + __m256i_out = __lasx_xvssub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00fd0101; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00fd0101; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00fd0101; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00fd0101; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[2]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[1]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[3]) = 0x40f69fe63c26f4f5; + *((unsigned long *)&__m256i_result[2]) = 0x7ff7ffff00000007; + *((unsigned long *)&__m256i_result[1]) = 0x40f69fe63c26f4f5; + *((unsigned long *)&__m256i_result[0]) = 0x7ff7ffff00000007; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff00007fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff00007fff; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001010800; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001010800; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffefef800; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffefef800; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007f0000007f0060; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4393a0a5bc606060; + *((unsigned long *)&__m256i_op0[2]) = 0x43b32feea9000000; + *((unsigned long *)&__m256i_op0[1]) = 0x4393a0a5bc606060; + *((unsigned long *)&__m256i_op0[0]) = 0x43b32feea9000000; + *((unsigned long *)&__m256i_op1[3]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256i_op1[2]) = 0x408480007fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256i_op1[0]) = 0x408480007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x04e8296f3c611818; + *((unsigned long *)&__m256i_result[2]) = 0x032eafee29010000; + *((unsigned long *)&__m256i_result[1]) = 0x04e8296f3c611818; + *((unsigned long *)&__m256i_result[0]) = 0x032eafee29010000; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001ff91ff100000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001ff91ff100000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000800080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000800080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000202; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffffff7fff80; + *((unsigned long *)&__m256i_result[2]) = 0x0001ff91ff0ffdfe; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffff7fff80; + *((unsigned long *)&__m256i_result[0]) = 0x0001ff91ff0ffdfe; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvssub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-2.c new file mode 100644 index 00000000000..f42523850a1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvssub-2.c @@ -0,0 +1,695 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xf7fdd5ffebe1c9e3; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xf7fdd5ffebe1c9e3; + *((unsigned long *)&__m256i_op1[3]) = 0x000000002467db99; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003e143852; + *((unsigned long *)&__m256i_op1[1]) = 0x000000002467db99; + *((unsigned long *)&__m256i_op1[0]) = 0x000000003e143852; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffdb982466; + *((unsigned long *)&__m256i_result[2]) = 0xf7fdd5ffadcd9191; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffdb982466; + *((unsigned long *)&__m256i_result[0]) = 0xf7fdd5ffadcd9191; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_result[3]) = 0x7fef0000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fef0000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000f880f87e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000f880f87e; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff0000; + __m256i_out = __lasx_xvssub_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[0]) = 0x0100000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0010511c54440438; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0010511c54440438; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000030b8; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[0]) = 0xff1cff1cff1cff1c; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100002000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000808000008080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000808000008081; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffec; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffec; + *((unsigned long *)&__m256i_result[3]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000403f3fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op1[2]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op1[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op1[0]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_result[3]) = 0x38f7414938f7882f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x38f7414938f78830; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[3]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_op1[1]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffe00000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000f0f0f0ef; + *((unsigned long *)&__m256i_op0[2]) = 0xf0f0f0f0f0f0f0ef; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000f0f0f0ef; + *((unsigned long *)&__m256i_op0[0]) = 0xf0f0f0f0f0f0f0ef; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000180007f7f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffafaf80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000180007f7f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffafaf80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000070f07170; + *((unsigned long *)&__m256i_result[2]) = 0x0000000070f0f0ef; + *((unsigned long *)&__m256i_result[1]) = 0x0000000070f07170; + *((unsigned long *)&__m256i_result[0]) = 0x0000000070f0f0ef; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000032; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000003c000000032; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000004e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ffffffffffffff; + __m256i_out = __lasx_xvssub_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010100000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010100000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0feff00000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0feff00000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_op1[2]) = 0x2475cef801f0ffdd; + *((unsigned long *)&__m256i_op1[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_op1[0]) = 0x419cd5b11c3c5654; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1010100fefefeff0; + *((unsigned long *)&__m256i_op1[2]) = 0x0f8f0e8df676f778; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0020000000200000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0020000000200000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffdfffffffdfffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffdfffffffdfffff; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0100000001000100; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0100000001000100; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffe8ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffe8ffffffe8; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffe8ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffe8ffffffe8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000c0000005; + *((unsigned long *)&__m256i_op1[2]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000c0000005; + *((unsigned long *)&__m256i_op1[0]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvssub_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsub.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsub.c new file mode 100644 index 00000000000..c1de1e8d345 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsub.c @@ -0,0 +1,590 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000010100000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000010100000000; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffbe20fc; + *((unsigned long *)&__m256i_op0[2]) = 0x000000001cc7ee87; + *((unsigned long *)&__m256i_op0[1]) = 0x000000010bb83239; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000c409ed87; + *((unsigned long *)&__m256i_op1[3]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[2]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[1]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[3]) = 0x0100020001bf1efd; + *((unsigned long *)&__m256i_result[2]) = 0x010002001ec8ec88; + *((unsigned long *)&__m256i_result[1]) = 0x010002010db9303a; + *((unsigned long *)&__m256i_result[0]) = 0x01000200c60aeb88; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010200000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010200000000; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010200000000; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_op0[2]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_op0[0]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_result[2]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_result[0]) = 0x7e00000000000000; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000040004000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000004000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000040004000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000004000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op1[2]) = 0x01ffff4300ffff00; + *((unsigned long *)&__m256i_op1[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op1[0]) = 0x01ffff4300ffff00; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff003f003f00; + *((unsigned long *)&__m256i_result[2]) = 0xff0101fd00010100; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff003f003f00; + *((unsigned long *)&__m256i_result[0]) = 0xff0101fd00010100; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff010000fff9; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff19; + *((unsigned long *)&__m256i_result[1]) = 0xff02ff020001fffa; + *((unsigned long *)&__m256i_result[0]) = 0x000100010001fffa; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x43d03bfff827ea21; + *((unsigned long *)&__m256i_op1[2]) = 0x43dac1f2a3804ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x43d03bfff827e9f9; + *((unsigned long *)&__m256i_op1[0]) = 0x43e019c657c7d050; + *((unsigned long *)&__m256i_result[3]) = 0xbc30c40107d915df; + *((unsigned long *)&__m256i_result[2]) = 0xbc263e0e5c80b010; + *((unsigned long *)&__m256i_result[1]) = 0xbc30c40107d91607; + *((unsigned long *)&__m256i_result[0]) = 0xbc20e63aa8392fb0; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op0[2]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op0[1]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op0[0]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_result[2]) = 0xff21c241ff21c238; + *((unsigned long *)&__m256i_result[1]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_result[0]) = 0xff21c241ff21c238; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f8f7f8f7f8f7f8; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xf7f8f7f8f7f8f7f8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000e000e000e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000e000e000e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000e000e000e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000e000e000e; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x207f207f207f2000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000207f2000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[3]) = 0xdf80df80df80dfff; + *((unsigned long *)&__m256i_result[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffdf80dfff; + *((unsigned long *)&__m256i_result[0]) = 0x8080808080808080; + __m256i_out = __lasx_xvsub_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xc5c5c5c5c5c5c5c5; + *((unsigned long *)&__m256i_result[2]) = 0x45c5c5c645c5c5c6; + *((unsigned long *)&__m256i_result[1]) = 0xc5c5c5c5c5c5c5c5; + *((unsigned long *)&__m256i_result[0]) = 0x45c5c5c645c5c5c6; + __m256i_out = __lasx_xvsub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xe0f02081c1c4ce2c; + *((unsigned long *)&__m256i_result[2]) = 0x8008000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xe0f02081c1c4ce2c; + *((unsigned long *)&__m256i_result[0]) = 0x8008000000000000; + __m256i_out = __lasx_xvsub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000001c9880; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000001c9880; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffe36780; + *((unsigned long *)&__m256i_result[2]) = 0x8000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffe36780; + *((unsigned long *)&__m256i_result[0]) = 0x8000000100000001; + __m256i_out = __lasx_xvsub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00b213171dff0606; + *((unsigned long *)&__m256i_op0[2]) = 0x00e9a80014ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x00b213171dff0606; + *((unsigned long *)&__m256i_op0[0]) = 0x00e9a80014ff0000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00b213181dff0607; + *((unsigned long *)&__m256i_result[2]) = 0x00e9a80114ff0001; + *((unsigned long *)&__m256i_result[1]) = 0x00b213181dff0607; + *((unsigned long *)&__m256i_result[0]) = 0x00e9a80114ff0001; + __m256i_out = __lasx_xvsub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000fdfdfe; + *((unsigned long *)&__m256i_op1[3]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x0001fffe00010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7ffe0001fffe0001; + *((unsigned long *)&__m256i_result[2]) = 0x7ffe0001fffeffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000fdfdfe; + __m256i_out = __lasx_xvsub_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000006f0000007f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000006f0000007f; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[1]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8080808080808081; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808081; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op0[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op1[3]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_op1[2]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_op1[1]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_op1[0]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_result[3]) = 0x1f9d9f9d1f9db29f; + *((unsigned long *)&__m256i_result[2]) = 0x1f9d9f9d201cb39e; + *((unsigned long *)&__m256i_result[1]) = 0x201c9f9d201cb29f; + *((unsigned long *)&__m256i_result[0]) = 0x1f9d9f9d201cb39e; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_op1[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xc192181230000000; + *((unsigned long *)&__m256i_op1[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xc192181230000000; + *((unsigned long *)&__m256i_result[3]) = 0x4010000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3e6ce7d9cb7afb62; + *((unsigned long *)&__m256i_result[1]) = 0x4010000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3e6ce7d9cb7afb62; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffed; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x90007fff90008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0ffffffe90008000; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffff80000000; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfa15fa15fa15fa14; + __m256i_out = __lasx_xvsub_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsub_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0505070804040404; + *((unsigned long *)&__m256i_op0[2]) = 0x0504070804040404; + *((unsigned long *)&__m256i_op0[1]) = 0x0505070804040404; + *((unsigned long *)&__m256i_op0[0]) = 0x0504070804040404; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ff000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ff000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0504080804030405; + *((unsigned long *)&__m256i_result[2]) = 0x0504060904040305; + *((unsigned long *)&__m256i_result[1]) = 0x0504080804030405; + *((unsigned long *)&__m256i_result[0]) = 0x0504060904040305; + __m256i_out = __lasx_xvsub_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fff8fff8; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fff8fff8; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000fff8ff40; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ff0100090040; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000fff8ff40; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ff0100090040; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffefff80; + __m256i_out = __lasx_xvsub_q (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubi.c new file mode 100644 index 00000000000..a3c0de6d354 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubi.c @@ -0,0 +1,482 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xe9e9e9e9e9e9e9e9; + *((unsigned long *)&__m256i_result[2]) = 0xe9e9e9e9e9e9e9e9; + *((unsigned long *)&__m256i_result[1]) = 0xe9e9e9e9e9e9e9e9; + *((unsigned long *)&__m256i_result[0]) = 0xe9e9e9e9e9e9e9e9; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0xf9f8f9f8f9f9f900; + *((unsigned long *)&__m256i_result[2]) = 0xf9f9f9f9f9f9f9e0; + *((unsigned long *)&__m256i_result[1]) = 0xf9f8f9f8f9f9f900; + *((unsigned long *)&__m256i_result[0]) = 0xf9f9f9f9f9f9f900; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000007f; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xefefefefefefefef; + *((unsigned long *)&__m256i_result[2]) = 0xefefefefefefefef; + *((unsigned long *)&__m256i_result[1]) = 0xefefefefefefef6e; + *((unsigned long *)&__m256i_result[0]) = 0xeeeeeeeeeeeeeeee; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[2]) = 0x6aeaeaeaeaeaeaea; + *((unsigned long *)&__m256i_result[1]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[0]) = 0x6aeaeaeaeaeaeaea; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf6f6f6f6f6f6f6f6; + *((unsigned long *)&__m256i_result[2]) = 0xf6f6f6f6f6f6f6f6; + *((unsigned long *)&__m256i_result[1]) = 0xf6f6f6f6f6f6f6f6; + *((unsigned long *)&__m256i_result[0]) = 0xf6f6f6f6f6f6f6f6; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000002a54290; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[2]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[1]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[0]) = 0xe7e7e7e7e7e7e7e7; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op0[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_result[3]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_result[2]) = 0xdbcbdbcbdbcbdbcb; + *((unsigned long *)&__m256i_result[1]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_result[0]) = 0xdbcbdbcbdbcbdbcb; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0e0d0c0b0e0d0c0b; + *((unsigned long *)&__m256i_op0[2]) = 0x0e0d0c0b0e0d0c0b; + *((unsigned long *)&__m256i_op0[1]) = 0x0e0d0c0b0e0d0c0b; + *((unsigned long *)&__m256i_op0[0]) = 0x0e0d0c0b0e0d0c0b; + *((unsigned long *)&__m256i_result[3]) = 0x0a0908070a090807; + *((unsigned long *)&__m256i_result[2]) = 0x0a0908070a090807; + *((unsigned long *)&__m256i_result[1]) = 0x0a0908070a090807; + *((unsigned long *)&__m256i_result[0]) = 0x0a0908070a090807; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[0]) = 0xf9f9f9f9f9f9f9f9; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_result[2]) = 0xf2f2f2f2f2f2f2f2; + *((unsigned long *)&__m256i_result[1]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_result[0]) = 0xf2f2f2f2f2f2f2f2; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[2]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[1]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[0]) = 0xebebebebebebebeb; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefefdfdfdfd; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefefdfdfdfd; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xe4e4e4e4e4e4e4e4; + *((unsigned long *)&__m256i_result[2]) = 0xe4e4e4e4e4e4e4e4; + *((unsigned long *)&__m256i_result[1]) = 0xe4e4e4e4e4e4e4e4; + *((unsigned long *)&__m256i_result[0]) = 0xe4e4e4e4e4e4e4e4; + __m256i_out = __lasx_xvsubi_bu (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff7fff7fff7fff7; + *((unsigned long *)&__m256i_result[2]) = 0xfff7fff7fff7fff7; + *((unsigned long *)&__m256i_result[1]) = 0xfff7fff7fff7fff7; + *((unsigned long *)&__m256i_result[0]) = 0xfff7fff7fff7fff7; + __m256i_out = __lasx_xvsubi_hu (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000022be22be; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fffa2bea2be; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000022be22be; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fffa2bea2be; + *((unsigned long *)&__m256i_result[3]) = 0xffe1ffe1229f229f; + *((unsigned long *)&__m256i_result[2]) = 0x7fe07fe0a29fa29f; + *((unsigned long *)&__m256i_result[1]) = 0xffe1ffe1229f229f; + *((unsigned long *)&__m256i_result[0]) = 0x7fe07fe0a29fa29f; + __m256i_out = __lasx_xvsubi_hu (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffe5ffe5ffe5ffe5; + *((unsigned long *)&__m256i_result[2]) = 0xffe5ffe5ffe5ffe5; + *((unsigned long *)&__m256i_result[1]) = 0xffe5ffe5ffe5ffe5; + *((unsigned long *)&__m256i_result[0]) = 0xffe5ffe5ffe5ffe5; + __m256i_out = __lasx_xvsubi_hu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[2]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[1]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[0]) = 0xfff1fff1fff1fff1; + __m256i_out = __lasx_xvsubi_hu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_result[2]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_result[1]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_result[0]) = 0xfffcfffcfffcfffc; + __m256i_out = __lasx_xvsubi_hu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_result[2]) = 0xffffffef000004ea; + *((unsigned long *)&__m256i_result[1]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_result[0]) = 0xffffffefffffffef; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[2]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[1]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[0]) = 0xffffffecffffffec; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000018; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000018; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff30000000b; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff3fffffff3; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff30000000b; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff3fffffff3; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff5fffffff5; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff5fffffff5; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff5fffffff5; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff5fffffff5; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256i_result[2]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256i_result[1]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256i_result[0]) = 0xffffffe5ffffffe5; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffeaffffffea; + *((unsigned long *)&__m256i_result[2]) = 0xffffffeaffffffea; + *((unsigned long *)&__m256i_result[1]) = 0xffffffeaffffffea; + *((unsigned long *)&__m256i_result[0]) = 0xffffffeaffffffea; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x5d20a0a15d20a0a1; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x5d20a0a15d20a0a1; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x5d20a0895d20a089; + *((unsigned long *)&__m256i_result[2]) = 0xffffffe8ffffffe8; + *((unsigned long *)&__m256i_result[1]) = 0x5d20a0895d20a089; + *((unsigned long *)&__m256i_result[0]) = 0xffffffe8ffffffe8; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffe8ffffffe8; + *((unsigned long *)&__m256i_result[2]) = 0xffffffe8ffffffe8; + *((unsigned long *)&__m256i_result[1]) = 0xffffffe8ffffffe8; + *((unsigned long *)&__m256i_result[0]) = 0xffffffe8ffffffe8; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffcfffffffc; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffcfffffffc; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffcfffffffc; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffcfffffffc; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb683007ffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c0df5b41cf; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb683007ffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c0df5b41cf; + *((unsigned long *)&__m256i_result[3]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256i_result[2]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256i_result[1]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256i_result[0]) = 0xfffe97a1df5b41b0; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_result[2]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_result[1]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_result[0]) = 0xffffffe7ffffffe7; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_op0[2]) = 0x0000400100004001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_op0[0]) = 0x0000400100004001; + *((unsigned long *)&__m256i_result[3]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_result[2]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_result[1]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_result[0]) = 0x00003ff000003ff0; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_result[2]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_result[1]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_result[0]) = 0xffffffe4ffffffe4; + __m256i_out = __lasx_xvsubi_wu (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffefe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000101; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffefb; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffefb; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fe; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffc0008001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffffc0008001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffc0008001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffffc0008001; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffffc0007fe9; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffffc0007fe9; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffc0007fe9; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffffc0007fe9; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff6; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffee; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffe6; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffe6; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffe6; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffe6; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffe1; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000100080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000100080; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000006d; + *((unsigned long *)&__m256i_result[2]) = 0x000000000010006d; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000006d; + *((unsigned long *)&__m256i_result[0]) = 0x000000000010006d; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffef; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffef; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffee; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff4; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff4; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffff4; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff4; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffed; + __m256i_out = __lasx_xvsubi_du (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-1.c new file mode 100644 index 00000000000..caa72ca61d7 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-1.c @@ -0,0 +1,530 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000030007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op1[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_op1[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op1[0]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffb10001ff8f; + *((unsigned long *)&__m256i_result[2]) = 0x0001004c0001ff87; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffb10001ff8f; + *((unsigned long *)&__m256i_result[0]) = 0x0001004c0001ff87; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff7; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff7; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ff02ff80fede; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ff02ff80fede; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000100040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000100040; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffc0; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fff0ffc0; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffc0; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff0ffc0; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff0000; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256i_result[3]) = 0x0000001d0000001c; + *((unsigned long *)&__m256i_result[2]) = 0x0000001d0000001c; + *((unsigned long *)&__m256i_result[1]) = 0x0000001d0000001c; + *((unsigned long *)&__m256i_result[0]) = 0x0000001d0000001c; + __m256i_out = __lasx_xvsubwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffeff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffeff00000000; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010203; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffcfa; + *((unsigned long *)&__m256i_result[1]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffefefffffefe; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000600000006; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000102; + *((unsigned long *)&__m256i_op1[2]) = 0x000000fffffffefe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000008080809; + *((unsigned long *)&__m256i_result[2]) = 0x0000000008080809; + *((unsigned long *)&__m256i_result[1]) = 0x0000000008080809; + *((unsigned long *)&__m256i_result[0]) = 0x0000000008080809; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000300000003; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000300000003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000300000003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000300000003; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffd; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffffd; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffd; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffd; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000400000004; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff1cff18; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff1cff18; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000001400; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffec00; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffc3fe007; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffc3fe007; + __m256i_out = __lasx_xvsubwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00010000; + __m256i_out = __lasx_xvsubwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000010100000102; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000010100000102; + __m256i_out = __lasx_xvsubwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x007fffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x007fffff007fffff; + *((unsigned long *)&__m256i_op0[1]) = 0x007fffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x007fffff007fffff; + *((unsigned long *)&__m256i_op1[3]) = 0x00c200c200c200c2; + *((unsigned long *)&__m256i_op1[2]) = 0x00c200c200c200bb; + *((unsigned long *)&__m256i_op1[1]) = 0x00c200c200c200c2; + *((unsigned long *)&__m256i_op1[0]) = 0x00c200c200c200bb; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffbdff3cffbdff44; + __m256i_out = __lasx_xvsubwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-2.c new file mode 100644 index 00000000000..57d883c04c6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwev-2.c @@ -0,0 +1,440 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001700170017; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001700170017; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op0[2]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000007f0000007f; + *((unsigned long *)&__m256i_result[2]) = 0x0000007f0000007f; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff80ff01ff80; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff800000007e; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[3]) = 0x0043030300400300; + *((unsigned long *)&__m256i_op1[2]) = 0x0043030300400300; + *((unsigned long *)&__m256i_op1[1]) = 0x0043030300400100; + *((unsigned long *)&__m256i_op1[0]) = 0x0043030300400100; + *((unsigned long *)&__m256i_result[3]) = 0xffdd001dffe00020; + *((unsigned long *)&__m256i_result[2]) = 0xffdd001dffe00031; + *((unsigned long *)&__m256i_result[1]) = 0xffdd001dffe00020; + *((unsigned long *)&__m256i_result[0]) = 0xffdd001dffe00031; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000001ffe2000; + *((unsigned long *)&__m256i_op1[2]) = 0x001fe020001fe020; + *((unsigned long *)&__m256i_op1[1]) = 0x000000001ffe2000; + *((unsigned long *)&__m256i_op1[0]) = 0x001fe020001fe020; + *((unsigned long *)&__m256i_result[3]) = 0x00ff0020ff1f001f; + *((unsigned long *)&__m256i_result[2]) = 0xffe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_result[1]) = 0x00ff0020ff1f001f; + *((unsigned long *)&__m256i_result[0]) = 0xffe1ffe0ffe1ffe0; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffee00ba; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffee00ba; + *((unsigned long *)&__m256i_op1[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[2]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00fffff500ba; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00fffff500ba; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000004efffe00; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000047000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000004efffe00; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000047000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff01; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff01ff01ff01; + __m256i_out = __lasx_xvsubwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fffc0000fffc; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffc0000fffc; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001504f4c4b2361; + *((unsigned long *)&__m256i_op0[2]) = 0x303338a48f374969; + *((unsigned long *)&__m256i_op0[1]) = 0x0001504f4c4b2361; + *((unsigned long *)&__m256i_op0[0]) = 0x303338a48f374969; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[0]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_result[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_result[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_result[0]) = 0xffff47b4ffff5879; + __m256i_out = __lasx_xvsubwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvsubwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffbf4; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000308; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010100000102; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010100000102; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffffefd; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_op1[3]) = 0x80000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x80000000ffff8c80; + *((unsigned long *)&__m256i_op1[1]) = 0x80000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x80000000fff0e400; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000f1a40; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000003effe1; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000003effe1; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000003effe1; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000003effe1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffff7; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffffff7; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff0002; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff0002; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff0002; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff0002; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff0000; + __m256i_out = __lasx_xvsubwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x5d20a0a15d20a0a1; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x5d20a0a15d20a0a1; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000000001; + __m256i_out = __lasx_xvsubwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffeffffff00; + *((unsigned long *)&__m256i_op1[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffeffffff00; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000100; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000100; + __m256i_out = __lasx_xvsubwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsubwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-1.c new file mode 100644 index 00000000000..1687729d361 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-1.c @@ -0,0 +1,695 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[3]) = 0xffe4ffe6ffe5ffe6; + *((unsigned long *)&__m256i_result[2]) = 0xffe4ffe6ffe5ffe6; + *((unsigned long *)&__m256i_result[1]) = 0xffe4ffe6ffe5ffe6; + *((unsigned long *)&__m256i_result[0]) = 0xffe4ffe6ffe5ffe6; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x017e01fe01fe01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x0586060601fe0202; + *((unsigned long *)&__m256i_op1[1]) = 0x017e01fe01fe0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0586060601fe0004; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffbfffafffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[0]) = 0xfffbfffaffff0000; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op0[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_result[1]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffefffefffefffef; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op1[3]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100008000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100007fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100008000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100007fff; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_result[2]) = 0x000043efffff8000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_result[0]) = 0x000043efffff8000; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000003f00001f63; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000003f00001f63; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff80ff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff80ff; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op1[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op1[2]) = 0xc3030000ff800000; + *((unsigned long *)&__m256i_op1[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op1[0]) = 0xc3030000ff800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[2]) = 0x00003cfc0000006f; + *((unsigned long *)&__m256i_result[1]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[0]) = 0x00003cfc0000006f; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op1[2]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op1[0]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffb2f600006f48; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000001fffe; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000060000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000060000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000017e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000020202020; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fff8ff40; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ff0100090040; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fff8ff40; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ff0100090040; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff02; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff02; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000700000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000700000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000700000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000700000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffe00; + __m256i_out = __lasx_xvsubwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x1e17ffffd0fc6772; + *((unsigned long *)&__m256i_op1[2]) = 0x1e17ffffebf6ded2; + *((unsigned long *)&__m256i_op1[1]) = 0x1e17ffffd0fc6772; + *((unsigned long *)&__m256i_op1[0]) = 0x1e17ffffebf6ded2; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xe1e800002f03988d; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xe1e800002f03988d; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x9cffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x9cffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x6300000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x6300000000000001; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000808; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f7f7f7f7f8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_op1[2]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_op1[1]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_op1[0]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000e000e000e000e; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op0[2]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op0[0]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0a0a000000000a0a; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-2.c new file mode 100644 index 00000000000..8d6ed92a1c1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsubwod-2.c @@ -0,0 +1,620 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[2]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[1]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[0]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff01ff01ff01; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000020001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffcc8000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007dfdff4b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff3400000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff83ff01; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000004000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ff010000ff01; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff010000ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000ff010000ff01; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff010000ff01; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op0[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_result[1]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0xfff0fff0fff0fff0; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op1[1]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_op1[2]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_op1[1]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_op1[0]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_result[3]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256i_result[2]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256i_result[1]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256i_result[0]) = 0xff21ff21ff21ff21; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[2]) = 0x4079808280057efe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007ffcfcfd020202; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x004000800080007e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000fc00fd0002; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff0100000000; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff0100000000; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff0100000000; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff0100000000; + __m256i_out = __lasx_xvsubwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe00007f000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffff000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_result[1]) = 0xffff7fff00007f00; + *((unsigned long *)&__m256i_result[0]) = 0xffff000100007fff; + __m256i_out = __lasx_xvsubwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op1[2]) = 0x000b8f81b8c840e4; + *((unsigned long *)&__m256i_op1[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op1[0]) = 0x000b8f81b8c840e4; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffb3b4; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff5ffff4738; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffb3b4; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff5ffff4738; + __m256i_out = __lasx_xvsubwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00009fff9ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff20010001; + *((unsigned long *)&__m256i_op0[1]) = 0x00009fff9ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff20010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00002080df5b41cf; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00002080df5b41cf; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000009fff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff40a6; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000009fff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff40a6; + __m256i_out = __lasx_xvsubwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00007fffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00007fffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff8001; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff8001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000001; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010000; + *((unsigned long *)&__m256i_op0[2]) = 0x020afefb08140000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff00ffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff0001ff02; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff020afefc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000003fefd; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op1[3]) = 0x1514151415141514; + *((unsigned long *)&__m256i_op1[2]) = 0x151415141514e335; + *((unsigned long *)&__m256i_op1[1]) = 0x1514151415141514; + *((unsigned long *)&__m256i_op1[0]) = 0x151415141514e335; + *((unsigned long *)&__m256i_result[3]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_result[2]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_result[1]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_result[0]) = 0x00000000e9ece9ec; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0008000800080008; + *((unsigned long *)&__m256i_op0[2]) = 0x000c005e000c0029; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0004005600040020; + *((unsigned long *)&__m256i_op1[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000300000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000300000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000060008; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000c005b; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffe0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000040053; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f8f7f8f800f800; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f784000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f8f7f84000fff9; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f784000ff80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f7f8f7f8; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000003f78; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f7f8f7f8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000003f78; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op1[2]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000070007000; + *((unsigned long *)&__m256i_op1[0]) = 0x7000700070007000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff8fff9000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff8fff9000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff8fff9000; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op1[2]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_op1[1]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op1[0]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff37b737b8; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff77b737b8; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff37b737b8; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff77b737b8; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op0[1]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff457db03f; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsubwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000001; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op1[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op1[2]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_op1[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op1[0]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffafafb3b3dc9d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffafafb3b3dc9d; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op0[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op0[0]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000008050501; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000029170; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000029170; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001fff000; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000090b0906; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsubwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp837231vqx; Tue, 12 Sep 2023 20:58:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGa2jTJxZ6iO5n65TiLjZfPFympP5mezqK54rtjxFxGtOowNlt/wnPLVe2YhkoRktoDNSEG X-Received: by 2002:a17:907:75d6:b0:9a1:c221:4661 with SMTP id jl22-20020a17090775d600b009a1c2214661mr828085ejc.0.1694577525643; Tue, 12 Sep 2023 20:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577525; cv=none; d=google.com; s=arc-20160816; b=HI1ZsWJjvKnZq45uvHEiA2TmwMlxGiy7MGYHC4Lg5Kew3rMkDbnUVGrPf/2pwIWfIz QvgIEaoJvGSNw4PAd0dXa9VIDzP0TnzIUBG1pQo1h/oa4ut3KUNr0QfJFuTHud20zLsU lPvt8EO+T0dlcJfKXgpHcyOhaJ5cJs2nIKLyh2Je7ET6D3YwtH0nLAUzzzmN/RlsDZb9 Vyeq+SJ8TYPvnQpCIntf0xK9t+qYy7gO0K405exJ4I9q0v+1R5tAR4d7pTEue0dj/wqt AUOLJymx+cCZUmjA51UqxKbps0lK7eIR3ruEIu2w4KNvngzkl9OF8b/OHfJ6Sa8FpYe8 EnUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=3BJsqgzuLk0D+YP0DKStw2SWUYiiDto9PZv5wxCXYk4=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=FbdF9Z1ghcYcgrO92MbuiHuU562lIVcQMPlKgwz5spvciw9P+grOFQjLQdZL2zkkUy 3/FpxSBR2p2BJE9ck0yTchsmq9Sm2VOs2BTAqY8kTFlRF6nLvquu61CUa5IZsjnLnAus /gqxEcbyRv4U4b/X3dB1xgB+HO/9CBXORnFT8bS7syA/IN08tZD6t4qBmS+PAhwypVAE GcyKen2yHnIwlvxtzGAPTaRvxbbWp9ovjt5o5ItBw+7rEj3/NaTHos6sy0AgX0SGBIbg uOh1cfNSCvhKwdnE8RKDPLTdPQnV4AUHUe+YofpqBGqCg2iejDIPIbCGCifBNd/iVfyo uanQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gl6-20020a170906e0c600b009a6697a8df4si9861721ejb.269.2023.09.12.20.58.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:58:45 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 46665383AE7F for ; Wed, 13 Sep 2023 03:41:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 951943882012 for ; Wed, 13 Sep 2023 03:39:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 951943882012 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxnuvkLgFlSjEmAA--.6401S3; Wed, 13 Sep 2023 11:39:16 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S8; Wed, 13 Sep 2023 11:39:14 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 04/22] LoongArch: Add tests for ASX vector xvmul/xvmod/xvdiv instructions. Date: Wed, 13 Sep 2023 11:38:41 +0800 Message-Id: <20230913033859.6734-5-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S8 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBKwAAs5 X-Coremail-Antispam: 1Uk129KBj98XoW3AF1UAF18CrWruoXrprykJr15uoWUAr1Uur s5Ca9xJw45Jr13Z34rJF18t3ZIyr17Aws0yFZrKw42q347ZFn5tF1ktr1fJa47Zw1fXr18 G348Xr4kl-sFpf9Il3svdjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdx BIdaVrn0xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnI Wjp_UUUYY7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rV WrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l 84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r 4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4U JVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj6I8E87Iv67AK xVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7V AKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCj r7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6x IIjxv20xvE14v26w1j6s0DMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWxJVW8Jr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26F4j6r4UJwCI42IY6I8E87Iv6x kF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU4EfOUUUUU X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893323179712696 X-GMAIL-MSGID: 1776893323179712696 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvdiv-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvdiv-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmod-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmod-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmul.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmulwev-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmulwev-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmulwev-3.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmulwod-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmulwod-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmulwod-3.c: New test. --- .../loongarch/vector/lasx/lasx-xvdiv-1.c | 485 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvdiv-2.c | 500 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvmod-1.c | 395 +++++++++++ .../loongarch/vector/lasx/lasx-xvmod-2.c | 410 ++++++++++++ .../loongarch/vector/lasx/lasx-xvmul.c | 620 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmulwev-1.c | 590 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmulwev-2.c | 590 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmulwev-3.c | 605 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmulwod-1.c | 545 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvmulwod-2.c | 470 +++++++++++++ .../loongarch/vector/lasx/lasx-xvmulwod-3.c | 440 +++++++++++++ 11 files changed, 5650 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmul.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-3.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-3.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-1.c new file mode 100644 index 00000000000..0d7c677039b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-1.c @@ -0,0 +1,485 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00080000000cc916; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000006fff3; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00f8000000f41bfb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000fa0106; + __m256i_out = __lasx_xvdiv_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000fe000000fe; + *((unsigned long *)&__m256i_result[2]) = 0x000000fe000000fe; + *((unsigned long *)&__m256i_result[1]) = 0x000000fe000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x000000fe000000fe; + __m256i_out = __lasx_xvdiv_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[0]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01fe8001b72e0001; + *((unsigned long *)&__m256i_op0[2]) = 0xb72e8001b72eaf12; + *((unsigned long *)&__m256i_op0[1]) = 0x01fe000247639d9c; + *((unsigned long *)&__m256i_op0[0]) = 0xb5308001b72eaf12; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_result[3]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_result[2]) = 0xffb7ff80ffd0ffd8; + *((unsigned long *)&__m256i_result[1]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_result[0]) = 0xffb5ff80ffd0ffd8; + __m256i_out = __lasx_xvdiv_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8091811081118110; + *((unsigned long *)&__m256i_op0[2]) = 0x80a6802680208015; + *((unsigned long *)&__m256i_op0[1]) = 0x8091811081110013; + *((unsigned long *)&__m256i_op0[0]) = 0x80a6802680200018; + *((unsigned long *)&__m256i_op1[3]) = 0x8091811081118110; + *((unsigned long *)&__m256i_op1[2]) = 0x80a6802680208015; + *((unsigned long *)&__m256i_op1[1]) = 0x8091811081110013; + *((unsigned long *)&__m256i_op1[0]) = 0x80a6802680200018; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvdiv_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x1f831f80e0e09f86; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x1f831f80e0e09f86; + __m256i_out = __lasx_xvdiv_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdededededededede; + *((unsigned long *)&__m256i_op1[2]) = 0xdededededededede; + *((unsigned long *)&__m256i_op1[1]) = 0xdededededededede; + *((unsigned long *)&__m256i_op1[0]) = 0xdededededededede; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffa080000001; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffe080000001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffa080000001; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffe080000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0010002000100020; + *((unsigned long *)&__m256i_op1[2]) = 0x0010002000100020; + *((unsigned long *)&__m256i_op1[1]) = 0x0010002000100020; + *((unsigned long *)&__m256i_op1[0]) = 0x0010002000100020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fd00ffff02ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001fffeff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0xffffff81ffffff00; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffff00; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffff00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvdiv_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[0]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000d000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000d000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000583800; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000100000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000583800; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000100000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d0000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffff30000000b; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffff3fffffff3; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffff30000000b; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff3fffffff3; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007fef; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[0]) = 0x0100000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000003f; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[3]) = 0x001fffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x001fffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffe; + __m256i_out = __lasx_xvdiv_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-2.c new file mode 100644 index 00000000000..fd8b6d38cf8 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvdiv-2.c @@ -0,0 +1,500 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[3]) = 0x0202020202020202; + *((unsigned long *)&__m256i_op1[2]) = 0x0202810102020202; + *((unsigned long *)&__m256i_op1[1]) = 0x0202020202020202; + *((unsigned long *)&__m256i_op1[0]) = 0x0202810102020202; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000003f; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256i_op1[3]) = 0x5353535353535353; + *((unsigned long *)&__m256i_op1[2]) = 0x5353535353535353; + *((unsigned long *)&__m256i_op1[1]) = 0x5353535353535353; + *((unsigned long *)&__m256i_op1[0]) = 0x5353535353535353; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0303030303020000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0303030303020000; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffdfffdfffdfffd; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0100010001000100; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_op1[3]) = 0x9fe7fffffffff32e; + *((unsigned long *)&__m256i_op1[2]) = 0x6040190ddfdd8587; + *((unsigned long *)&__m256i_op1[1]) = 0xecd011542d2cc4c7; + *((unsigned long *)&__m256i_op1[0]) = 0x6040190dffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[3]) = 0x7f7fff7f7f7fff7f; + *((unsigned long *)&__m256i_result[2]) = 0x7f7fff7f7f7fff7f; + *((unsigned long *)&__m256i_result[1]) = 0x7f7fff7f7f7fff7f; + *((unsigned long *)&__m256i_result[0]) = 0x7f7fff7f7f7fff7f; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001010000; + __m256i_out = __lasx_xvdiv_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op0[2]) = 0xe2e2e202ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op0[0]) = 0xe2e2e202ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000465; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000465; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvdiv_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010202020203; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010201010102; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010202020203; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010201010102; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00020001ffb6ffe0; + *((unsigned long *)&__m256i_op0[0]) = 0x0049004200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_op1[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000f3280000dfff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffb7; + *((unsigned long *)&__m256i_result[0]) = 0x0000004c00000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[2]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[0]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000003fb000003fb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000003fb000003fb; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1fe01e0100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x1fe01e0100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x1fe01e0100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x1fe01e0100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff827f80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0226823c; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff827f80; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0226823c; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x007d003e007d003e; + *((unsigned long *)&__m256i_op1[2]) = 0x007d003effa80010; + *((unsigned long *)&__m256i_op1[1]) = 0x007d003e007d003e; + *((unsigned long *)&__m256i_op1[0]) = 0x007d003effa80010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_op1[2]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_op1[1]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_op1[0]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op1[2]) = 0x01ffff4300ffff00; + *((unsigned long *)&__m256i_op1[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op1[0]) = 0x01ffff4300ffff00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000008000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000008000000100; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000008000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9cffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x9cffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000013b13380; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000013b13380; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000e2e20000e2e2; + *((unsigned long *)&__m256i_op0[2]) = 0x00011d1c00011d9c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000e2e20000e2e2; + *((unsigned long *)&__m256i_op0[0]) = 0x00011d1c00011d9c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000e2e20000e2e2; + *((unsigned long *)&__m256i_op1[2]) = 0x00011d1c00011d9c; + *((unsigned long *)&__m256i_op1[1]) = 0x0000e2e20000e2e2; + *((unsigned long *)&__m256i_op1[0]) = 0x00011d1c00011d9c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_op1[2]) = 0x1b1a191817161514; + *((unsigned long *)&__m256i_op1[1]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_op1[0]) = 0x1b1a191817161514; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000010100000101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000010100000101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000101; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010202020203; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010201010102; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010202020203; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010201010102; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvdiv_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-1.c new file mode 100644 index 00000000000..6f34f6ffcbc --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-1.c @@ -0,0 +1,395 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000000000; + __m256i_out = __lasx_xvmod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[2]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[1]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_op1[0]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8001b72e0001b72e; + *((unsigned long *)&__m256i_op0[2]) = 0x8001b72eaf12d5f0; + *((unsigned long *)&__m256i_op0[1]) = 0x000247639d9cb530; + *((unsigned long *)&__m256i_op0[0]) = 0x8001b72eaf12d5f0; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_result[3]) = 0xff81ffe50001ffe5; + *((unsigned long *)&__m256i_result[2]) = 0xff81ffe5ffa6ffc6; + *((unsigned long *)&__m256i_result[1]) = 0x000200aafe9affe5; + *((unsigned long *)&__m256i_result[0]) = 0xff81ffe5ffa6ffc6; + __m256i_out = __lasx_xvmod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_op1[2]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_op1[1]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_op1[0]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x80008000b70fb810; + *((unsigned long *)&__m256i_op0[2]) = 0x3c0f3c0f3911b910; + *((unsigned long *)&__m256i_op0[1]) = 0x80008000b70fb810; + *((unsigned long *)&__m256i_op0[0]) = 0x3c0f3c0f3911b910; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff6f20; + *((unsigned long *)&__m256i_result[2]) = 0x0000781e0000f221; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff6f20; + *((unsigned long *)&__m256i_result[0]) = 0x0000781e0000f221; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xc800c800c800c800; + *((unsigned long *)&__m256i_op1[2]) = 0x8800c800c800c801; + *((unsigned long *)&__m256i_op1[1]) = 0xc800c800c800c800; + *((unsigned long *)&__m256i_op1[0]) = 0x8800c800c800c801; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101000101010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0101000101010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0101000101010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000101010001; + *((unsigned long *)&__m256i_op1[3]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op1[2]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op1[1]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op1[0]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_result[3]) = 0x0101000101010001; + *((unsigned long *)&__m256i_result[2]) = 0x0101000101010001; + *((unsigned long *)&__m256i_result[1]) = 0x0101000101010001; + *((unsigned long *)&__m256i_result[0]) = 0x0101000101010001; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op1[2]) = 0xc3030000ff800000; + *((unsigned long *)&__m256i_op1[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op1[0]) = 0xc3030000ff800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff00ff800000; + *((unsigned long *)&__m256i_op1[1]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00ff800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010100; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000001000100; + *((unsigned long *)&__m256i_op1[3]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000800080000000; + *((unsigned long *)&__m256i_op1[1]) = 0xc9d8080067f50020; + *((unsigned long *)&__m256i_op1[0]) = 0xc70000020000c000; + *((unsigned long *)&__m256i_result[3]) = 0x0001010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000010100; + *((unsigned long *)&__m256i_result[0]) = 0x0001000001000100; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op1[2]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op1[1]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_op1[0]) = 0xff3cff3cff3cff3c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000001400000014; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001400000014; + *((unsigned long *)&__m256i_op1[1]) = 0x0000001400000014; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[0]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007efeff00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007efeff00; + *((unsigned long *)&__m256i_result[3]) = 0x00000000008e7c00; + *((unsigned long *)&__m256i_result[2]) = 0x0000000067751500; + *((unsigned long *)&__m256i_result[1]) = 0x00000000008e7c00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000067751500; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_op0[1]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_op1[3]) = 0xff00ff0000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op1[1]) = 0xff00ff0000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[3]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_result[1]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffefffefffefffef; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[2]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[0]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op0[2]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_op0[1]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op0[0]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_op1[3]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op1[2]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_op1[1]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op1[0]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-2.c new file mode 100644 index 00000000000..d0a9e9d2fed --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmod-2.c @@ -0,0 +1,410 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1e18000000000000; + __m256i_out = __lasx_xvmod_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0909090909090909; + *((unsigned long *)&__m256i_op1[2]) = 0x0909090909090909; + *((unsigned long *)&__m256i_op1[1]) = 0x0909090909090909; + *((unsigned long *)&__m256i_op1[0]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[2]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[1]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[0]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvmod_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[0]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffe000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffe000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000e000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000e000; + __m256i_out = __lasx_xvmod_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op0[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op0[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op0[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe06df8d7; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffbe8b470f; + *((unsigned long *)&__m256i_op1[3]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffe06df0d7; + *((unsigned long *)&__m256i_op1[1]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffbe8b470f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_op0[2]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_op0[1]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_op0[0]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_op1[3]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256i_op1[2]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256i_op1[1]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256i_op1[0]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256i_result[3]) = 0x081abb9d36ee1037; + *((unsigned long *)&__m256i_result[2]) = 0x1617eb17129bfd38; + *((unsigned long *)&__m256i_result[1]) = 0x081abb9d36ee1037; + *((unsigned long *)&__m256i_result[0]) = 0x1617eb17129bfd38; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[2]) = 0xfe8bfe0efe8bfe12; + *((unsigned long *)&__m256i_op1[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[0]) = 0xfe8bfe0efe8bfe12; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7171717171717171; + *((unsigned long *)&__m256i_op1[2]) = 0x8e8e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_op1[1]) = 0x7171717171717171; + *((unsigned long *)&__m256i_op1[0]) = 0x8e8e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000005500000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001005500020000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000005500000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001005500020000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[2]) = 0x000100010001fffe; + *((unsigned long *)&__m256i_op1[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x000100010001fffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000005500000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000005400000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000005500000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000005400000002; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_op1[2]) = 0x007f0000ff807f81; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_op1[0]) = 0x007f0000ff807f81; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff0000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff8000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000010100000101; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010100000101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000010100000101; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffff000000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000095120000; + *((unsigned long *)&__m256i_op1[1]) = 0xc9da000063f50000; + *((unsigned long *)&__m256i_op1[0]) = 0xc7387fff6bbfffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvmod_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1fffffff1fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0383634303836343; + *((unsigned long *)&__m256i_op1[1]) = 0x1fffffff1fffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0383634303836343; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001000000; + __m256i_out = __lasx_xvmod_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00007f8000007f80; + *((unsigned long *)&__m256i_op1[2]) = 0x00007f8000007f80; + *((unsigned long *)&__m256i_op1[1]) = 0x00007f8000007f80; + *((unsigned long *)&__m256i_op1[0]) = 0x00007f8000007f80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmod_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmul.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmul.c new file mode 100644 index 00000000000..be3c8e718f8 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmul.c @@ -0,0 +1,620 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffd1b24e00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcea54ffff29a8; + *((unsigned long *)&__m256i_op0[1]) = 0xff8cad88ff8306b4; + *((unsigned long *)&__m256i_op0[0]) = 0xfffc1278fffce4c8; + *((unsigned long *)&__m256i_op1[3]) = 0x0e2d5626ff75cdbc; + *((unsigned long *)&__m256i_op1[2]) = 0x5db4b156e2002a78; + *((unsigned long *)&__m256i_op1[1]) = 0xeeffbeb03ba3e6b0; + *((unsigned long *)&__m256i_op1[0]) = 0x0c16e25eb28d27ea; + *((unsigned long *)&__m256i_result[3]) = 0xf96d674800000000; + *((unsigned long *)&__m256i_result[2]) = 0x44a4330e2c7116c0; + *((unsigned long *)&__m256i_result[1]) = 0x14187a7822b653c0; + *((unsigned long *)&__m256i_result[0]) = 0xfbe0b866962b96d0; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffff01ffffff08; + *((unsigned long *)&__m256i_op1[2]) = 0x43700f0100003008; + *((unsigned long *)&__m256i_op1[1]) = 0xffffff01ffffff08; + *((unsigned long *)&__m256i_op1[0]) = 0x43700f0100003008; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000f8; + *((unsigned long *)&__m256i_result[2]) = 0xbc8ff0ffffffcff8; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000f8; + *((unsigned long *)&__m256i_result[0]) = 0xbc8ff0ffffffcff8; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x353bb67af686ad9b; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x353bb67af686ad9b; + *((unsigned long *)&__m256i_op1[3]) = 0x0200000200000000; + *((unsigned long *)&__m256i_op1[2]) = 0x2c27000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0200000200000000; + *((unsigned long *)&__m256i_op1[0]) = 0x2c27000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1cfd000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000180000000; + *((unsigned long *)&__m256i_op1[3]) = 0xc080ffff0049ffd2; + *((unsigned long *)&__m256i_op1[2]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000fffeffb9ff9d; + *((unsigned long *)&__m256i_op1[0]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffd2; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff8000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000080000000; + __m256i_out = __lasx_xvmul_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op0[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001900000019; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001900000019; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001900000019; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001900000019; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007fff003f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fff003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000627; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000627; + __m256i_out = __lasx_xvmul_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffd5a98; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffd5a98; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007f3a40; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000400; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000400; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x120e120dedf1edf2; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x120e120dedf1edf2; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000907; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000907; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[3]) = 0x1010000010100000; + *((unsigned long *)&__m256i_result[2]) = 0x1010000010100000; + *((unsigned long *)&__m256i_result[1]) = 0x1010000010100000; + *((unsigned long *)&__m256i_result[0]) = 0x1010000010100000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x00007fff00000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0040000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fff00000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[0]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffefffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_op1[1]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_result[2]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_result[1]) = 0xfffe0001fffe0003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdf00000052a00000; + *((unsigned long *)&__m256i_op1[2]) = 0x5b7f00ff5b7f00ff; + *((unsigned long *)&__m256i_op1[1]) = 0xdf00000052a00000; + *((unsigned long *)&__m256i_op1[0]) = 0x5b7f00ff5b7f00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffff30000000b; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff3fffffff3; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffff30000000b; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff3fffffff3; + *((unsigned long *)&__m256i_op1[3]) = 0xbc30c40108a45423; + *((unsigned long *)&__m256i_op1[2]) = 0xbc263e0e5d00e69f; + *((unsigned long *)&__m256i_op1[1]) = 0xbc30c40108a4544b; + *((unsigned long *)&__m256i_op1[0]) = 0xbc20e63aa8b9663f; + *((unsigned long *)&__m256i_result[3]) = 0x71860bf35f0f9d81; + *((unsigned long *)&__m256i_result[2]) = 0x720ed94a46f449ed; + *((unsigned long *)&__m256i_result[1]) = 0x71860bf35f0f9f39; + *((unsigned long *)&__m256i_result[0]) = 0x72544f0e6e95cecd; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x111ebb784f9c4100; + *((unsigned long *)&__m256i_op0[2]) = 0x1c386546809f3b50; + *((unsigned long *)&__m256i_op0[1]) = 0x111ebb784f9bf1ac; + *((unsigned long *)&__m256i_op0[0]) = 0x21f6050d955d3f68; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xbab0c4b000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xaa0ac09800000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256i_op0[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256i_op0[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00bf00bf00bf00bf; + *((unsigned long *)&__m256i_op0[2]) = 0x00bf00bf00bf00bf; + *((unsigned long *)&__m256i_op0[1]) = 0x00bf00bf00bf00bf; + *((unsigned long *)&__m256i_op0[0]) = 0x00bf00bf00bf00bf; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000011; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000011; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000088; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000088; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_op0[2]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_op0[0]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_op1[3]) = 0x00f8000000000008; + *((unsigned long *)&__m256i_op1[2]) = 0x000800f800000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00f8000000000008; + *((unsigned long *)&__m256i_op1[0]) = 0x000800f800000000; + *((unsigned long *)&__m256i_result[3]) = 0xe3f7fff7fffcbd08; + *((unsigned long *)&__m256i_result[2]) = 0x0dbfa28000000000; + *((unsigned long *)&__m256i_result[1]) = 0xe3f7fff7fffcbd08; + *((unsigned long *)&__m256i_result[0]) = 0x0dbfa28000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_result[2]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_result[1]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_result[0]) = 0x7070545438381c1c; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1400080008000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1400080008000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1400080008000000; + *((unsigned long *)&__m256i_op1[0]) = 0x1400080008000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmul_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-1.c new file mode 100644 index 00000000000..01ff7164904 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-1.c @@ -0,0 +1,590 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xf96d674800000000; + *((unsigned long *)&__m256i_op0[2]) = 0x44a4330e2c7116c0; + *((unsigned long *)&__m256i_op0[1]) = 0x14187a7822b653c0; + *((unsigned long *)&__m256i_op0[0]) = 0xfbe0b866962b96d0; + *((unsigned long *)&__m256i_op1[3]) = 0xffd1b24e00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfffcea54ffff29a8; + *((unsigned long *)&__m256i_op1[1]) = 0xff8cad88ff8306b4; + *((unsigned long *)&__m256i_op1[0]) = 0xfffc1278fffce4c8; + *((unsigned long *)&__m256i_result[3]) = 0xebfd15f000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01700498ff8f1600; + *((unsigned long *)&__m256i_result[1]) = 0xf520c7c024221300; + *((unsigned long *)&__m256i_result[0]) = 0x00802fd0ff540a80; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffff90ffffff81; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffff90ffffff81; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000001dc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001dc; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff00ff00ee; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00ff00ee; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffce; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000fc7c; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffce; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000fc7c; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010100000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010100000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf800f800f800c000; + *((unsigned long *)&__m256i_op0[2]) = 0xf800f800f800a000; + *((unsigned long *)&__m256i_op0[1]) = 0xf800f800f800e000; + *((unsigned long *)&__m256i_op0[0]) = 0xf800f800f800e000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff00ffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff8080000004000; + *((unsigned long *)&__m256i_result[2]) = 0x0000080000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff8080000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00001ff800000000; + *((unsigned long *)&__m256i_op1[2]) = 0xd8d8c00000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00001ff800000000; + *((unsigned long *)&__m256i_op1[0]) = 0xd8d8c00000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x3f80000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x3f80000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffff8ffffff08; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00f800ffcff8; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffff8ffffff08; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00f800ffcff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000003868686a20; + *((unsigned long *)&__m256i_result[2]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_result[1]) = 0x0000003868686a20; + *((unsigned long *)&__m256i_result[0]) = 0x0045b8ae81bce1d8; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_op1[2]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_op1[1]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_op1[0]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00ffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00ffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op1[2]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op1[1]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op1[0]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000060000108; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001060005; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fef0001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x201fdfe0201fdfe0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x201fdfe0201fdfe0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_op1[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000fd; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000062d4; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-2.c new file mode 100644 index 00000000000..32088f4aede --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-2.c @@ -0,0 +1,590 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x4e5cba76cdbaaa78; + *((unsigned long *)&__m256i_op0[2]) = 0xce68fdeb4e33eaff; + *((unsigned long *)&__m256i_op0[1]) = 0x4e45cc2dcda41b30; + *((unsigned long *)&__m256i_op0[0]) = 0x4ccb1e5c4d6b21e4; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x44bb2cd3a35c2fd0; + *((unsigned long *)&__m256i_result[0]) = 0xca355ba46a95e31c; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202000002020202; + *((unsigned long *)&__m256i_op0[2]) = 0x0202000002010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0202000002020202; + *((unsigned long *)&__m256i_op0[0]) = 0x0202000002020000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01fe000000ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01fe000001fe0000; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff01ff68; + *((unsigned long *)&__m256i_op0[2]) = 0x00000070ff017de6; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff01ff68; + *((unsigned long *)&__m256i_op0[0]) = 0x00000070ff017de6; + *((unsigned long *)&__m256i_op1[3]) = 0x761ed60b5d7f0000; + *((unsigned long *)&__m256i_op1[2]) = 0xdc9938afafe904f1; + *((unsigned long *)&__m256i_op1[1]) = 0x761ed60b5d7f0000; + *((unsigned long *)&__m256i_op1[0]) = 0xdc9938afafe904f1; + *((unsigned long *)&__m256i_result[3]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_result[2]) = 0x00004c9000e9d886; + *((unsigned long *)&__m256i_result[1]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_result[0]) = 0x00004c9000e9d886; + __m256i_out = __lasx_xvmulwev_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffff328dfff; + *((unsigned long *)&__m256i_op0[0]) = 0x6651bfff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffff328dfff; + *((unsigned long *)&__m256i_op1[0]) = 0x6651bfff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffe0001c3fe4001; + *((unsigned long *)&__m256i_result[0]) = 0x8ffe800100000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff01ff010000fff9; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff19; + *((unsigned long *)&__m256i_op0[1]) = 0xff02ff020001fffa; + *((unsigned long *)&__m256i_op0[0]) = 0x000100010001fffa; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x00fe01ff0006ffcf; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000e62f8f; + *((unsigned long *)&__m256i_result[1]) = 0x00fe02fe0006ffd6; + *((unsigned long *)&__m256i_result[0]) = 0x000000000006ffd6; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x01010101010000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffef; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffef; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[3]) = 0x0100feff0100eeef; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000001010; + *((unsigned long *)&__m256i_result[1]) = 0x0100feff00feef11; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000001010; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x201fdfe0201fdfe0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x201fdfe0201fdfe0; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff47b4ffff5878; + *((unsigned long *)&__m256i_op1[2]) = 0x0000b84b0000a787; + *((unsigned long *)&__m256i_op1[1]) = 0xffff47b4ffff5878; + *((unsigned long *)&__m256i_op1[0]) = 0x0000b84b0000a787; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000010100000101; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff1b00e4; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[0]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[3]) = 0x0807f7f80807f7f8; + *((unsigned long *)&__m256i_result[2]) = 0x0807f7f80807f7f8; + *((unsigned long *)&__m256i_result[1]) = 0x0807f7f80807f7f8; + *((unsigned long *)&__m256i_result[0]) = 0x0807f7f80807f7f8; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[2]) = 0xc2c2c2c2c2c29cc0; + *((unsigned long *)&__m256i_op0[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[0]) = 0xc2c2c2c2c2c29cc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000004e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffe00000001; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000a; + __m256i_out = __lasx_xvmulwev_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000007f000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0408040800008003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0408040800008003; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0408040800008002; + *((unsigned long *)&__m256i_result[0]) = 0xfbf7fbf7ffff7ffd; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xc192181230000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xc192181230000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x04080c1014182d35; + *((unsigned long *)&__m256i_result[2]) = 0x716d696573765161; + *((unsigned long *)&__m256i_result[1]) = 0x04080c1014182d35; + *((unsigned long *)&__m256i_result[0]) = 0x716d696573765161; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-3.c new file mode 100644 index 00000000000..19157f6822a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwev-3.c @@ -0,0 +1,605 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffefe; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffefe; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000101; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01fe02; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01fe02; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000ff; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000505; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff0e400; + *((unsigned long *)&__m256i_op1[3]) = 0x80000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x80000000ffff8c80; + *((unsigned long *)&__m256i_op1[1]) = 0x80000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x80000000fff0e400; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff01c000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0x00000000f1000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01fe04; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01fe04; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000022ffdd; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000022ffdd; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000f4b6ff23; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000f4b6ff23; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fffe00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fffe00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x5fa0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x5fa0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000f20; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000009f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op1[3]) = 0x417e01f040800000; + *((unsigned long *)&__m256i_op1[2]) = 0x299d060000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x417e01f040800000; + *((unsigned long *)&__m256i_op1[0]) = 0x29108b0000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op1[2]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op1[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op1[0]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_result[3]) = 0x0707b7cff8f84830; + *((unsigned long *)&__m256i_result[2]) = 0x0000000354ad4c28; + *((unsigned long *)&__m256i_result[1]) = 0x0707b7cff8f84830; + *((unsigned long *)&__m256i_result[0]) = 0x0000000354ad4c28; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00d5007f00ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xff00d5007f00ffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op0[2]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op0[0]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0080000000800000; + *((unsigned long *)&__m256i_op1[2]) = 0x0080000000800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000000800000; + *((unsigned long *)&__m256i_op1[0]) = 0x0080000000800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ef; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000016e00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000155b200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000b70000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001ff03fe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffec75c2d209f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001ff03fe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffec75c2d209f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000008b; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff010000008b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op0[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op0[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[3]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op1[2]) = 0x03acfc5303260e80; + *((unsigned long *)&__m256i_op1[1]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op1[0]) = 0x03acfc5303260e80; + *((unsigned long *)&__m256i_result[3]) = 0x00000b0cfffff4f3; + *((unsigned long *)&__m256i_result[2]) = 0x000f9bb562f56c80; + *((unsigned long *)&__m256i_result[1]) = 0x00000b0cfffff4f3; + *((unsigned long *)&__m256i_result[0]) = 0x000f9bb562f56c80; + __m256i_out = __lasx_xvmulwev_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x3ff1808001020101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x3ff1808001020101; + *((unsigned long *)&__m256i_op1[3]) = 0x00000ff7f1080ef8; + *((unsigned long *)&__m256i_op1[2]) = 0x0100000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000ff7f1080ef8; + *((unsigned long *)&__m256i_op1[0]) = 0x0100000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x003ff18080010201; + *((unsigned long *)&__m256i_result[2]) = 0x0100000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x003ff18080010201; + *((unsigned long *)&__m256i_result[0]) = 0x0100000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000f0000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000f0000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfbba01c0003f7e3f; + *((unsigned long *)&__m256i_op1[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_op1[1]) = 0xfbd884e7003f7e3f; + *((unsigned long *)&__m256i_op1[0]) = 0xff874dc687870000; + *((unsigned long *)&__m256i_result[3]) = 0xffe367cc82f8989a; + *((unsigned long *)&__m256i_result[2]) = 0x4f90000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffc3aaa8d58f43c8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffdfffffffdfffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffdfffffffdfffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0020000000200001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0020000000200001; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffff000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff01; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffff2; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff01; + *((unsigned long *)&__m256i_op1[3]) = 0x1010101010001000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x101010100000000e; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000fe; + *((unsigned long *)&__m256i_result[2]) = 0xffff01feffff01ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000fe; + *((unsigned long *)&__m256i_result[0]) = 0xffff01feffff01ff; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff02000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff02000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x5fa0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x5fa0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwev_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-1.c new file mode 100644 index 00000000000..80fdcda6376 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-1.c @@ -0,0 +1,545 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x7a7cad6eca32ccc1; + *((unsigned long *)&__m256i_op1[2]) = 0x7a7cad6efe69abd1; + *((unsigned long *)&__m256i_op1[1]) = 0x7a7cad6eca32ccc1; + *((unsigned long *)&__m256i_op1[0]) = 0x7a7cad6efe69abd1; + *((unsigned long *)&__m256i_result[3]) = 0xff86005300360034; + *((unsigned long *)&__m256i_result[2]) = 0xff86005300020055; + *((unsigned long *)&__m256i_result[1]) = 0xff86005300360034; + *((unsigned long *)&__m256i_result[0]) = 0xff86005300020055; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x2c27000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x2c27000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_op0[2]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_op0[1]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_op0[0]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000007f3a40; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000007f3a40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000d24; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000073333333; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000073333333; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff0020001d001f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fffe00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fffe00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ca0000fff80000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ca0000fff80000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010080; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000015d050192cb; + *((unsigned long *)&__m256i_op0[2]) = 0x028e509508b16ee9; + *((unsigned long *)&__m256i_op0[1]) = 0x000033ff01020e23; + *((unsigned long *)&__m256i_op0[0]) = 0x151196b58fd1114d; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff0000ffff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0xff000000ffffff00; + *((unsigned long *)&__m256i_op1[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffffffff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fffffaff; + *((unsigned long *)&__m256i_result[2]) = 0xfffd7200fffff74f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000702f; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000808; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0408040800008003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x04080408fff87803; + *((unsigned long *)&__m256i_op1[3]) = 0x0707b7cff8f84830; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000354ad4c28; + *((unsigned long *)&__m256i_op1[1]) = 0x0707b7cff8f84830; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000354ad4c28; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffd5a98; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000007e8080; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000007e8092; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000007e8080; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000007e8092; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe07de080; + *((unsigned long *)&__m256i_op0[2]) = 0x000000001f20607a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe07de080; + *((unsigned long *)&__m256i_op0[0]) = 0x000000001f20607a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[3]) = 0x0000010000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000010000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000010000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00153f1594ea02ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffff0100; + *((unsigned long *)&__m256i_op0[0]) = 0xff15c1ea95ea02ff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000030007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfe7ffffffeffffc0; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfe7ffffffeffffc0; + __m256i_out = __lasx_xvmulwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmulwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000017fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000017fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-2.c new file mode 100644 index 00000000000..1a4b221fe7a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-2.c @@ -0,0 +1,470 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x01480000052801a2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffdcff64; + *((unsigned long *)&__m256i_op1[3]) = 0xbea2e127c046721f; + *((unsigned long *)&__m256i_op1[2]) = 0x1729c073816edebe; + *((unsigned long *)&__m256i_op1[1]) = 0xde91f010000006f9; + *((unsigned long *)&__m256i_op1[0]) = 0x5ef1f90efefaf30d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00170000028500de; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fd02f20d; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fc000007fc00000; + *((unsigned long *)&__m256i_op0[1]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fc000007fc00000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4ffc3f7800000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3fc03f6400000000; + *((unsigned long *)&__m256i_op0[1]) = 0x4ffc3f7800000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3fc03f6400000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x4eb13ec100000000; + *((unsigned long *)&__m256i_result[2]) = 0x3ec13ec100000000; + *((unsigned long *)&__m256i_result[1]) = 0x4eb13ec100000000; + *((unsigned long *)&__m256i_result[0]) = 0x3ec13ec100000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op0[1]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfe01fe01fd02fd02; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_result[1]) = 0xfe01fe01fd02fd02; + *((unsigned long *)&__m256i_result[0]) = 0x000000003fc03fc0; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op1[3]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xc039000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_op1[3]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[2]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[1]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[0]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x04f104f104f104f1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x04f104f104f104f1; + __m256i_out = __lasx_xvmulwod_h_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_w_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0ff8010000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0ff8010000000000; + __m256i_out = __lasx_xvmulwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256i_op1[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffff8d9ffa7103d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[3]) = 0x00f800f800f800f8; + *((unsigned long *)&__m256i_op1[2]) = 0x0018181800181818; + *((unsigned long *)&__m256i_op1[1]) = 0x00f800f800f800f8; + *((unsigned long *)&__m256i_op1[0]) = 0x0018181800181818; + *((unsigned long *)&__m256i_result[3]) = 0x001f1f3e3e1f1f00; + *((unsigned long *)&__m256i_result[2]) = 0x0003060909060300; + *((unsigned long *)&__m256i_result[1]) = 0x001f1f3e3e1f1f00; + *((unsigned long *)&__m256i_result[0]) = 0x0003060909060300; + __m256i_out = __lasx_xvmulwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x800000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x800000ff000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x90007fff90008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0ffffffe90008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x4800408ef07f7f01; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0800000eeffffe02; + __m256i_out = __lasx_xvmulwod_d_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01fc03e000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x01fc03e000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00fffb0402fddf20; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00fffb0402fddf20; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001fbf9fbe29f52; + *((unsigned long *)&__m256i_result[2]) = 0x5b409c0000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001fbf9fbe29f52; + *((unsigned long *)&__m256i_result[0]) = 0x5b409c0000000000; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000c0000005; + *((unsigned long *)&__m256i_op0[2]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000c0000005; + *((unsigned long *)&__m256i_op0[0]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_op1[2]) = 0x000043efffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_op1[0]) = 0x000043efffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xbfffa004fffd8000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xbfffa004fffd8000; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op0[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op0[0]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op0[2]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op0[0]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001ff03fe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffec75c2d209f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001ff03fe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffec75c2d209f; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0002fffc; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000fffd0003; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0002fffc; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000fffd0003; + __m256i_out = __lasx_xvmulwod_q_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-3.c new file mode 100644 index 00000000000..9fcd3ce0c01 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmulwod-3.c @@ -0,0 +1,440 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00aa000000ac00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00aa000000ac00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdf01010153a10101; + *((unsigned long *)&__m256i_op0[2]) = 0x5b7f01ff5b7f10ff; + *((unsigned long *)&__m256i_op0[1]) = 0xdf01010153a10101; + *((unsigned long *)&__m256i_op0[0]) = 0x5b7f01ff5b7f10ff; + *((unsigned long *)&__m256i_op1[3]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op1[2]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op1[1]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op1[0]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_h_bu_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_op1[0]) = 0x00007fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00007ffe81fdfe03; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000000f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_d_wu_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000017f00007f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x00007f0000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000fd; + *((unsigned long *)&__m256i_result[0]) = 0xffff810000000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x71860bf35f0f9d81; + *((unsigned long *)&__m256i_op0[2]) = 0x720ed94a46f449ed; + *((unsigned long *)&__m256i_op0[1]) = 0x71860bf35f0f9f39; + *((unsigned long *)&__m256i_op0[0]) = 0x72544f0e6e95cecd; + *((unsigned long *)&__m256i_op1[3]) = 0xffff8910ffff7e01; + *((unsigned long *)&__m256i_op1[2]) = 0xffff3573ffff8960; + *((unsigned long *)&__m256i_op1[1]) = 0xffff8910ffff1ca9; + *((unsigned long *)&__m256i_op1[0]) = 0xfffff5e5ffff8130; + *((unsigned long *)&__m256i_result[3]) = 0xffffcb423a587053; + *((unsigned long *)&__m256i_result[2]) = 0x6d46f43e71141b81; + *((unsigned long *)&__m256i_result[1]) = 0xffffcb423a584528; + *((unsigned long *)&__m256i_result[0]) = 0x9bdf36c8d78158a1; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[3]) = 0x800000007fff0001; + *((unsigned long *)&__m256i_op1[2]) = 0x80000000ff7f0001; + *((unsigned long *)&__m256i_op1[1]) = 0x800000007fff0001; + *((unsigned long *)&__m256i_op1[0]) = 0x80000000ff7f0001; + *((unsigned long *)&__m256i_result[3]) = 0xbfffffffffff8000; + *((unsigned long *)&__m256i_result[2]) = 0xbfff800080000000; + *((unsigned long *)&__m256i_result[1]) = 0xbfffffffffff8000; + *((unsigned long *)&__m256i_result[0]) = 0xbfff800080000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000007f8; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000002de; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000007f8; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000002de; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000007f7; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffff808; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000007f7; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffff808; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf5fffc00fc000000; + *((unsigned long *)&__m256i_op1[2]) = 0xf5fffc00fc000000; + *((unsigned long *)&__m256i_op1[1]) = 0xf5fffc00fc000000; + *((unsigned long *)&__m256i_op1[0]) = 0xf5fffc00fc000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmulwod_q_du_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp837419vqx; Tue, 12 Sep 2023 20:59:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFm1Pec64K3uKRJM9WHYY7ZcCo2w0MlljCOc5KhRiBV0x72ILLzc+8d4fgSrjs0LrsVvrFA X-Received: by 2002:aa7:d682:0:b0:522:ab06:7213 with SMTP id d2-20020aa7d682000000b00522ab067213mr1083367edr.27.1694577572453; Tue, 12 Sep 2023 20:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577572; cv=none; d=google.com; s=arc-20160816; b=df5DGAFgilj69il40zod2m0HzJgE3/C0ZrY+h1K+mADTfFP4sFX11H2BXpyMgfTvGZ /z0uCvtI3+YDwm6gC3CxqXbKRExQNtVTMYu5eP7yUn2ks3gWL17HOVdjsfVjxQYIhCxZ cpBliWIgh3ahhiDZGzKsh6gvKzWr7MGOjH/bJxUAK4KRtKQRuOqDy95qDz2xFG9Ft2y+ FVJby71Dzr6jKhp3eUKwsmPMSEyVpl9tlkL48Dklno3uekyqEuNFLrsGv+vLluGj8Yi8 b6FBYBnEEDtgOXluhD5Sz5dPfRmQcXgPvpGV6tPrs0hYZgxzTU/3/qpUQVHaapEj6RYA o5PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=KqPqlP8BT/4oWut7qAvxMg/j96GhAW1CuIrahH4+Qf8=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=p7SVqKxnktA/YlAP9y8HHM36j8YoeG9XBboQpSnoJfbuOsyWdRqdecgwP+YKW4er04 vQ5UBwZV7YSXPTmtwfaBo60F68LlDvqxrO0zQ4C1CKcQ3QNIiutxWai27+GBmb/VKfqE kPzvZ0ou9lj5hcWndRUEvctXmA5N2cQwi0DptrQYRM9bMhB/qnbxlcw537giftUrKZ2R GYO4hIy3s9lbZ2HH0lk9hWTeaFp7fJPWBKHs/MDDOPRHeF8edeDhFTDyeaLtQ7J1CVTU iydA/Z/15Go+mLFL0Yl680yvei8nttYnzK3f/O7fZ4rET9VFejPEdx1iK8v3ejjqOSxs 4Taw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c20-20020aa7d614000000b0052889552052si10185150edr.270.2023.09.12.20.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:59:32 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C44883831D9B for ; Wed, 13 Sep 2023 03:41:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 30D0A3830B40 for ; Wed, 13 Sep 2023 03:39:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30D0A3830B40 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8DxxPDmLgFlTjEmAA--.9332S3; Wed, 13 Sep 2023 11:39:18 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S9; Wed, 13 Sep 2023 11:39:17 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 05/22] LoongArch: Add tests for ASX vector xvmax/xvmaxi/xvmin/xvmini instructions. Date: Wed, 13 Sep 2023 11:38:42 +0800 Message-Id: <20230913033859.6734-6-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S9 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBLgAAs8 X-Coremail-Antispam: 1Uk129KBj9DXoWkCFykKrW7ZrW8XFW8ur43twc_yoW5JrW7Wr g_JF1UJFW0gFsa9r1kXr1UZF98Wr17GwnFv3WUCF1vq3WSyw4kA3s8AF12gw17Kw1UZrnx AFyDuryUGrs8Gry8KosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1T uYvTs0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9f nUUIcSsGvfJTRUUUbckYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4 v20xvaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0 rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267 AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7Cj xVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zV CFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW3AVW8Xw1lYx0E x4A2jsIE14v26F4j6r4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42 xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWU GwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI4 8JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0I7IYx2IY6xkF7I0E14v26F4j6r4U JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0x vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jzoGQUUUUU= X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893372709770102 X-GMAIL-MSGID: 1776893372709770102 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvmax-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmax-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaxi-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmaxi-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmin-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmin-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmini-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmini-2.c: New test. --- .../loongarch/vector/lasx/lasx-xvmax-1.c | 545 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvmax-2.c | 560 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvmaxi-1.c | 471 ++++++++++++ .../loongarch/vector/lasx/lasx-xvmaxi-2.c | 504 +++++++++++++ .../loongarch/vector/lasx/lasx-xvmin-1.c | 575 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvmin-2.c | 680 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmini-1.c | 416 +++++++++++ .../loongarch/vector/lasx/lasx-xvmini-2.c | 284 ++++++++ 8 files changed, 4035 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-2.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-1.c new file mode 100644 index 00000000000..96c6671f247 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-1.c @@ -0,0 +1,545 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7f0000007f000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7f0000007f000000; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff000000; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff000000000000; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0004000400040004; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x5900000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x5900000000000000; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ffce20; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ffce20; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ee1100; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000004560408; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000ee1100; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000004560408; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff1100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000004560420; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff1100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000004560420; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f433c78; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffce; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7ff0000000000000; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00ff00ff; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x4000000000000000; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800080000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000400010004; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000400010004; + *((unsigned long *)&__m256i_result[3]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_result[2]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_result[1]) = 0x0001000e0001000e; + *((unsigned long *)&__m256i_result[0]) = 0x0001000e0001000e; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0080000000000002; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0080000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0080000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1090918800000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1090918800000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1c80780000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[1]) = 0x1c80780000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[3]) = 0x1c80780000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[1]) = 0x1c80780000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000004000; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[3]) = 0x000000007f7f817f; + *((unsigned long *)&__m256i_result[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[1]) = 0x000000007f7f817f; + *((unsigned long *)&__m256i_result[0]) = 0x7f807f007f7f817f; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffebeeaaefafb; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffebeeaaeeeeb; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffebeeaaefafb; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffebeeaaeeeeb; + *((unsigned long *)&__m256i_result[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op0[2]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op0[1]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op0[0]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff00; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_result[2]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_result[0]) = 0x7fff00007fff0000; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffbfffc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvmax_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_op1[2]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_op1[1]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_op1[0]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_result[3]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_result[2]) = 0x556caad9aabbaa88; + *((unsigned long *)&__m256i_result[1]) = 0x0000004a557baac4; + *((unsigned long *)&__m256i_result[0]) = 0x556caad9aabbaa88; + __m256i_out = __lasx_xvmax_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000020006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000020006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000020006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000020006; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000020006; + __m256i_out = __lasx_xvmax_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_result[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_result[0]) = 0xfffe97c020010001; + __m256i_out = __lasx_xvmax_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-2.c new file mode 100644 index 00000000000..38f2c0afec0 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmax-2.c @@ -0,0 +1,560 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffdfffffffdfffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffdfffffffdfffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffee0000ff4c; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ff050000ff3c; + *((unsigned long *)&__m256i_op1[1]) = 0x0000fff90000ff78; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffa80000ff31; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[0]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x817f11ed81800ff0; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003fe000000000; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800000ff800000ff; + __m256i_out = __lasx_xvmax_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffeeffaf; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000011; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffeeffaf; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000011; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffffffeeffaf; + *((unsigned long *)&__m256i_result[2]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffffeeffaf; + *((unsigned long *)&__m256i_result[0]) = 0x1010100f10100fd4; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[0]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_result[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_result[0]) = 0xf0f0f0f0f0f0f0f0; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op1[2]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op1[0]) = 0xc600000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_result[2]) = 0xc600000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_result[0]) = 0xc600000000000000; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000d0d8ffffeecf; + *((unsigned long *)&__m256i_op1[2]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000d0d8ffffeecf; + *((unsigned long *)&__m256i_op1[0]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffd8ffc7ffffdf0d; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffd8ffc7ffffdf0d; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000003f8000004; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000003f8000004; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000003f8000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000003f8000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000014402080144; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f433c78; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff97a2; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[2]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[0]) = 0x000000070002000a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x000000070002000a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x000000070002000a; + __m256i_out = __lasx_xvmax_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op1[2]) = 0xfffcf800fffcf800; + *((unsigned long *)&__m256i_op1[1]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op1[0]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[2]) = 0xfffcf800fffcf800; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000080000000800; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc7418a023680; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff8845bb954b00; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffc7418a023680; + *((unsigned long *)&__m256i_result[2]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_result[1]) = 0xffff8845bb954b00; + *((unsigned long *)&__m256i_result[0]) = 0x00000000002a5429; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003f800000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003f800000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000040404040; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000040404040; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000001400; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffff08a7de0; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffff07c4170; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffff08a7de0; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffff07c4170; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffff08a7de0; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffff07c4170; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffff08a7de0; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffff07c4170; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmax_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-1.c new file mode 100644 index 00000000000..e804a0a45ec --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-1.c @@ -0,0 +1,471 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffd10000006459; + *((unsigned long *)&__m256i_op0[2]) = 0x0000441000000004; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[0]) = 0x0000040400000104; + *((unsigned long *)&__m256i_result[3]) = 0x0f0f0f0f0f0f6459; + *((unsigned long *)&__m256i_result[2]) = 0x0f0f44100f0f0f0f; + *((unsigned long *)&__m256i_result[1]) = 0x0f0f0f0f0f0f0f0f; + *((unsigned long *)&__m256i_result[0]) = 0x0f0f0f0f0f0f0f0f; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8080808180808093; + *((unsigned long *)&__m256i_op0[2]) = 0x80808081808080fe; + *((unsigned long *)&__m256i_op0[1]) = 0x8080808180808093; + *((unsigned long *)&__m256i_op0[0]) = 0x80808081808080fb; + *((unsigned long *)&__m256i_result[3]) = 0xf5f5f5f5f5f5f5f5; + *((unsigned long *)&__m256i_result[2]) = 0xf5f5f5f5f5f5f5fe; + *((unsigned long *)&__m256i_result[1]) = 0xf5f5f5f5f5f5f5f5; + *((unsigned long *)&__m256i_result[0]) = 0xf5f5f5f5f5f5f5fb; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[2]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[1]) = 0x0909090909090909; + *((unsigned long *)&__m256i_result[0]) = 0x0909090909090909; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, -4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[3]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[1]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[0]) = 0x0d0d0d0d0d0d0d0d; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_result[2]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_result[1]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_result[0]) = 0x0a0a0a0a7f0a0a0a; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0707070707070707; + *((unsigned long *)&__m256i_result[2]) = 0x0707070707070707; + *((unsigned long *)&__m256i_result[1]) = 0x0707070707070707; + *((unsigned long *)&__m256i_result[0]) = 0x0707070707070707; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[1]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[0]) = 0x0d0d0d0d0d0d0d0d; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_op0[2]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_op0[1]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_op0[0]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[3]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[2]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[1]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[0]) = 0x2a2a2a2a2a2a2a2a; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0c0c0c0c0c0c0c0c; + *((unsigned long *)&__m256i_result[2]) = 0x0c0c0c0c0c0c0c0c; + *((unsigned long *)&__m256i_result[1]) = 0x0c0c0c0c0c0c0c0c; + *((unsigned long *)&__m256i_result[0]) = 0x0c0c0c0c0c0c0c0c; + __m256i_out = __lasx_xvmaxi_b (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[0]) = 0x0005000500050005; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, 5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op0[2]) = 0xffc00000ffc0ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op0[0]) = 0xffc00000ffc0ffc0; + *((unsigned long *)&__m256i_result[3]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_result[2]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_result[1]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_result[0]) = 0xfff90000fff9fff9; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, -7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00040000; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00080008000801ff; + *((unsigned long *)&__m256i_result[2]) = 0x0008000800080008; + *((unsigned long *)&__m256i_result[1]) = 0x00080008000801ff; + *((unsigned long *)&__m256i_result[0]) = 0x0008000800080008; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, 8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000c9; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, -15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op0[2]) = 0x000000008000165a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op0[0]) = 0x000000008000165a; + *((unsigned long *)&__m256i_result[3]) = 0x0009000900090009; + *((unsigned long *)&__m256i_result[2]) = 0x000900090009165a; + *((unsigned long *)&__m256i_result[1]) = 0x0009000900090009; + *((unsigned long *)&__m256i_result[0]) = 0x000900090009165a; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op0[2]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op0[1]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_op0[0]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_result[3]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_result[2]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_result[1]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_result[0]) = 0x000a000a000a000a; + __m256i_out = __lasx_xvmaxi_h (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000401000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000401000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000401000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000401000000; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, -16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0110000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0110000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0110000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0110000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0110000000000004; + *((unsigned long *)&__m256i_result[2]) = 0x0110000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0110000000000004; + *((unsigned long *)&__m256i_result[0]) = 0x0110000000000080; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_result[2]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_result[0]) = 0x0000000e0000000e; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, 14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff400000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff400000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, -12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000900000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000900000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000900000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000900000009; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[2]) = 0x000000081f20607a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[0]) = 0x000000081f20607a; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, 8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmaxi_w (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, -16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff1100; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000004560420; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff1100; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000004560420; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff1100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000004560420; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff1100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000004560420; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, -1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_op0[2]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_op0[0]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_result[2]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_result[0]) = 0x7e00000000000000; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, -9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff5; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000007b007e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000007b007e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007b007e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007b007e; + __m256i_out = __lasx_xvmaxi_d (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-2.c new file mode 100644 index 00000000000..b6b34063cd9 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmaxi-2.c @@ -0,0 +1,504 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000102; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0a0a0a0a0a0a0a0a; + *((unsigned long *)&__m256i_result[2]) = 0x0a0a0a0a0a0a0a0a; + *((unsigned long *)&__m256i_result[1]) = 0x0a0a0a0a0a0a0a0a; + *((unsigned long *)&__m256i_result[0]) = 0x0a0a0a0a0a0a0a0a; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1717171717171717; + *((unsigned long *)&__m256i_result[2]) = 0x1717171717171717; + *((unsigned long *)&__m256i_result[1]) = 0x1717171717171717; + *((unsigned long *)&__m256i_result[0]) = 0x1717171717171717; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe00007f000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1616161616161616; + *((unsigned long *)&__m256i_result[2]) = 0x161616167fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7ffe16167f161616; + *((unsigned long *)&__m256i_result[0]) = 0x161616167fffffff; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000feb60000b7d0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000feb60000c7eb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000feb60000b7d0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000feb60000c7eb; + *((unsigned long *)&__m256i_result[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_result[2]) = 0x0707feb60707c7eb; + *((unsigned long *)&__m256i_result[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_result[0]) = 0x0707feb60707c7eb; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1111111111111111; + *((unsigned long *)&__m256i_result[2]) = 0x1111111111111111; + *((unsigned long *)&__m256i_result[1]) = 0x1111111111111111; + *((unsigned long *)&__m256i_result[0]) = 0x1111111111111111; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000165a; + *((unsigned long *)&__m256i_result[3]) = 0x1818ffff1818ffa3; + *((unsigned long *)&__m256i_result[2]) = 0x181818181818185a; + *((unsigned long *)&__m256i_result[1]) = 0x1818ffff1818ffa3; + *((unsigned long *)&__m256i_result[0]) = 0x181818181818185a; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[2]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[0]) = 0x1c1c1c1c1c1c1c1c; + __m256i_out = __lasx_xvmaxi_bu (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xeffc000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xf064c6098d214127; + *((unsigned long *)&__m256i_op0[1]) = 0xeffc000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xf064c6098d214127; + *((unsigned long *)&__m256i_result[3]) = 0xeffc001800180018; + *((unsigned long *)&__m256i_result[2]) = 0xf064c6098d214127; + *((unsigned long *)&__m256i_result[1]) = 0xeffc001800180018; + *((unsigned long *)&__m256i_result[0]) = 0xf064c6098d214127; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010003; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010003; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0007000700070007; + *((unsigned long *)&__m256i_result[2]) = 0x0007000700070007; + *((unsigned long *)&__m256i_result[1]) = 0x0007000700070007; + *((unsigned long *)&__m256i_result[0]) = 0x0007000700070007; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0018001800180018; + *((unsigned long *)&__m256i_result[2]) = 0x0018001800180018; + *((unsigned long *)&__m256i_result[1]) = 0x0018001800180018; + *((unsigned long *)&__m256i_result[0]) = 0x0018001800180018; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x0017001700176d6d; + *((unsigned long *)&__m256i_result[2]) = 0x0017001700176d6d; + *((unsigned long *)&__m256i_result[1]) = 0x0017001700176d6d; + *((unsigned long *)&__m256i_result[0]) = 0x0017001700176d6d; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x001fffffffe00011; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x001fffffffe00011; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvmaxi_hu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[2]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[1]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[0]) = 0x0000001400000014; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000e00000080; + *((unsigned long *)&__m256i_result[2]) = 0x0000000e00000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000e00000080; + *((unsigned long *)&__m256i_result[0]) = 0x0000000e00000080; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000fd0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000fd0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001b0000001b; + *((unsigned long *)&__m256i_result[2]) = 0x0000001b00fd0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000001b0000001b; + *((unsigned long *)&__m256i_result[0]) = 0x0000001b00fd0000; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000c7aff7c00; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000c7aff7c00; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffd017d00; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000001f0000001f; + *((unsigned long *)&__m256i_result[0]) = 0x0000001f0000ffff; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000300000003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000300000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000300000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000300000003; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1010101010001000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x1010101000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x1010101010001000; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x101010100000000e; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000001e0007ffff; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000fd; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[2]) = 0x00000004000000fd; + *((unsigned long *)&__m256i_result[1]) = 0x00000004000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000400000004; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000001f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000001f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000001f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000001f; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000001700000017; + *((unsigned long *)&__m256i_result[2]) = 0x0000001700000017; + *((unsigned long *)&__m256i_result[1]) = 0x0000001700000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000001700000017; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op0[2]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_op0[1]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op0[0]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_result[3]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_result[2]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_result[1]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_result[0]) = 0x07fed3c8f7ad28d0; + __m256i_out = __lasx_xvmaxi_wu (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000001e; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000001e; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[0]) = 0x1c1b1a191c1b1a19; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000003f; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000001c; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000001c; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000001c; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000001c; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000005; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000600000006; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffe; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000000b; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000b; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000000b; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000b; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000013; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000014; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000014; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000014; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000014; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000014; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000014; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000014; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000014; + __m256i_out = __lasx_xvmaxi_du (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-1.c new file mode 100644 index 00000000000..7dbf335c14d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-1.c @@ -0,0 +1,575 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8001000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000800080000728; + *((unsigned long *)&__m256i_op1[1]) = 0x8001800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x800080008000b8f1; + *((unsigned long *)&__m256i_result[3]) = 0x8000ffff8000ffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff80008000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800080008000b8f1; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_op0[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_op1[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_op1[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_result[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_result[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256i_result[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256i_result[0]) = 0x0000000180007fe8; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op1[2]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_op1[1]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_op1[0]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_result[3]) = 0xc800c800c800c800; + *((unsigned long *)&__m256i_result[2]) = 0x8800c800c800c801; + *((unsigned long *)&__m256i_result[1]) = 0xc800c800c800c800; + *((unsigned long *)&__m256i_result[0]) = 0x8800c800c800c801; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_op0[2]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_op0[1]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_op0[0]) = 0x7070545438381c1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff00ffff8000; + __m256i_out = __lasx_xvmin_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x003ff18080010201; + *((unsigned long *)&__m256i_op0[2]) = 0x0100000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x003ff18080010201; + *((unsigned long *)&__m256i_op0[0]) = 0x0100000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000f18080010000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000f18080010000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000d24; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000fffe; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff81ff7d; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000017f7f7f7f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000017f7f7f7f; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmin_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000004040104; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffd1108199; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000714910f9; + *((unsigned long *)&__m256i_op1[3]) = 0xffffd10000006459; + *((unsigned long *)&__m256i_op1[2]) = 0x0000441000000004; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[0]) = 0x0000040400000104; + *((unsigned long *)&__m256i_result[3]) = 0xffffd10000000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffd1108199; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000104; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0100; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fd00ffff02ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001fffeff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff02ff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0100; + *((unsigned long *)&__m256i_result[0]) = 0xff00fe00feff02ff; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_op0[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff1f001f; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffe1ffe0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff1f001f; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffe1ffe0; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0xf000f00000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0xf000f00000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xf000f00000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xf000f00000000001; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0102; + *((unsigned long *)&__m256i_op0[2]) = 0x007c000000810081; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0102; + *((unsigned long *)&__m256i_op0[0]) = 0x007c000000810081; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4545454545454545; + *((unsigned long *)&__m256i_op0[2]) = 0x4545454545454545; + *((unsigned long *)&__m256i_op0[1]) = 0x4545454545454545; + *((unsigned long *)&__m256i_op0[0]) = 0x4545454545454545; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff0001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffbfffffffb; + __m256i_out = __lasx_xvmin_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-2.c new file mode 100644 index 00000000000..9eaa0e9e769 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmin-2.c @@ -0,0 +1,680 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x007f017f807f017d; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x007f017f807f017f; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[2]) = 0x0000017f0000017d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[0]) = 0x0000017f0000017f; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7f70000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffff800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffff800; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000014402080144; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000002080100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000002080100; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff0000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff0000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000001de2dc20; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000001de2dc20; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010100; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000001000100; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffbf7f7fff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffe651bfff; + *((unsigned long *)&__m256i_result[3]) = 0x0001010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000010100; + *((unsigned long *)&__m256i_result[0]) = 0x0001000001000100; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_op0[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000f3280000dfff; + *((unsigned long *)&__m256i_op1[3]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_op1[2]) = 0x1d1d1d1ddd9d9d1d; + *((unsigned long *)&__m256i_op1[1]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_op1[0]) = 0x1d1d1d1d046fdd1d; + *((unsigned long *)&__m256i_result[3]) = 0x00001d1d00001d1d; + *((unsigned long *)&__m256i_result[2]) = 0x00001d1d00007f79; + *((unsigned long *)&__m256i_result[1]) = 0x00001d1d00001d1d; + *((unsigned long *)&__m256i_result[0]) = 0x00001d1d0000dd1d; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0002000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0106010601060106; + *((unsigned long *)&__m256i_op0[2]) = 0x0106010601060106; + *((unsigned long *)&__m256i_op0[1]) = 0x0106010601060106; + *((unsigned long *)&__m256i_op0[0]) = 0x0106010601060106; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00011ffb0000bee1; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00011ffb0000bee1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001010600000106; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001010600000106; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffd5d5ffffd5d6; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffd5d5ffffd5d6; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op1[3]) = 0xc58a0a0a07070706; + *((unsigned long *)&__m256i_op1[2]) = 0x006b60e4180b0023; + *((unsigned long *)&__m256i_op1[1]) = 0x1b39153f334b966a; + *((unsigned long *)&__m256i_op1[0]) = 0xf1d75d79efcac002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x006b60e40e0e0e0e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x36722a7e66972cd6; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000101ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00040000; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00010e0d00009e0e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00009000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000e0e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00009000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000033; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000033; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000033; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffe36780; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffe36780; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[2]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00f0000000f00010; + *((unsigned long *)&__m256i_op1[2]) = 0xfff0ff00fff0ff10; + *((unsigned long *)&__m256i_op1[1]) = 0x00f0000000f00010; + *((unsigned long *)&__m256i_op1[0]) = 0xfff0ff00fff0ff10; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_op1[2]) = 0x0000400100004001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_op1[0]) = 0x0000400100004001; + *((unsigned long *)&__m256i_result[3]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_result[2]) = 0x0000400100004001; + *((unsigned long *)&__m256i_result[1]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_result[0]) = 0x0000400100004001; + __m256i_out = __lasx_xvmin_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x60f02081c1c4ce2c; + *((unsigned long *)&__m256i_op0[2]) = 0x8008000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x60f02081c1c4ce2c; + *((unsigned long *)&__m256i_op0[0]) = 0x8008000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010183f9999b; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x01010101d58f43c9; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0101010183f9999b; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x01010101d58f43c9; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff00ff00ee; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00ff00ee; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007f00ff007f00ff; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007f7f7f7f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007f7f7f7f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000001fffe; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmin_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-1.c new file mode 100644 index 00000000000..01aabada810 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-1.c @@ -0,0 +1,416 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xf96d674800000000; + *((unsigned long *)&__m256i_op0[2]) = 0x44a4330e2c7116c0; + *((unsigned long *)&__m256i_op0[1]) = 0x14187a7822b653c0; + *((unsigned long *)&__m256i_op0[0]) = 0xfbe0b866962b96d0; + *((unsigned long *)&__m256i_result[3]) = 0xf90c0c0c00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0ca40c0c0c0c0cc0; + *((unsigned long *)&__m256i_result[1]) = 0x0c0c0c0c0cb60cc0; + *((unsigned long *)&__m256i_result[0]) = 0xfbe0b80c960c96d0; + __m256i_out = __lasx_xvmini_b (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010bfc80010bf52; + *((unsigned long *)&__m256i_op0[2]) = 0xfff1bfca0011bfcb; + *((unsigned long *)&__m256i_op0[1]) = 0x0010bfc80010bf52; + *((unsigned long *)&__m256i_op0[0]) = 0xfff1bfca0011bfcb; + *((unsigned long *)&__m256i_result[3]) = 0xf5f5bfc8f5f5bff5; + *((unsigned long *)&__m256i_result[2]) = 0xf5f1bfcaf5f5bfcb; + *((unsigned long *)&__m256i_result[1]) = 0xf5f5bfc8f5f5bff5; + *((unsigned long *)&__m256i_result[0]) = 0xf5f1bfcaf5f5bfcb; + __m256i_out = __lasx_xvmini_b (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf8f8f8f8f8f8f8f8; + *((unsigned long *)&__m256i_result[2]) = 0xf8f8f8f8f8f8f8f8; + *((unsigned long *)&__m256i_result[1]) = 0xf8f8f8f8f8f8f8f8; + *((unsigned long *)&__m256i_result[0]) = 0xf8f8f8f8f8f8f8f8; + __m256i_out = __lasx_xvmini_b (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000aaabffff; + __m256i_out = __lasx_xvmini_b (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff47b4ffff5878; + *((unsigned long *)&__m256i_op0[2]) = 0x0000b84b0000a787; + *((unsigned long *)&__m256i_op0[1]) = 0xffff47b4ffff5878; + *((unsigned long *)&__m256i_op0[0]) = 0x0000b84b0000a787; + *((unsigned long *)&__m256i_result[3]) = 0xffff07b4ffff0707; + *((unsigned long *)&__m256i_result[2]) = 0x0000b8070000a787; + *((unsigned long *)&__m256i_result[1]) = 0xffff07b4ffff0707; + *((unsigned long *)&__m256i_result[0]) = 0x0000b8070000a787; + __m256i_out = __lasx_xvmini_b (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[0]) = 0xf7f7f7f7f7f7f7f7; + __m256i_out = __lasx_xvmini_b (__m256i_op0, -9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_b (__m256i_op0, 5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_b (__m256i_op0, 14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_result[2]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_result[1]) = 0xf3f3f3f3f3f3f3f3; + *((unsigned long *)&__m256i_result[0]) = 0xf3f3f3f3f3f3f3f3; + __m256i_out = __lasx_xvmini_b (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[0]) = 0xf9f9f9f9f9f9f9f9; + __m256i_out = __lasx_xvmini_b (__m256i_op0, -7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[2]) = 0xc30e0000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[0]) = 0xc30e0000ff800000; + *((unsigned long *)&__m256i_result[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_result[2]) = 0xc3030000ff800000; + *((unsigned long *)&__m256i_result[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_result[0]) = 0xc3030000ff800000; + __m256i_out = __lasx_xvmini_b (__m256i_op0, 3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[2]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[1]) = 0xfff6fff6fff6fff6; + *((unsigned long *)&__m256i_result[0]) = 0xfff6fff6fff6fff6; + __m256i_out = __lasx_xvmini_h (__m256i_op0, -10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1fffffff1fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0383634303836343; + *((unsigned long *)&__m256i_op0[1]) = 0x1fffffff1fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0383634303836343; + *((unsigned long *)&__m256i_result[3]) = 0x0002ffff0002ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[1]) = 0x0002ffff0002ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0002000200020002; + __m256i_out = __lasx_xvmini_h (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000f7bc0001f7bd; + *((unsigned long *)&__m256i_op0[2]) = 0x0000f93b0000017c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000f7bc0001f7bd; + *((unsigned long *)&__m256i_op0[0]) = 0x0000f93b0000017b; + *((unsigned long *)&__m256i_result[3]) = 0xfff2f7bcfff2f7bd; + *((unsigned long *)&__m256i_result[2]) = 0xfff2f93bfff2fff2; + *((unsigned long *)&__m256i_result[1]) = 0xfff2f7bcfff2f7bd; + *((unsigned long *)&__m256i_result[0]) = 0xfff2f93bfff2fff2; + __m256i_out = __lasx_xvmini_h (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmini_h (__m256i_op0, 6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_h (__m256i_op0, 13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_result[2]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_result[1]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256i_result[0]) = 0xfff9fff9fff9fff9; + __m256i_out = __lasx_xvmini_h (__m256i_op0, -7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_result[2]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_result[1]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_result[0]) = 0xfff3fff3fff3fff3; + __m256i_out = __lasx_xvmini_h (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff2fff2fff2fff2; + *((unsigned long *)&__m256i_result[2]) = 0xfff2fff2fff2fff2; + *((unsigned long *)&__m256i_result[1]) = 0xfff2fff2fff2fff2; + *((unsigned long *)&__m256i_result[0]) = 0xfff2fff2fff2fff2; + __m256i_out = __lasx_xvmini_h (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_h (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[0]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[1]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000400000004; + __m256i_out = __lasx_xvmini_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff0e400; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff0e400; + __m256i_out = __lasx_xvmini_w (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000100000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff2fffffff2; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff2fffffff2; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff2fffffff2; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff2fffffff2; + __m256i_out = __lasx_xvmini_w (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000000a; + __m256i_out = __lasx_xvmini_w (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff8fffffff8; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff8fffffff8; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff8fffffff8; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff8fffffff8; + __m256i_out = __lasx_xvmini_w (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff7fffffff7; + __m256i_out = __lasx_xvmini_w (__m256i_op0, -9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmini_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff0fffffff0; + __m256i_out = __lasx_xvmini_w (__m256i_op0, -16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmini_w (__m256i_op0, -1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_d (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x327f010101010102; + *((unsigned long *)&__m256i_op0[2]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x327f010101010102; + *((unsigned long *)&__m256i_op0[0]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff4; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff4; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffff4; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff4; + __m256i_out = __lasx_xvmini_d (__m256i_op0, -12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000900000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out = __lasx_xvmini_d (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_d (__m256i_op0, 13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmini_d (__m256i_op0, -1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[2]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[0]) = 0xff00ff007f007f00; + __m256i_out = __lasx_xvmini_d (__m256i_op0, -5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_d (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-2.c new file mode 100644 index 00000000000..8eb7d93558b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmini-2.c @@ -0,0 +1,284 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op0[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_result[3]) = 0x0d0d0d0d00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[1]) = 0x0d0d0d0d00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0d0d0d0d0d0d0d0d; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1b1b1b1b1b1b1b1b; + *((unsigned long *)&__m256i_result[2]) = 0x1b1b1b1b1b1b1b1b; + *((unsigned long *)&__m256i_result[1]) = 0x1b1b1b1b1b1b1b1b; + *((unsigned long *)&__m256i_result[0]) = 0x1b1b1b1b1b1b1b1b; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1e1e1e0000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1e1e1e0000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1e1e1e0000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1e1e1e0000000000; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_result[2]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_result[0]) = 0x0a0a0a0a00000000; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000800400010006d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0008001c0010001c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0008001c0010001c; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_bu (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_hu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0007000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0007000000000000; + __m256i_out = __lasx_xvmini_hu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000002222; + *((unsigned long *)&__m256i_op0[2]) = 0x00003ddd80007bbb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000002222; + *((unsigned long *)&__m256i_op0[0]) = 0x00003ddd80007bbb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000001700170017; + __m256i_out = __lasx_xvmini_hu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_hu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_hu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffe400000707; + *((unsigned long *)&__m256i_op0[2]) = 0x00000af100001455; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffe400000707; + *((unsigned long *)&__m256i_op0[0]) = 0x00000af100001455; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff61010380; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff61010380; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000006; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmini_du (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp837062vqx; Tue, 12 Sep 2023 20:58:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+YAUNw82gwNVKTfFMi945U9Ie/aYtuvqt1uRc9RV92riLJmL2BAYrXtYPSokuLU40rZEd X-Received: by 2002:a17:906:1090:b0:99b:48a9:f56d with SMTP id u16-20020a170906109000b0099b48a9f56dmr838101eju.22.1694577486297; Tue, 12 Sep 2023 20:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577486; cv=none; d=google.com; s=arc-20160816; b=MhlLqEFtCgWJFfAsrXc8GSVrL7DVMRRHdPjJHxstzB/0J3ZgjGwYJ9NsP7darsNe8z Nwzy64g5KzB5XToWl5stS69WRY0Qg1pxKBpvpVafamxPqHkD/GbfnaeV5lcaCGW74wBr vQM9rtjkpg6F8fs/tuq2eQ4lFypyBltsYkPO06XBTdXreS5slb7d8bgL/8XFzq6OGvjP x5yvy+wh6ts6X1CzuXLNdScpTcb3A2Wa8L+U63VJJ3iuM6VBKCmBNHfE1qOKLiJbWZ95 656PVKc/FNNDe+7w6KQxmNk/5JmV8Nf9Zw7/jJqQqSVfIBnloQW7WgZwrriARaY4KOLZ B7fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=vt+fdPC10zxt+4rqoIGeA1TKyyuOjzM7J1NxMICjVRw=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=gYEq0tadgBmzmyKpAyeit8/bQaChT3ne3pQhb0j0bbx4brn9iEClZf1L/yokTvOPWZ NCpjabRLzNyvqJ0m8dcB2u/aMwQMbLeFZHOS9IIwDIek3Kg34kvgwovlLSItsElfnxGN Ma/kip1y+94a2qdEOlmatzivRVMPFiKbKNL2rBNeRAoJDTA/2q/Efo71GkO/jEVe+OxO wDbUG41n8KGq3x85gk2rHRqry44e2gca80X5IJ/CNIINADg+vySt715n0pCQ87W2AEHd CHvXGq2ZLBpk2d1NUyVuhTGTGoGwlP/MaKaHsUoRRkiHntwjdUFlnswj02fIl1Ju5/F1 zpIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h22-20020a170906855600b0098d373fa9e4si8860162ejy.1007.2023.09.12.20.58.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:58:06 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B233C38306A0 for ; Wed, 13 Sep 2023 03:41:27 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 28CC1389366D for ; Wed, 13 Sep 2023 03:39:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28CC1389366D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGiq-00049X-DM for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:39:31 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8AxDOvoLgFlUTEmAA--.3251S3; Wed, 13 Sep 2023 11:39:20 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S10; Wed, 13 Sep 2023 11:39:19 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 06/22] LoongArch: Add tests for ASX vector xvldi/xvmskgez/xvmskltz/xvmsknz/xvmuh /xvsigncov instructions. Date: Wed, 13 Sep 2023 11:38:43 +0800 Message-Id: <20230913033859.6734-7-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S10 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBMAAAsi X-Coremail-Antispam: 1Uk129KBj97XoW8Cry5CFy7ZFyfAF4ruoXrpr4rAF1xXoWUAr 1Uurs5Ca93Jw45Jr13Z34rJF18t3ZIyr17Aws0yFZrKw42q347AFn5tF18tr1fJa47Zw1f Xr1UG348Xr4kl-sFpf9Il3svdjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3 svdxBIdaVrn0xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIY CTnIWjp_UUUYO7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcI k0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK 021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r 4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26Fy26r45twAv7VC2z280 aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20x vY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I 3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIx AIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF 0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z2 80aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8v4EtUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893281907693802 X-GMAIL-MSGID: 1776893281907693802 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvldi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmskgez.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmskltz.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmsknz.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmuh-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmuh-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsigncov.c: New test. --- .../loongarch/vector/lasx/lasx-xvldi.c | 83 +++ .../loongarch/vector/lasx/lasx-xvmskgez.c | 86 +++ .../loongarch/vector/lasx/lasx-xvmskltz.c | 373 ++++++++++ .../loongarch/vector/lasx/lasx-xvmsknz.c | 163 +++++ .../loongarch/vector/lasx/lasx-xvmuh-1.c | 650 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvmuh-2.c | 635 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsigncov.c | 665 ++++++++++++++++++ 7 files changed, 2655 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskgez.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskltz.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsknz.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsigncov.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldi.c new file mode 100644 index 00000000000..84b3c659992 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldi.c @@ -0,0 +1,83 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_result[3]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvldi (-4080); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0xfebcfebcfebcfebc; + *((unsigned long *)&__m256i_result[2]) = 0xfebcfebcfebcfebc; + *((unsigned long *)&__m256i_result[1]) = 0xfebcfebcfebcfebc; + *((unsigned long *)&__m256i_result[0]) = 0xfebcfebcfebcfebc; + __m256i_out = __lasx_xvldi (1724); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0x3fd1000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3fd1000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x3fd1000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3fd1000000000000; + __m256i_out = __lasx_xvldi (-943); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[0]) = 0xff1cff1cff1cff1c; + __m256i_out = __lasx_xvldi (1820); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[2]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[1]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[0]) = 0x7200000072000000; + __m256i_out = __lasx_xvldi (-3214); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0xffffff1dffffff1d; + *((unsigned long *)&__m256i_result[2]) = 0xffffff1dffffff1d; + *((unsigned long *)&__m256i_result[1]) = 0xffffff1dffffff1d; + *((unsigned long *)&__m256i_result[0]) = 0xffffff1dffffff1d; + __m256i_out = __lasx_xvldi (2845); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvldi (-4080); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0x3fd1000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3fd1000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x3fd1000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3fd1000000000000; + __m256i_out = __lasx_xvldi (-943); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_result[3]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[2]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[1]) = 0x7200000072000000; + *((unsigned long *)&__m256i_result[0]) = 0x7200000072000000; + __m256i_out = __lasx_xvldi (-3214); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskgez.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskgez.c new file mode 100644 index 00000000000..15e66ae3800 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskgez.c @@ -0,0 +1,86 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff00; + __m256i_out = __lasx_xvmskgez_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvmskgez_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskgez_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskgez_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000fafe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000fafe; + __m256i_out = __lasx_xvmskgez_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000010100000101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvmskgez_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskltz.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskltz.c new file mode 100644 index 00000000000..53b21f98be1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmskltz.c @@ -0,0 +1,373 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x3922d40000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000c85221c0; + *((unsigned long *)&__m256i_op0[0]) = 0xf7ebfab800000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000f20; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000009f0; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x40d74f979f99419f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000022; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010100000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1f9d9f9d1f9db29f; + *((unsigned long *)&__m256i_op0[2]) = 0x1f9d9f9d201cb39e; + *((unsigned long *)&__m256i_op0[1]) = 0x201c9f9d201cb29f; + *((unsigned long *)&__m256i_op0[0]) = 0x1f9d9f9d201cb39e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007773; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000003373; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc080ffff0049ffd2; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0049ffd2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffeffb9ff9d; + *((unsigned long *)&__m256i_op0[0]) = 0x00630064004bffd0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe0f02081c1c4ce2c; + *((unsigned long *)&__m256i_op0[2]) = 0x8008000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xe0f02081c1c4ce2c; + *((unsigned long *)&__m256i_op0[0]) = 0x8008000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000b8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000b8; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000003; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fffc0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000022; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000022; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010200000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010200000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[2]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[1]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[0]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000088; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000088; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x296e000018170000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x296e000018170000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000404; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000404; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffc000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffeff000c057c; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffc000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffeff000c057c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000f0f0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000f0f0; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000008c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000008c; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff801000000010; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800300000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff801000000010; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800300000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000cc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000cc; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x5); + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000055; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000054; + __m256i_out = __lasx_xvmskltz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmskltz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsknz.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsknz.c new file mode 100644 index 00000000000..81865fd32bb --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsknz.c @@ -0,0 +1,163 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020002000400040; + *((unsigned long *)&__m256i_op0[2]) = 0x0020002000400040; + *((unsigned long *)&__m256i_op0[1]) = 0x0020002000400040; + *((unsigned long *)&__m256i_op0[0]) = 0x0020002000400040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000005555; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000005555; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000300000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000300000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004411; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000004411; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000033; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000033; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op0[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_op0[0]) = 0x0100000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000f91; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000f91; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000001f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000001f; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x006018000000001a; + *((unsigned long *)&__m256i_op0[2]) = 0x0060401900000000; + *((unsigned long *)&__m256i_op0[1]) = 0x006018000000001a; + *((unsigned long *)&__m256i_op0[0]) = 0x0060401900000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000006170; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000006170; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000002ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000002ff; + __m256i_out = __lasx_xvmsknz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-1.c new file mode 100644 index 00000000000..58ad8bfcd8d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-1.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000007ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000fdfcfda8; + *((unsigned long *)&__m256i_op1[2]) = 0x0000e2821d20ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000fdfcfda8; + *((unsigned long *)&__m256i_op1[0]) = 0x0000e2821d20ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffffffffff00; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ff8000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffffff00; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ff8000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_op0[2]) = 0xc5c085372cfabfba; + *((unsigned long *)&__m256i_op0[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_op0[0]) = 0x0658f2dc0eb21e3c; + *((unsigned long *)&__m256i_op1[3]) = 0x000019410000e69a; + *((unsigned long *)&__m256i_op1[2]) = 0xf259905a0c126604; + *((unsigned long *)&__m256i_op1[1]) = 0x0000883a00000f20; + *((unsigned long *)&__m256i_op1[0]) = 0x6d3c2d3aa1c82947; + *((unsigned long *)&__m256i_result[3]) = 0x0000f647000007d6; + *((unsigned long *)&__m256i_result[2]) = 0x031b358c021ee663; + *((unsigned long *)&__m256i_result[1]) = 0x0000faaf0000f9f8; + *((unsigned long *)&__m256i_result[0]) = 0x02b4fdadfa9704df; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xf7ffffffffffff1f; + *((unsigned long *)&__m256i_op1[2]) = 0xbffffffffffffeff; + *((unsigned long *)&__m256i_op1[1]) = 0xf7ffffffffffff1f; + *((unsigned long *)&__m256i_op1[0]) = 0xbffffffffffffeff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffe05fc47b400; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffe06003fc000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffe05fc47b400; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffe06003fc000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000100040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000100040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff8900000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff8900000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256i_op0[1]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff5556aaaa; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff5556aaaa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000001fff0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000feff0001ffb8; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000001fff0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000feff0001ffb8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op1[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op1[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op1[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000007fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000036a37; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000007fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000004def9; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fffe0001; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffe0001; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fffe0001; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffe0001; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[3]) = 0x000408080c111414; + *((unsigned long *)&__m256i_result[2]) = 0x000408080c111414; + *((unsigned long *)&__m256i_result[1]) = 0x000408080c111414; + *((unsigned long *)&__m256i_result[0]) = 0x000408080c111414; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[0]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-2.c new file mode 100644 index 00000000000..85d24fe44c2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmuh-2.c @@ -0,0 +1,635 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_result[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0xfe8bfe0efe8bfe12; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0xfe8bfe0efe8bfe12; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000027; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000027; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[0]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffe00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffd; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xd207e90001fb16ef; + *((unsigned long *)&__m256i_op0[2]) = 0xc8eab25698f97e90; + *((unsigned long *)&__m256i_op0[1]) = 0xd207e90001fb16ef; + *((unsigned long *)&__m256i_op0[0]) = 0xc8eab25698f97e90; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00020002ff820002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00020002ff820002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40efffe09fa88260; + *((unsigned long *)&__m256i_op0[2]) = 0x6b07ca8e013fbf01; + *((unsigned long *)&__m256i_op0[1]) = 0x40efffe09fa7e358; + *((unsigned long *)&__m256i_op0[0]) = 0x80ce32be3e827f00; + *((unsigned long *)&__m256i_op1[3]) = 0x86ff76ffff4eff42; + *((unsigned long *)&__m256i_op1[2]) = 0x86ffffffffff9eff; + *((unsigned long *)&__m256i_op1[1]) = 0x86ff76ffff4effff; + *((unsigned long *)&__m256i_op1[0]) = 0x86ff32ffaeffffa0; + *((unsigned long *)&__m256i_result[3]) = 0x223d76f09f3881ff; + *((unsigned long *)&__m256i_result[2]) = 0x3870ca8d013e76a0; + *((unsigned long *)&__m256i_result[1]) = 0x223d76f09f37e357; + *((unsigned long *)&__m256i_result[0]) = 0x43ec0a1b2aba7ed0; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffc020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffc020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001400000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001400000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x5fa0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x5fa0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0c6a240000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0f00204000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0c6a240000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0f00204000000000; + *((unsigned long *)&__m256i_result[3]) = 0x04a3000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x04a3000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x80ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x80ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff8000fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x0001fffe00017fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff8000fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x0001fffe00017fff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000007f00fe; + *((unsigned long *)&__m256i_result[2]) = 0x000000fe0000007f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000007f00fe; + *((unsigned long *)&__m256i_result[0]) = 0x000000fe0000007f; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffe00000ffe00000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffe00000ffe00000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op1[2]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op1[1]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_op1[0]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000fafe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000fafe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff01c000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000f1000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000001341c4000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001000310000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000033e87ef1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000002e2100; + __m256i_out = __lasx_xvmuh_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[3]) = 0x000000000045f3fb; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000045f3fb; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000089; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7575ffff75757595; + *((unsigned long *)&__m256i_op0[2]) = 0x7575ffff7575f575; + *((unsigned long *)&__m256i_op0[1]) = 0x7575ffff75757595; + *((unsigned long *)&__m256i_op0[0]) = 0x7575ffff7575f575; + *((unsigned long *)&__m256i_op1[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x3aadec4f6c7975b1; + *((unsigned long *)&__m256i_result[2]) = 0x3abac5447fffca89; + *((unsigned long *)&__m256i_result[1]) = 0x3aadec4f6c7975b1; + *((unsigned long *)&__m256i_result[0]) = 0x3abac5447fffca89; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000003f; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff00ff800000; + *((unsigned long *)&__m256i_op1[1]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00ff800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[3]) = 0x000000000010000f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000010000f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmuh_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsigncov.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsigncov.c new file mode 100644 index 00000000000..2a6eee0fd22 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsigncov.c @@ -0,0 +1,665 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op0[2]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op0[1]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op0[0]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0101000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0101000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff39ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff39ffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0202020202020202; + *((unsigned long *)&__m256i_op1[2]) = 0x0202810102020202; + *((unsigned long *)&__m256i_op1[1]) = 0x0202020202020202; + *((unsigned long *)&__m256i_op1[0]) = 0x0202810102020202; + *((unsigned long *)&__m256i_result[3]) = 0x0000fefe0000fefe; + *((unsigned long *)&__m256i_result[2]) = 0x00007fff0000fefe; + *((unsigned long *)&__m256i_result[1]) = 0x0000fefe0000fefe; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff0000fefe; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000017547fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000017547fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x807e80fd80fe80fd; + *((unsigned long *)&__m256i_op1[2]) = 0x80938013800d8002; + *((unsigned long *)&__m256i_op1[1]) = 0x807e80fd80fe0000; + *((unsigned long *)&__m256i_op1[0]) = 0x80938013800d0005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000801380f380fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000801380f300fb; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffd5a98; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000101ff01; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff80ff00ff80ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff80ff00ff80ff01; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fd; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256i_op0[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256i_op0[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff000000010000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3880800037800000; + *((unsigned long *)&__m256i_op0[2]) = 0x3901000039010000; + *((unsigned long *)&__m256i_op0[1]) = 0x3880800037800000; + *((unsigned long *)&__m256i_op0[0]) = 0x3901000039010000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_result[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_result[0]) = 0x00003fc00000428a; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000001ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000001ffff; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x80be0000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x80be0000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000100000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000100000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffff00000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_op0[2]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_op0[1]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_op0[0]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_op1[3]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_op1[2]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_op1[1]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_op1[0]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_result[3]) = 0x2080208020802080; + *((unsigned long *)&__m256i_result[2]) = 0x203e208020802079; + *((unsigned long *)&__m256i_result[1]) = 0x2080208020802080; + *((unsigned long *)&__m256i_result[0]) = 0x203e208020802079; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000004e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_op1[3]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op1[2]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op1[1]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op1[0]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_result[3]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_result[2]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_result[1]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_result[0]) = 0xffffba8300004fc2; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x004100df00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00c000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x004100df00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00c000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op1[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_op1[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op1[0]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_result[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_result[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_result[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_result[0]) = 0xc1d75053f0000000; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffa30000165a; + *((unsigned long *)&__m256i_op0[2]) = 0x0000104000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffa30000165a; + *((unsigned long *)&__m256i_op0[0]) = 0x0000104000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op1[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_op1[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op1[0]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_result[3]) = 0xbe21000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000505300000000; + *((unsigned long *)&__m256i_result[1]) = 0xbe21000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000505300000000; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000001880310877e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000001880310877e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op0[2]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op0[0]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000001faf19b60; + *((unsigned long *)&__m256i_op1[2]) = 0x6c2905ae7c14c561; + *((unsigned long *)&__m256i_op1[1]) = 0x00000001faf19b60; + *((unsigned long *)&__m256i_op1[0]) = 0x6c2905ae7c14c561; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x94d7fb5200000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x94d7fb5200000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256i_op1[1]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000180; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsigncov_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8282828282828282; + *((unsigned long *)&__m256i_op0[2]) = 0x8768876887688769; + *((unsigned long *)&__m256i_op0[1]) = 0x8282828282828282; + *((unsigned long *)&__m256i_op0[0]) = 0x8768876887688769; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000003fffc0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000003fffc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffc00040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffc00040; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffdbff980038ffaf; + *((unsigned long *)&__m256i_op0[2]) = 0xffafffe80004fff1; + *((unsigned long *)&__m256i_op0[1]) = 0xffdbff980038ffaf; + *((unsigned long *)&__m256i_op0[0]) = 0xffafffe80004fff1; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffc; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000fffd0003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffc; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000fffd0003; + *((unsigned long *)&__m256i_result[3]) = 0xffff0000fffd0004; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_result[1]) = 0xffff0000fffd0004; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0002fffd; + __m256i_out = __lasx_xvsigncov_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp838452vqx; Tue, 12 Sep 2023 21:02:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLTJYmlF+cW96l4SeB2Vik+cOLDH4Ljjd+8fmfuXK3xHVv9Lp227MUgHtlVhv0QmYBuXja X-Received: by 2002:a17:906:1c9:b0:99d:f6e9:1cf8 with SMTP id 9-20020a17090601c900b0099df6e91cf8mr956281ejj.20.1694577725412; Tue, 12 Sep 2023 21:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577725; cv=none; d=google.com; s=arc-20160816; b=NkY0xhRKmbomPLRNqeRY+VimXoTEdJpFj1sxNAKZUA2bj4Fy6MvGb1DXLcMRK3A//f ABt8bbwpukT1Jn9VhtUCJtwYVzOIKAfPaKEo6kzIv5PRHVWr8J5eMGobuFMUjGa5nJJv 3xw+Xwr/zkySui/+U6/nhcPfUDTs6ybcRo613+B2rt76vkcb/87vM+s1wsLmNKogfw94 WsMfwSJd4RksX6rw5O8wesQcjQdgD5ihcFFmEAxVN4l+DfWj9ArpLnwmTEkvrmjNAAY6 MqiZBRDBnMixLzb2oAQRAPIgzSG7idGLfvB3t5odu4g4AtygBteQ4nk+HwdkhwTC/5G7 EFvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=7Y5R1K7jTea7DsSArJdTUhLFgTZQg9Pr7+INHv9/drE=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=Llc24TKk2Bu6S33FGZrwi2M1iQZDR+Jjf0/jACkI9cW9mMu+6i4mhjKdHuMEKhfAGz Cmwo7AQ4Y6m7OBVuFZq7oqNtqe02bQujq9Mp++cQV9VlMgNtH2tpdS48eZ7A2ZF7K38b vDIy9LFN2lOeB2SFc5ID7h5CtTCOKQM0Q56TmWBrwryFTJkHoprWmHCX5+OPjSqIxprK C+6LZVkxVsESJxDr4yT3bU33wxMmoSQUJE5HhfXY0ZsyiLTcPuUlMLFBILjjasyLIoBg Vz8fVuqRDoXE4bOPP9fe9I8uScXEaOVNAgpG1d3+38yxMP4R+tFkJcjZD/0aq4nWBhLz jnQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o2-20020a170906768200b009a9fbeb1538si9345458ejm.975.2023.09.12.21.02.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E08F93839389 for ; Wed, 13 Sep 2023 03:42:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 67CE53830B4C for ; Wed, 13 Sep 2023 03:39:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67CE53830B4C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxpPDqLgFlVDEmAA--.8588S3; Wed, 13 Sep 2023 11:39:22 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S11; Wed, 13 Sep 2023 11:39:21 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 07/22] LoongArch: Add tests for ASX vector xvand/xvandi/xvandn/xvor/xvori/ xvnor/xvnori/xvxor/xvxori instructions. Date: Wed, 13 Sep 2023 11:38:44 +0800 Message-Id: <20230913033859.6734-8-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S11 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBMwAAsh X-Coremail-Antispam: 1Uk129KBjv_XoW7XFy5XrW8Kr4rp5X_tw13GrX_JF1UJFWvgF sa9r1kXr1UZF98Wr17GwnFvF1UCFnYq3WSyw4kA3s8AF12gw17tw1UurnxAFyDu34UGrs8 Gry8KosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCT nIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJT RUUUbckYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr 0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28E F7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr 1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j 6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F4 0EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW3AVW8Xw1lYx0Ex4A2jsIE14v2 6F4j6r4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_tr0E3s1lIxAIcVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwCI42IY6xAI w20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jYxRhUUUUU= X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893532828656786 X-GMAIL-MSGID: 1776893532828656786 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvand.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvandi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvandn.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvnor.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvnori.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvor.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvori.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvorn.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvxor.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvxori.c: New test. --- .../loongarch/vector/lasx/lasx-xvand.c | 155 +++++++++++ .../loongarch/vector/lasx/lasx-xvandi.c | 196 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvandn.c | 125 +++++++++ .../loongarch/vector/lasx/lasx-xvnor.c | 170 ++++++++++++ .../loongarch/vector/lasx/lasx-xvnori.c | 152 +++++++++++ .../loongarch/vector/lasx/lasx-xvor.c | 215 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvori.c | 141 ++++++++++ .../loongarch/vector/lasx/lasx-xvorn.c | 245 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvxor.c | 185 +++++++++++++ .../loongarch/vector/lasx/lasx-xvxori.c | 163 ++++++++++++ 10 files changed, 1747 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvand.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandn.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnor.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnori.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvor.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvori.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvorn.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxor.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxori.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvand.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvand.c new file mode 100644 index 00000000000..e485786dd3b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvand.c @@ -0,0 +1,155 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[0]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfefee00000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfefee00000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0xfefee00000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfefee00000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000001c; + __m256i_out = __lasx_xvand_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandi.c new file mode 100644 index 00000000000..26cddc53a49 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandi.c @@ -0,0 +1,196 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0xe2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000505; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256i_op0[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffff8d9ffa7103d; + *((unsigned long *)&__m256i_result[3]) = 0x001151510a431048; + *((unsigned long *)&__m256i_result[2]) = 0x5b0b08425b09011a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x5b5b58595b031019; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x5b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op0[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op0[1]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op0[0]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[3]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[1]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[0]) = 0x0400040004000400; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x2d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff900000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff900000003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x3f3f3f3900000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x3f3f3f3900000003; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[2]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[1]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[0]) = 0xbabababababababa; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0xba); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_result[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[2]) = 0x4000404040004040; + *((unsigned long *)&__m256i_result[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[0]) = 0x4000404040004040; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x40); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff31; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x5e5e5e5e5e5e5e1c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x5e5e5e5e5e5e5e10; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x5e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x86); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7f70000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x7f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0xa3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0x98); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0xd9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandi_b (__m256i_op0, 0xcc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandn.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandn.c new file mode 100644 index 00000000000..bc3590c210e --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvandn.c @@ -0,0 +1,125 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x1828f0e09bad7249; + *((unsigned long *)&__m256i_op0[2]) = 0x07ffc1b723953cec; + *((unsigned long *)&__m256i_op0[1]) = 0x61f2e9b333aab104; + *((unsigned long *)&__m256i_op0[0]) = 0x6bf742aa0d7856a0; + *((unsigned long *)&__m256i_op1[3]) = 0x000019410000e69a; + *((unsigned long *)&__m256i_op1[2]) = 0xf259905a09c23be0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000883a00000f20; + *((unsigned long *)&__m256i_op1[0]) = 0x6d3c2d3a89167aeb; + *((unsigned long *)&__m256i_result[3]) = 0x0000090100008492; + *((unsigned long *)&__m256i_result[2]) = 0xf000104808420300; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000e20; + *((unsigned long *)&__m256i_result[0]) = 0x04082d108006284b; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffdfffdfffdfffd; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op0[2]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op0[1]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op0[0]) = 0x1020102010201020; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_result[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_result[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_result[0]) = 0xefdfefdfefdfefdf; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0fff0fff0fff0fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0fff0fff0fff0fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101000000010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvandn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnor.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnor.c new file mode 100644 index 00000000000..3a491ecabe5 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnor.c @@ -0,0 +1,170 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x40d74f979f99419f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0xbf28b0686066be60; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffff6ff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffff6ff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000900ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000900ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8888888808888888; + *((unsigned long *)&__m256i_op0[2]) = 0x0888888888888888; + *((unsigned long *)&__m256i_op0[1]) = 0x8888888808888888; + *((unsigned long *)&__m256i_op0[0]) = 0x0888888888888888; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x77777777f7777777; + *((unsigned long *)&__m256i_result[2]) = 0xf777777777777777; + *((unsigned long *)&__m256i_result[1]) = 0x77777777f7777777; + *((unsigned long *)&__m256i_result[0]) = 0xf777777777777777; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40ff40ff40ff40ff; + *((unsigned long *)&__m256i_op0[2]) = 0x407b40ff40ff40f1; + *((unsigned long *)&__m256i_op0[1]) = 0x40ff40ff40ff40ff; + *((unsigned long *)&__m256i_op0[0]) = 0x407b40ff40ff40f1; + *((unsigned long *)&__m256i_op1[3]) = 0x40ff40ff40ff40ff; + *((unsigned long *)&__m256i_op1[2]) = 0x407b40ff40ff40f1; + *((unsigned long *)&__m256i_op1[1]) = 0x40ff40ff40ff40ff; + *((unsigned long *)&__m256i_op1[0]) = 0x407b40ff40ff40f1; + *((unsigned long *)&__m256i_result[3]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256i_result[2]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256i_result[1]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256i_result[0]) = 0xbf84bf00bf00bf0e; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op1[3]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffbdff7fffffff; + *((unsigned long *)&__m256i_result[2]) = 0xa000a0009f80ffcc; + *((unsigned long *)&__m256i_result[1]) = 0x7fffbdff7fffffff; + *((unsigned long *)&__m256i_result[0]) = 0xa000a0009f80ffcc; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[3]) = 0x6f6f6f6f6f6f6f6f; + *((unsigned long *)&__m256i_result[2]) = 0x6f6f6f6f6f6f6f6f; + *((unsigned long *)&__m256i_result[1]) = 0x6f6f6f6f6f6f6f6f; + *((unsigned long *)&__m256i_result[0]) = 0x6f6f6f6f6f6f6f6f; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_result[3]) = 0xffff000300030000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffc000; + *((unsigned long *)&__m256i_result[1]) = 0xffff000300030000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffc000; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x800fffffffffffff; + __m256i_out = __lasx_xvnor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnori.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnori.c new file mode 100644 index 00000000000..995a34c180d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvnori.c @@ -0,0 +1,152 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_result[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_result[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_result[0]) = 0x45c5c5c545c5c5c5; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x3a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007773; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000003373; + *((unsigned long *)&__m256i_result[3]) = 0xbbbbbbbbbbbbbbbb; + *((unsigned long *)&__m256i_result[2]) = 0xbbbbbbbbbbbb8888; + *((unsigned long *)&__m256i_result[1]) = 0xbbbbbbbbbbbbbbbb; + *((unsigned long *)&__m256i_result[0]) = 0xbbbbbbbbbbbb8888; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x44); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[0]) = 0xf7f7f7f7f7f7f7f7; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xdededededededede; + *((unsigned long *)&__m256i_result[2]) = 0xdededededededede; + *((unsigned long *)&__m256i_result[1]) = 0xdededededededede; + *((unsigned long *)&__m256i_result[0]) = 0xdededededededede; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x21); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x33); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[0]) = 0x9090909090909090; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x6f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0xf7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x5858585858585858; + *((unsigned long *)&__m256i_result[2]) = 0x5858585858585858; + *((unsigned long *)&__m256i_result[1]) = 0x5858585858585858; + *((unsigned long *)&__m256i_result[0]) = 0x5858585858585858; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0xa7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_result[2]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_result[1]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_result[0]) = 0x3d3d3d3d3d3d3d3d; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0xc2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x9d9d9d9d9d9d9d8d; + *((unsigned long *)&__m256i_result[2]) = 0x9d9d9d9d9d9d9d9d; + *((unsigned long *)&__m256i_result[1]) = 0x9d9d9d9d9d9d9d8d; + *((unsigned long *)&__m256i_result[0]) = 0x9d9d9d9d9d9d9d9d; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x62); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[2]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[1]) = 0x2a2a2a2a2a2a2a2a; + *((unsigned long *)&__m256i_result[0]) = 0x2a2a2a2a2a2a2a2a; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0xd5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000081220000812c; + *((unsigned long *)&__m256i_op0[2]) = 0x0000812000008120; + *((unsigned long *)&__m256i_op0[1]) = 0x000081220000812c; + *((unsigned long *)&__m256i_op0[0]) = 0x0000812000008120; + *((unsigned long *)&__m256i_result[3]) = 0xe9e968c9e9e968c1; + *((unsigned long *)&__m256i_result[2]) = 0xe9e968c9e9e968c9; + *((unsigned long *)&__m256i_result[1]) = 0xe9e968c9e9e968c1; + *((unsigned long *)&__m256i_result[0]) = 0xe9e968c9e9e968c9; + __m256i_out = __lasx_xvnori_b (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvor.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvor.c new file mode 100644 index 00000000000..27eef710d61 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvor.c @@ -0,0 +1,215 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fff7fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_op1[0]) = 0x00007fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x7fff01fd7fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff7fff7fff; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000005e02; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000089; + *((unsigned long *)&__m256i_result[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_result[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000089; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fe37fff001fffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fe37fff001fffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff7fffffff; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x003f60041f636003; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_op1[2]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_op1[1]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_op1[0]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[3]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[2]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[1]) = 0xfff1fff1fff1fff1; + *((unsigned long *)&__m256i_result[0]) = 0xfff1fff1fff1fff1; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00ff00ff; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800080ff800080ff; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff80007fff0000; + __m256i_out = __lasx_xvor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvori.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvori.c new file mode 100644 index 00000000000..ee91af95f9f --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvori.c @@ -0,0 +1,141 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_result[2]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_result[1]) = 0x6c6c6c6c6c6c6c6c; + *((unsigned long *)&__m256i_result[0]) = 0x6c6c6c6c6c6c6c6c; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x6c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff00fffffff0; + *((unsigned long *)&__m256i_result[3]) = 0x9f9f9f9f9f9f9f9f; + *((unsigned long *)&__m256i_result[2]) = 0x9f9f9f9fffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x9f9f9f9f9f9f9f9f; + *((unsigned long *)&__m256i_result[0]) = 0xffffff9fffffffff; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x9f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x6a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffbdff3cffbdff44; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffff7effffff46; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffff7effffff46; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x42); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[2]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[1]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[0]) = 0xbfbfbfbfbfbfbfbf; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0xbf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x2c2c2c2c2c2c2c2c; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x2c2c2c2c2c2c2c2c; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x2c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x5252525252525252; + *((unsigned long *)&__m256i_result[2]) = 0x5252525252525252; + *((unsigned long *)&__m256i_result[1]) = 0x5252525252525252; + *((unsigned long *)&__m256i_result[0]) = 0x5252525252525252; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x52); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[1]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_result[3]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_result[2]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_result[1]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_result[0]) = 0x7fe363637fe36363; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x63); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefe3f800000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefe3f800000; + *((unsigned long *)&__m256i_result[3]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefeffe0e0e0; + *((unsigned long *)&__m256i_result[1]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefeffe0e0e0; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0xe0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_result[2]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_result[1]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_result[0]) = 0x6b6b6b6b6b6b6b6b; + __m256i_out = __lasx_xvori_b (__m256i_op0, 0x6b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvorn.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvorn.c new file mode 100644 index 00000000000..fa6cdff3121 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvorn.c @@ -0,0 +1,245 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xbf28b0686066be60; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x40d74f979f99419f; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x01480000052801a2; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffdcff64; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[2]) = 0x0002555500000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[0]) = 0x0002555500000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffdaaaaffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xfff9fffffffbffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffdaaaaffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000022; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000022; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000236200005111; + *((unsigned long *)&__m256i_op0[2]) = 0x0000175e0000490d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000236200005111; + *((unsigned long *)&__m256i_op0[0]) = 0x0000175e0000490d; + *((unsigned long *)&__m256i_op1[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op1[2]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_op1[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op1[0]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_result[3]) = 0xfffdfffffffdffff; + *((unsigned long *)&__m256i_result[2]) = 0xffddffdeffb5ff8d; + *((unsigned long *)&__m256i_result[1]) = 0xfffdfffffffdffff; + *((unsigned long *)&__m256i_result[0]) = 0xffddffdeffb5ff8d; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_op1[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_op1[0]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xff00feffff00fe81; + *((unsigned long *)&__m256i_result[2]) = 0xfe01fe51ff00ff40; + *((unsigned long *)&__m256i_result[1]) = 0xff00feffff00fe81; + *((unsigned long *)&__m256i_result[0]) = 0xfe01fe51ff00ff40; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0df9f8e; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0df9f8e; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe0df9f8f; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffe0df9f8f; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff7fffffff7fff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff7fffffff7fff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xdf80df80df80dfff; + *((unsigned long *)&__m256i_op1[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffdf80dfff; + *((unsigned long *)&__m256i_op1[0]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x498100814843ffe1; + *((unsigned long *)&__m256i_op0[2]) = 0x4981008168410001; + *((unsigned long *)&__m256i_op0[1]) = 0x498100814843ffe1; + *((unsigned long *)&__m256i_op0[0]) = 0x4981008168410001; + *((unsigned long *)&__m256i_op1[3]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff896099cbdbfff1; + *((unsigned long *)&__m256i_result[2]) = 0xc987ffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xff896099cbdbfff1; + *((unsigned long *)&__m256i_result[0]) = 0xc987ffffffffffff; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_op1[2]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffeffff97a1; + *((unsigned long *)&__m256i_op1[0]) = 0xffffdf5b000041b0; + *((unsigned long *)&__m256i_result[3]) = 0x000000010000685e; + *((unsigned long *)&__m256i_result[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_result[1]) = 0x000000010000685e; + *((unsigned long *)&__m256i_result[0]) = 0x000020a4ffffbe4f; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op1[3]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[1]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0xffbffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256i_result[1]) = 0xffbffffffffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffa; + __m256i_out = __lasx_xvorn_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxor.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxor.c new file mode 100644 index 00000000000..18b36c87306 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxor.c @@ -0,0 +1,185 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256i_op1[2]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256i_op1[1]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256i_result[2]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256i_result[1]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256i_result[0]) = 0x7ff0000000000000; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00c100c100c100c1; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00c100c100c100c1; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0100000001000100; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0100000001000100; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0100000001000100; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0100000001000100; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000f91; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000f91; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000f90; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[2]) = 0x6040190d20227a78; + *((unsigned long *)&__m256i_op0[1]) = 0x132feeabd2d33b38; + *((unsigned long *)&__m256i_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x9fe7fffffffff32e; + *((unsigned long *)&__m256i_result[2]) = 0x6040190ddfdd8587; + *((unsigned long *)&__m256i_result[1]) = 0xecd011542d2cc4c7; + *((unsigned long *)&__m256i_result[0]) = 0x6040190dffffffff; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000101000001010; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000101000001010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000101000001010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000101000001010; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvxor_v (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxori.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxori.c new file mode 100644 index 00000000000..8fd6298f723 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvxori.c @@ -0,0 +1,163 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000005e02; + *((unsigned long *)&__m256i_result[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[2]) = 0xc2c2c2c2c2c29cc0; + *((unsigned long *)&__m256i_result[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[0]) = 0xc2c2c2c2c2c29cc0; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0xc2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1616161616161616; + *((unsigned long *)&__m256i_op0[2]) = 0x161616167fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe16167f161616; + *((unsigned long *)&__m256i_op0[0]) = 0x161616167fffffff; + *((unsigned long *)&__m256i_result[3]) = 0xc7c7c7c7c7c7c7c7; + *((unsigned long *)&__m256i_result[2]) = 0xc7c7c7c7ae2e2e2e; + *((unsigned long *)&__m256i_result[1]) = 0xae2fc7c7aec7c7c7; + *((unsigned long *)&__m256i_result[0]) = 0xc7c7c7c7ae2e2e2e; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0xd1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x5353535353535353; + *((unsigned long *)&__m256i_result[2]) = 0x5353535353535353; + *((unsigned long *)&__m256i_result[1]) = 0x5353535353535353; + *((unsigned long *)&__m256i_result[0]) = 0x5353535353535353; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x53); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x6d6d6d6d6d6d6d6d; + *((unsigned long *)&__m256i_result[2]) = 0x6d6d6d6d6d6d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x6d6d6d6d6d6d6d6d; + *((unsigned long *)&__m256i_result[0]) = 0x6d6d6d6d6d6d6d6d; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x6d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7171717171717171; + *((unsigned long *)&__m256i_result[2]) = 0x8e8e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_result[1]) = 0x7171717171717171; + *((unsigned long *)&__m256i_result[0]) = 0x8e8e8e8e8e8e8e8e; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x71); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[2]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[0]) = 0x7575757575757575; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x75); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xa4a4a4a4a4a4a4a4; + *((unsigned long *)&__m256i_result[2]) = 0xa4a4a4a4a4a4a4a4; + *((unsigned long *)&__m256i_result[1]) = 0xa4a4a4a4a4a4a4a4; + *((unsigned long *)&__m256i_result[0]) = 0xa4a4a4a4a4a4a4a4; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0xa4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xa1a1a1a1a1a1a1a1; + *((unsigned long *)&__m256i_result[2]) = 0xa1a1a1a15e5e5e5e; + *((unsigned long *)&__m256i_result[1]) = 0xa1a1a1a1a1a1a1a1; + *((unsigned long *)&__m256i_result[0]) = 0xa1a1a1a15e5e5e5e; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0xa1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x8d8d72728d8d7272; + *((unsigned long *)&__m256i_result[2]) = 0x8d8d72728d8d8d8d; + *((unsigned long *)&__m256i_result[1]) = 0x8d8d72728d8d7272; + *((unsigned long *)&__m256i_result[0]) = 0x8d8d72728d8d8d8d; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x8d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xb3b3b3b3b3b3b3b3; + *((unsigned long *)&__m256i_result[2]) = 0xb3b3b3b3b3b3b3b3; + *((unsigned long *)&__m256i_result[1]) = 0xb3b3b3b3b3b3b3b3; + *((unsigned long *)&__m256i_result[0]) = 0xb3b3b3b3b3b3b3b3; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x4c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f0000ff807f81; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f0000ff807f81; + *((unsigned long *)&__m256i_result[3]) = 0x5d5d5d5d5d22a2a2; + *((unsigned long *)&__m256i_result[2]) = 0xa2dda2a25d22dd23; + *((unsigned long *)&__m256i_result[1]) = 0x5d5d5d5d5d22a2a2; + *((unsigned long *)&__m256i_result[0]) = 0xa2dda2a25d22dd23; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0xa2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256i_result[2]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256i_result[1]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256i_result[0]) = 0xd3d3d3d3d3d3d3d3; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0xd3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_result[3]) = 0x8282828282828282; + *((unsigned long *)&__m256i_result[2]) = 0x8768876887688769; + *((unsigned long *)&__m256i_result[1]) = 0x8282828282828282; + *((unsigned long *)&__m256i_result[0]) = 0x8768876887688769; + __m256i_out = __lasx_xvxori_b (__m256i_op0, 0x7d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:38:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138609 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp836183vqx; Tue, 12 Sep 2023 20:54:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqLYAnDpyXM0OEsXmIdII0ry30BxTtRgV7m8gZybbiO//8Fxv74n76eNLedbB3Rqw55GRp X-Received: by 2002:a17:906:74cf:b0:9a5:9305:8402 with SMTP id z15-20020a17090674cf00b009a593058402mr833105ejl.51.1694577298618; Tue, 12 Sep 2023 20:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577298; cv=none; d=google.com; s=arc-20160816; b=q2VfLKbSK1B0jGyNjfu3fPZPgbcvZTU3cAlSNgtB9jEeJnWwMyQF44BraEh5W6INfd 1UI72S/Z1sDei2YlaXgt1Nv4LRG+nqdr7CJGXsfW3HN0g+Ek0nfLJUmI1aFosKCUPtjP NpcFIaZsPytMFWGrDVxSmNvhLP7X795VrnQflUtk8U30X6TkG7EBLBc0+ZEPhnaPyV/S o4NXIwqlikViYSoarY2TOyq4pKIJ2eDLkwzjQ7+eq6U7prkuOkOPwhsgh/xvloQdNWmh X1iibAw1jtYtzlAIDZ7CJUHykDL3+2iZtFZN1WG/hzcE3Ze2vA87m2+8UeI965FEOdR/ ez0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=p81AdOdE8/ZOh0JLKBXJX+PEgokYE1vwIF7P2Y5XgsE=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=FpVWzomnFBZC5/4MgIl+WXMOW490xhRmtTQJzp5k1kTJITp3FM4BPwg2mONTBmSsFh mV/aqtYRhg845YY2pflXxBu8ajL80hN7UhbzRCuGEZQy+EIWoQSB79s/kjLxPZ/cXcJE BAQxkbaAh71wUe1uvnK9U4V4ViLzHTY5/olZlV8Gn1Txu5QgVBHBWMZGkT0MyN6FDfRn xmIZn8SZsn5N4jp2VNBqJ6NuwBCXfPWRabym4cLZDjI4RwDJmbXSlYhlrf+RAIRv+4fE 7FhirLAnAKJ6AAhckBkAVr65m603YLO7fh+HFxnd7UcSg0EjEuxw070zhQoQ/tRdD2+w QnNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id nb2-20020a1709071c8200b009ad84beca10si3053607ejc.765.2023.09.12.20.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2CA4538305E7 for ; Wed, 13 Sep 2023 03:40:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 0D5C5388216B for ; Wed, 13 Sep 2023 03:39:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0D5C5388216B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGit-00049x-EY for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:39:33 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8DxPOvsLgFlWTEmAA--.3155S3; Wed, 13 Sep 2023 11:39:24 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9zYLgFlsRACAA--.3526S12; Wed, 13 Sep 2023 11:39:23 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 08/22] LoongArch: Add tests for ASX vector xvsll/xvsrl instructions. Date: Wed, 13 Sep 2023 11:38:45 +0800 Message-Id: <20230913033859.6734-9-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033859.6734-1-chenxiaolong@loongson.cn> References: <20230913033859.6734-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxK9zYLgFlsRACAA--.3526S12 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBNQAAsn X-Coremail-Antispam: 1Uk129KBj97XoW8Zr48AFykuryrCF43GoXrpryftryDZoWUAr 1Uurs5Ca93Jw45Jr13Z34rJF18t3ZIyr17Aws0yFZrKw42q347AFn5tF1ktr1fJa47Zw1f Xr1UG348Xr4kl-sFpf9Il3svdjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8wcxFpf9Il3 svdxBIdaVrn0xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIY CTnIWjp_UUUYO7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcI k0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK 021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r 4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26Fy26r45twAv7VC2z280 aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20x vY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I 3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIx AIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF 0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z2 80aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8v4EtUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893085672230507 X-GMAIL-MSGID: 1776893085672230507 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvsll.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslli.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsllwil-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsllwil-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrl.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrli.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrln.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrlni.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrlr.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrlri.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrlrn.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrlrni.c: New test. --- .../loongarch/vector/lasx/lasx-xvsll.c | 425 +++++++++++ .../loongarch/vector/lasx/lasx-xvslli.c | 416 +++++++++++ .../loongarch/vector/lasx/lasx-xvsllwil-1.c | 339 +++++++++ .../loongarch/vector/lasx/lasx-xvsllwil-2.c | 350 +++++++++ .../loongarch/vector/lasx/lasx-xvsrl.c | 650 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsrli.c | 405 +++++++++++ .../loongarch/vector/lasx/lasx-xvsrln.c | 425 +++++++++++ .../loongarch/vector/lasx/lasx-xvsrlni.c | 680 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsrlr.c | 515 +++++++++++++ .../loongarch/vector/lasx/lasx-xvsrlri.c | 416 +++++++++++ .../loongarch/vector/lasx/lasx-xvsrlrn.c | 410 +++++++++++ .../loongarch/vector/lasx/lasx-xvsrlrni.c | 455 ++++++++++++ 12 files changed, 5486 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsll.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslli.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrl.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrli.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrln.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlni.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlr.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlri.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrn.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrni.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsll.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsll.c new file mode 100644 index 00000000000..7179e715cd3 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsll.c @@ -0,0 +1,425 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00001f41ffffbf00; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00001f41ffffbf00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffe0000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000fffefe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000fffefe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000808080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffcfa; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffcfa; + *((unsigned long *)&__m256i_result[1]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfff2f7bcfff2f7bd; + *((unsigned long *)&__m256i_op1[2]) = 0xfff2f93bfff2fff2; + *((unsigned long *)&__m256i_op1[1]) = 0xfff2f7bcfff2f7bd; + *((unsigned long *)&__m256i_op1[0]) = 0xfff2f93bfff2fff2; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffcf800fffcfffc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffcfffc; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff0e400; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x5980000000000000; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[0]) = 0x8080808080808080; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffe0000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001ff8000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001ff8000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsll_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff800000000000; + __m256i_out = __lasx_xvsll_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[2]) = 0xff00010001000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[0]) = 0xff00010001000100; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800000ff800000ff; + __m256i_out = __lasx_xvsll_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1400080008000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1400080008000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1400080008000000; + *((unsigned long *)&__m256i_op1[0]) = 0x1400080008000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsll_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslli.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslli.c new file mode 100644 index 00000000000..003e29b67ee --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslli.c @@ -0,0 +1,416 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x01fa022a01a401e5; + *((unsigned long *)&__m256i_op0[2]) = 0x030d03aa0079029b; + *((unsigned long *)&__m256i_op0[1]) = 0x024c01f901950261; + *((unsigned long *)&__m256i_op0[0]) = 0x008102c2008a029f; + *((unsigned long *)&__m256i_result[3]) = 0x54000000ca000000; + *((unsigned long *)&__m256i_result[2]) = 0x5400000036000000; + *((unsigned long *)&__m256i_result[1]) = 0xf2000000c2000000; + *((unsigned long *)&__m256i_result[0]) = 0x840000003e000000; + __m256i_out = __lasx_xvslli_w (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff1001100100000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010100000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfff1001100100000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010100000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfcc4004400400000; + *((unsigned long *)&__m256i_result[2]) = 0x0040400000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfcc4004400400000; + *((unsigned long *)&__m256i_result[0]) = 0x0040400000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffef000004ea; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_result[3]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_result[2]) = 0xffffffef000004ea; + *((unsigned long *)&__m256i_result[1]) = 0xffffffefffffffef; + *((unsigned long *)&__m256i_result[0]) = 0xffffffefffffffef; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffbf4; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_result[3]) = 0xf800f800f800c000; + *((unsigned long *)&__m256i_result[2]) = 0xf800f800f800a000; + *((unsigned long *)&__m256i_result[1]) = 0xf800f800f800e000; + *((unsigned long *)&__m256i_result[0]) = 0xf800f800f800e000; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffefefffffefe; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0100010001000000; + *((unsigned long *)&__m256i_result[0]) = 0x0100010001000000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xf000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xf000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xf000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xf000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_w (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1616161616161616; + *((unsigned long *)&__m256i_op0[2]) = 0x161616167fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe16167f161616; + *((unsigned long *)&__m256i_op0[0]) = 0x161616167fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x2c2c2c2c2c2c2c2c; + *((unsigned long *)&__m256i_result[2]) = 0x2c2c2c2cfefefefe; + *((unsigned long *)&__m256i_result[1]) = 0xfefc2c2cfe2c2c2c; + *((unsigned long *)&__m256i_result[0]) = 0x2c2c2c2cfefefefe; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xf8f8f8f8f8f8f8f8; + *((unsigned long *)&__m256i_result[2]) = 0xf8f8f8f8f8f8f8f8; + *((unsigned long *)&__m256i_result[1]) = 0xf8f8f8f8f8f8f8f8; + *((unsigned long *)&__m256i_result[0]) = 0xf8f8f8f8f8f8f8f8; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1f60000000c00000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1f60000000c00000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x60000000c0000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x60000000c0000000; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff80ff80ff80ff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff80ff80ff80ff80; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[2]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[0]) = 0x0000008000000080; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00080008000801ff; + *((unsigned long *)&__m256i_op0[2]) = 0x0008000800080008; + *((unsigned long *)&__m256i_op0[1]) = 0x00080008000801ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0008000800080008; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_result[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_result[0]) = 0xf0f0f0f0f0f0f0f0; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_w (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_w (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x03f0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x03f0000000000000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x34); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_w (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffff80000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffff80000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefefefefefe; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[2]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[1]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[0]) = 0xf800f800f800f800; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x0404000004040000; + *((unsigned long *)&__m256i_result[2]) = 0x0404000004040000; + *((unsigned long *)&__m256i_result[1]) = 0x0404000004040000; + *((unsigned long *)&__m256i_result[0]) = 0x0404000004040000; + __m256i_out = __lasx_xvslli_w (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000c040c0; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000c040c0; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff000000; + __m256i_out = __lasx_xvslli_d (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslli_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-1.c new file mode 100644 index 00000000000..ef3a47da508 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-1.c @@ -0,0 +1,339 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffe0ffe0ffe0ffe0; + *((unsigned long *)&__m256i_result[2]) = 0xffe0ffe0ffe0ffe0; + *((unsigned long *)&__m256i_result[1]) = 0xffe0ffe0ffe0ffe0; + *((unsigned long *)&__m256i_result[0]) = 0xffe0ffe0ffe0ffe0; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000003f0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000003f0; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[3]) = 0x0218ff78fc38fc38; + *((unsigned long *)&__m256i_result[2]) = 0xfc00000000000048; + *((unsigned long *)&__m256i_result[1]) = 0x0218ff78fc38fc38; + *((unsigned long *)&__m256i_result[0]) = 0xfc00000000000048; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff0fff0fff0fc00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff0fff0fff0fc00; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_h_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfc00000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffc00fffffc00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffc00fffffc00; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0040000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[1]) = 0x0040000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000a000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000a000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[2]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[1]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[0]) = 0x0000400000004000; + __m256i_out = __lasx_xvsllwil_w_h (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffc00; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffc00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffc00; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffc00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffbf4; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffc; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffbff1ffffbff1; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffbff1ffffbff1; + *((unsigned long *)&__m256i_result[3]) = 0xfffffeffc4000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffeffc4000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffeffc4000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffeffc4000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[0]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_result[3]) = 0xfffffe05fc47b400; + *((unsigned long *)&__m256i_result[2]) = 0xfffffe06003fc000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffe05fc47b400; + *((unsigned long *)&__m256i_result[0]) = 0xfffffe06003fc000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000feccfecc; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000feccfecc; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fe363637fe36364; + *((unsigned long *)&__m256i_op0[1]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fe363637fe36364; + *((unsigned long *)&__m256i_result[3]) = 0x00001ff8d8d8c000; + *((unsigned long *)&__m256i_result[2]) = 0x00001ff8d8d90000; + *((unsigned long *)&__m256i_result[1]) = 0x00001ff8d8d8c000; + *((unsigned long *)&__m256i_result[0]) = 0x00001ff8d8d90000; + __m256i_out = __lasx_xvsllwil_d_w (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-2.c new file mode 100644 index 00000000000..76651af6334 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsllwil-2.c @@ -0,0 +1,350 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x7f80780000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[1]) = 0x7f80780000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000004000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x03fc03fc03f803f8; + *((unsigned long *)&__m256i_result[2]) = 0x03fc03fc03f803f8; + *((unsigned long *)&__m256i_result[1]) = 0x03fc03fc03f803f8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01fe01fe01fe01fe; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x01fc03e000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x01fc03e000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00fe01e000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00fe01e000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op0[2]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_op0[1]) = 0x07fee332883f86b0; + *((unsigned long *)&__m256i_op0[0]) = 0x07fed3c8f7ad28d0; + *((unsigned long *)&__m256i_result[3]) = 0x01c03f8034c03200; + *((unsigned long *)&__m256i_result[2]) = 0x3dc02b400a003400; + *((unsigned long *)&__m256i_result[1]) = 0x01c03f8034c03200; + *((unsigned long *)&__m256i_result[0]) = 0x3dc02b400a003400; + __m256i_out = __lasx_xvsllwil_hu_bu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000054; + *((unsigned long *)&__m256i_op0[2]) = 0x00aa000000ac00fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000054; + *((unsigned long *)&__m256i_op0[0]) = 0x00aa000000ac00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0002a80000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0002b0000003f800; + *((unsigned long *)&__m256i_result[1]) = 0x0002a80000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0002b0000003f800; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256i_op0[2]) = 0x41d8585858400000; + *((unsigned long *)&__m256i_op0[1]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256i_op0[0]) = 0x41d8585858400000; + *((unsigned long *)&__m256i_result[3]) = 0x1076000016160000; + *((unsigned long *)&__m256i_result[2]) = 0x1610000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1076000016160000; + *((unsigned long *)&__m256i_result[0]) = 0x1610000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[1]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000008000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_wu_hu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007f00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x311d73ad3ec2064a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000001fc000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000c475ceb40000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fb0819280000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff0000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0004040404000000; + *((unsigned long *)&__m256i_result[2]) = 0x0004040404000000; + *((unsigned long *)&__m256i_result[1]) = 0x0004040404000000; + *((unsigned long *)&__m256i_result[0]) = 0x0004040404000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000007c8; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_result[3]) = 0x0000000086000000; + *((unsigned long *)&__m256i_result[2]) = 0x00040ff288000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000086000000; + *((unsigned long *)&__m256i_result[0]) = 0x00040ff288000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000001ffe00000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000001ffe00000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x80000000ffc8ff88; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x80000000ffc8ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001ff91ff100000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001ff91ff100000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000008c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000008c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000001180000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000001180000000; + __m256i_out = __lasx_xvsllwil_du_wu (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrl.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrl.c new file mode 100644 index 00000000000..1d591c35c9b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrl.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000017ffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0x000000017ffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0x000000017ffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0x000000017ffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_op0[2]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_op0[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_op0[0]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_result[2]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_result[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_result[0]) = 0x6580668200fe0002; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_op0[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_op0[0]) = 0xff874dc687870000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_result[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_result[1]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_result[0]) = 0xff874dc687870000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000000010000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xff00ffffff00ffff; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000008000000080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000008000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000008000000080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000200; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000080000000800; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffff70156; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffff70156; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffff70156; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffff70156; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_result[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff7fff0000; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001010800; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001010800; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[1]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[0]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op1[3]) = 0x000008e4bfc4eff0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001ffee10000; + *((unsigned long *)&__m256i_op1[1]) = 0x000008e4bfc4eff0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001ffee10000; + *((unsigned long *)&__m256i_result[3]) = 0x0d0d0d000000000d; + *((unsigned long *)&__m256i_result[2]) = 0x0d0d0d0000060d0d; + *((unsigned long *)&__m256i_result[1]) = 0x0d0d0d000000000d; + *((unsigned long *)&__m256i_result[0]) = 0x0d0d0d0000060d0d; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op1[3]) = 0x000408080c111414; + *((unsigned long *)&__m256i_op1[2]) = 0x000408080c111414; + *((unsigned long *)&__m256i_op1[1]) = 0x000408080c111414; + *((unsigned long *)&__m256i_op1[0]) = 0x000408080c111414; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000010; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffff03ffffff07; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff03ffffff07; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op1[2]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x80008000fff98000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000040004000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000040004000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000040404000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000040404000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000040004000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000040004000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffefefefe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000040404040; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfe01fe01fd02fd02; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op0[1]) = 0xfe01fe01fd02fd02; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010100; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000405; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010100; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000405; + *((unsigned long *)&__m256i_result[3]) = 0xfe01fe017e81fd02; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fc001fe; + *((unsigned long *)&__m256i_result[1]) = 0xfe01fe017e81fd02; + *((unsigned long *)&__m256i_result[0]) = 0x000000003fc001fe; + __m256i_out = __lasx_xvsrl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op1[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_op1[1]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op1[0]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_result[3]) = 0x00000003ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000003ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0001ffffffffffff; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_op1[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000001ffff8000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000001ffff8000; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op0[2]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op0[1]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op0[0]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[2]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[1]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[0]) = 0xfd02fd02fd02fd02; + __m256i_out = __lasx_xvsrl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0005fff9; + *((unsigned long *)&__m256i_op0[2]) = 0x04f004f204f204f0; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0005fff9; + *((unsigned long *)&__m256i_op0[0]) = 0x04f004f204f204f0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000002780; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000002780; + __m256i_out = __lasx_xvsrl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrli.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrli.c new file mode 100644 index 00000000000..e8696701fc8 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrli.c @@ -0,0 +1,405 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000050005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1010101110101011; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1111111211111112; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000004444; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x2e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x3e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffcc8000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007dfdff4b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x003ffff300000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000001f7f7f; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9240f24a84b18025; + *((unsigned long *)&__m256i_op0[2]) = 0x9240f24a84b18025; + *((unsigned long *)&__m256i_op0[1]) = 0xb2c0b341807f8006; + *((unsigned long *)&__m256i_op0[0]) = 0xb2c0b341807f8006; + *((unsigned long *)&__m256i_result[3]) = 0x009200f200840080; + *((unsigned long *)&__m256i_result[2]) = 0x009200f200840080; + *((unsigned long *)&__m256i_result[1]) = 0x00b200b300800080; + *((unsigned long *)&__m256i_result[0]) = 0x00b200b300800080; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000010000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001ffff0001ffff; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffcb423a587053; + *((unsigned long *)&__m256i_op0[2]) = 0x6d46f43e71141b81; + *((unsigned long *)&__m256i_op0[1]) = 0xffffcb423a584528; + *((unsigned long *)&__m256i_op0[0]) = 0x9bdf36c8d78158a1; + *((unsigned long *)&__m256i_result[3]) = 0x000000000007fffe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000036a37; + *((unsigned long *)&__m256i_result[1]) = 0x000000000007fffe; + *((unsigned long *)&__m256i_result[0]) = 0x000000000004def9; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x2d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0889088908810881; + *((unsigned long *)&__m256i_op0[2]) = 0x0081010000810100; + *((unsigned long *)&__m256i_op0[1]) = 0x0889088900810088; + *((unsigned long *)&__m256i_op0[0]) = 0x0081010000810100; + *((unsigned long *)&__m256i_result[3]) = 0x0004448444844084; + *((unsigned long *)&__m256i_result[2]) = 0x0000408080004080; + *((unsigned long *)&__m256i_result[1]) = 0x0004448444804080; + *((unsigned long *)&__m256i_result[0]) = 0x0000408080004080; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000001d001d; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000001d001d; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000030003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000030003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x22); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000077fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000307; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000014402080144; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000a0010400a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000a0010400a; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000598; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000598; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f807f80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f807f80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff00; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000013; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0001ffff0001ffff; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_d (__m256i_op0, 0x23); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3fffffff3fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x3fffffff3fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_result[2]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_result[1]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_result[0]) = 0x00003fff00003fff; + __m256i_out = __lasx_xvsrli_w (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_result[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[2]) = 0x3fff3fff3fff3fc4; + *((unsigned long *)&__m256i_result[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[0]) = 0x3fff3fff3fff3fc4; + __m256i_out = __lasx_xvsrli_h (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrln.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrln.c new file mode 100644 index 00000000000..d549910517d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrln.c @@ -0,0 +1,425 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000003868686a20; + *((unsigned long *)&__m256i_op0[2]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000003868686a20; + *((unsigned long *)&__m256i_op0[0]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00386a20b8aee1d8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00386a20b8aee1d8; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2020000020200000; + *((unsigned long *)&__m256i_op1[2]) = 0x2020000020200000; + *((unsigned long *)&__m256i_op1[1]) = 0x0008000001010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0101000001010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x88888a6d0962002e; + *((unsigned long *)&__m256i_op0[2]) = 0xdb8a3109fe0f0020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000007fff01fffb; + *((unsigned long *)&__m256i_op0[0]) = 0xdb8e20990cce025a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xff01ff3400000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff83ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0962002efe0f0020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff01fffb8667012d; + __m256i_out = __lasx_xvsrln_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fffeffeb; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fb7afb62; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fffeffeb; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fb7afb62; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffeffebfb7afb62; + __m256i_out = __lasx_xvsrln_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000010000000a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_op0[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_op0[0]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000010000000a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff017e6b803fc0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff017e6b803fc0; + __m256i_out = __lasx_xvsrln_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000781; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000078100000064; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xa1a1a1a1a1a1a1a1; + *((unsigned long *)&__m256i_op0[2]) = 0xa1a1a1a15e5e5e5e; + *((unsigned long *)&__m256i_op0[1]) = 0xa1a1a1a1a1a1a1a1; + *((unsigned long *)&__m256i_op0[0]) = 0xa1a1a1a15e5e5e5e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xa1a1a1a1a1a15e5e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xa1a1a1a1a1a15e5e; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0003800400038004; + *((unsigned long *)&__m256i_op1[2]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_op1[1]) = 0x0003800400038004; + *((unsigned long *)&__m256i_op1[0]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0080000000800000; + *((unsigned long *)&__m256i_op1[2]) = 0x0080000000800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000000800000; + *((unsigned long *)&__m256i_op1[0]) = 0x0080000000800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0404040404040404; + *((unsigned long *)&__m256i_op1[2]) = 0x0404040404040404; + *((unsigned long *)&__m256i_op1[1]) = 0x0404040404040404; + *((unsigned long *)&__m256i_op1[0]) = 0x0404040404040404; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000800400010006d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000027; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000027; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrln_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op1[3]) = 0x1716151417161514; + *((unsigned long *)&__m256i_op1[2]) = 0x1716151417161514; + *((unsigned long *)&__m256i_op1[1]) = 0x1716151417161514; + *((unsigned long *)&__m256i_op1[0]) = 0x1716151417161514; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0fff0fff0fff0fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0fff0fff0fff0fff; + __m256i_out = __lasx_xvsrln_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlni.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlni.c new file mode 100644 index 00000000000..0fb6483cfcc --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlni.c @@ -0,0 +1,680 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffc500000002d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000034; + *((unsigned long *)&__m256i_op1[3]) = 0xbfa3e127c147721f; + *((unsigned long *)&__m256i_op1[2]) = 0x1729c173836edfbe; + *((unsigned long *)&__m256i_op1[1]) = 0xdf91f111808007fb; + *((unsigned long *)&__m256i_op1[0]) = 0x5ff1f90ffffbf30f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff280016; + *((unsigned long *)&__m256i_result[2]) = 0xd193a30f94b9b7df; + *((unsigned long *)&__m256i_result[1]) = 0x000000000001001a; + *((unsigned long *)&__m256i_result[0]) = 0xc88840fdf887fd87; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffff00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000f; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffc5556aaa8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffc5556aaa8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x555555553f800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000007070205; + *((unsigned long *)&__m256i_result[2]) = 0x0000000002020100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000007070205; + *((unsigned long *)&__m256i_result[0]) = 0x0000000002020100; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000003ff000003ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x36); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x73); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffe01fe01f; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe01fe01f; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffe01fe01f; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffe01fe01f; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fe01020b0001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000fe01020b0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0fff0fff00000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0fff0fff00000020; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xd207e90001fb16ef; + *((unsigned long *)&__m256i_op0[2]) = 0xc8eab25698f97e90; + *((unsigned long *)&__m256i_op0[1]) = 0xd207e90001fb16ef; + *((unsigned long *)&__m256i_op0[0]) = 0xc8eab25698f97e90; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x01fb16ef98f97e90; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x01fb16ef98f97e90; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_op1[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffa2078fffa2074; + *((unsigned long *)&__m256i_op1[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffa2078fffa2074; + *((unsigned long *)&__m256i_result[3]) = 0x01ff01ff01ff01ff; + *((unsigned long *)&__m256i_result[2]) = 0x01ff01ff01ff01ff; + *((unsigned long *)&__m256i_result[1]) = 0x01ff01ff01ff01ff; + *((unsigned long *)&__m256i_result[0]) = 0x01ff01ff01ff01ff; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000401000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003e6c0000cb7a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000401000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003e6c0000cb7a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x40000000b000032d; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x40000000b000032d; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_result[2]) = 0x01fc03fc01fc03fc; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_result[0]) = 0x01fc03fc01fc03fc; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x3e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ef0120; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ef0120; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000e9ece9ec; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff0120; + *((unsigned long *)&__m256i_result[2]) = 0x0000e9ec0000e9ec; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff0120; + *((unsigned long *)&__m256i_result[0]) = 0x0000e9ec0000e9ec; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffdd001dffe00020; + *((unsigned long *)&__m256i_op0[2]) = 0xffdd001dffe00031; + *((unsigned long *)&__m256i_op0[1]) = 0xffdd001dffe00020; + *((unsigned long *)&__m256i_op0[0]) = 0xffdd001dffe00031; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3ff73ff83ff73ff8; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x3ff73ff83ff73ff8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op0[1]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0003000300030003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0003000300030003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0003000300030003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0003000300030003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[3]) = 0x0600060000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0600060000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0001fffe00010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_result[2]) = 0x000000000007fff8; + *((unsigned long *)&__m256i_result[1]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_result[0]) = 0x000000000007fff8; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_op0[1]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1e0000001e002000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1e0000001e002000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x27); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff3225; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff3225; + *((unsigned long *)&__m256i_op1[3]) = 0x2221201f1e1d1c1b; + *((unsigned long *)&__m256i_op1[2]) = 0x1a19181716151413; + *((unsigned long *)&__m256i_op1[1]) = 0x2221201f1e1d1c1b; + *((unsigned long *)&__m256i_op1[0]) = 0x1a19181716151413; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000004442403; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000004442403; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x63); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fef0000ffff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fef0000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xde00fe0000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000fe010000fe01; + *((unsigned long *)&__m256i_result[1]) = 0xde00fe0000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fe010000fe01; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000007070707; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff07070707; + *((unsigned long *)&__m256i_result[1]) = 0x0000000007070707; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff07070707; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x03ff000003ff03ff; + *((unsigned long *)&__m256i_result[2]) = 0x03ff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x03ff000003ff03ff; + *((unsigned long *)&__m256i_result[0]) = 0x03ff000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000700000007; + *((unsigned long *)&__m256i_result[2]) = 0x0007ffff0007ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000700000007; + *((unsigned long *)&__m256i_result[0]) = 0x0007ffff0007ffff; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x2d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x66); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x03802fc000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x03802fc000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x5a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x080808000828082f; + *((unsigned long *)&__m256i_op0[2]) = 0x0808080008280820; + *((unsigned long *)&__m256i_op0[1]) = 0x080808000828082f; + *((unsigned long *)&__m256i_op0[0]) = 0x0808080008280820; + *((unsigned long *)&__m256i_op1[3]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op1[2]) = 0x132feea900000000; + *((unsigned long *)&__m256i_op1[1]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op1[0]) = 0x132feea900000000; + *((unsigned long *)&__m256i_result[3]) = 0x00828082f0808080; + *((unsigned long *)&__m256i_result[2]) = 0xf18181818132feea; + *((unsigned long *)&__m256i_result[1]) = 0x00828082f0808080; + *((unsigned long *)&__m256i_result[0]) = 0xf18181818132feea; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x24); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000200000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000200000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_w_d (__m256i_op0, __m256i_op1, 0x39); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x43); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfe01fe01fc01fc01; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op0[1]) = 0xfe01fe01fc01fc01; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfc01000000003fc0; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfc01000000003fc0; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000001fff0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000feff0001ffb8; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000001fff0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000feff0001ffb8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_h_w (__m256i_op0, __m256i_op1, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000126000200; + *((unsigned long *)&__m256i_op0[2]) = 0x2555205ea7bc4020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000126000200; + *((unsigned long *)&__m256i_op0[0]) = 0x2555205ea7bc4020; + *((unsigned long *)&__m256i_op1[3]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op1[2]) = 0x10ffffff10000006; + *((unsigned long *)&__m256i_op1[1]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op1[0]) = 0x10ffffff10000006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000004980008; + *((unsigned long *)&__m256i_result[2]) = 0x003ffffffc400000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000004980008; + *((unsigned long *)&__m256i_result[0]) = 0x003ffffffc400000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x46); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00f0000000f00010; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0ff00fff0ff10; + *((unsigned long *)&__m256i_op0[1]) = 0x00f0000000f00010; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0ff00fff0ff10; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0087ff87f807ff87; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0087ff87f807ff87; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x68); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_b_h (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x50); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000050005; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[3]) = 0xf007fe76f008fe19; + *((unsigned long *)&__m256i_op1[2]) = 0xf08aff01f07cc291; + *((unsigned long *)&__m256i_op1[1]) = 0xf007fe76f008fe19; + *((unsigned long *)&__m256i_op1[0]) = 0xf08aff01f07cc291; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000001400; + *((unsigned long *)&__m256i_result[2]) = 0x0000000003c01ff9; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000003c01ff9; + __m256i_out = __lasx_xvsrlni_d_q (__m256i_op0, __m256i_op1, 0x66); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlr.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlr.c new file mode 100644 index 00000000000..22e62a3e70a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlr.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x40d74f979f99419f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x40d74f979f99419f; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff8080000004000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000080000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff8080000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000000; + __m256i_out = __lasx_xvsrlr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff0000000000080; + *((unsigned long *)&__m256i_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff0000000000080; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7ff0000000000000; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvsrlr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001020202; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001020202; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000002222; + *((unsigned long *)&__m256i_op1[2]) = 0x00003ddd80007bbb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000002222; + *((unsigned long *)&__m256i_op1[0]) = 0x00003ddd80007bbb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff800000000000; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_op0[2]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_op0[1]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_op0[0]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_op1[3]) = 0x0ea85f60984a8555; + *((unsigned long *)&__m256i_op1[2]) = 0x00a21ef3246995f3; + *((unsigned long *)&__m256i_op1[1]) = 0x1189ce8000fa14ed; + *((unsigned long *)&__m256i_op1[0]) = 0x0e459089665f40f3; + *((unsigned long *)&__m256i_result[3]) = 0x000100f800000008; + *((unsigned long *)&__m256i_result[2]) = 0x0020001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x000000f800000000; + *((unsigned long *)&__m256i_result[0]) = 0x0004000000000010; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000008000; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7f7f000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x7f7f000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100010001; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0100000001000100; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0100000001000100; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000064; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000008; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000008; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffff80; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffff80; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000430207f944; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000038000000268; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000038000000268; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff010ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffff010ff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000201; + *((unsigned long *)&__m256i_result[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000201; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000010006d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000010006d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000800400010006d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000800400010006d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff01fb0408; + *((unsigned long *)&__m256i_op0[2]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff01fb0408; + *((unsigned long *)&__m256i_op0[0]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0xf2b180c9fc1fefdc; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0xff1cff1cff1c3fc7; + *((unsigned long *)&__m256i_result[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[1]) = 0xff1cff1cff1c3fc7; + *((unsigned long *)&__m256i_result[0]) = 0xff1cff1cff1cff1c; + __m256i_out = __lasx_xvsrlr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op0[2]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op0[1]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op0[0]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op1[3]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op1[2]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op1[1]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_op1[0]) = 0x6b6b6b6b6b6b6b6b; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvsrlr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff01ff01ff01f010; + *((unsigned long *)&__m256i_op1[2]) = 0xff01ff01ff01f010; + *((unsigned long *)&__m256i_op1[1]) = 0xff01ff01ff01f010; + *((unsigned long *)&__m256i_op1[0]) = 0xff01ff01ff01f010; + *((unsigned long *)&__m256i_result[3]) = 0x000078780000f0f1; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000078780000f0f1; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffc00040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffc00040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1080108010060002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1080108010060002; + __m256i_out = __lasx_xvsrlr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlri.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlri.c new file mode 100644 index 00000000000..71f770aff8a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlri.c @@ -0,0 +1,416 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x33); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x28); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000505; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff0002fffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0002ff7e8286; + *((unsigned long *)&__m256i_op0[1]) = 0xffff0002fffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0002ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0202000002020202; + *((unsigned long *)&__m256i_result[2]) = 0x0202000002010101; + *((unsigned long *)&__m256i_result[1]) = 0x0202000002020202; + *((unsigned long *)&__m256i_result[0]) = 0x0202000002020000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_op0[2]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_op0[1]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_op0[0]) = 0xe1616161e1614e60; + *((unsigned long *)&__m256i_result[3]) = 0x0703030307030203; + *((unsigned long *)&__m256i_result[2]) = 0x0703030307030203; + *((unsigned long *)&__m256i_result[1]) = 0x0703030307030203; + *((unsigned long *)&__m256i_result[0]) = 0x0703030307030203; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f3fc6c68787; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f3f87870000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003f3fc6c68787; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003f3f87870000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010183f95466; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x01010101d58efe94; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000101000083f95; + *((unsigned long *)&__m256i_result[2]) = 0x0000101000001010; + *((unsigned long *)&__m256i_result[1]) = 0x00001010000d58f0; + *((unsigned long *)&__m256i_result[0]) = 0x0000101000001010; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x23); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0010002000100020; + *((unsigned long *)&__m256i_result[2]) = 0x0010002000100020; + *((unsigned long *)&__m256i_result[1]) = 0x0010002000100020; + *((unsigned long *)&__m256i_result[0]) = 0x0010002000100020; + __m256i_out = __lasx_xvsrlri_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[2]) = 0x0020000000200000; + *((unsigned long *)&__m256i_result[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[0]) = 0x0020000000200000; + __m256i_out = __lasx_xvsrlri_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000040000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000040000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000020000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000020000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x39); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000040000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000040000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000040000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000040000000000; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op0[2]) = 0x132feea900000000; + *((unsigned long *)&__m256i_op0[1]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op0[0]) = 0x132feea900000000; + *((unsigned long *)&__m256i_result[3]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_result[2]) = 0x132feea900000000; + *((unsigned long *)&__m256i_result[1]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_result[0]) = 0x132feea900000000; + __m256i_out = __lasx_xvsrlri_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000038000000268; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000038000000268; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x000001200000011a; + *((unsigned long *)&__m256i_result[2]) = 0x2040204020402040; + *((unsigned long *)&__m256i_result[1]) = 0x000001200000011a; + *((unsigned long *)&__m256i_result[0]) = 0x2040204020402040; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff81001dff9dff9e; + *((unsigned long *)&__m256i_op0[2]) = 0xff81001dff9d003b; + *((unsigned long *)&__m256i_op0[1]) = 0xff81001dff9dff9e; + *((unsigned long *)&__m256i_op0[0]) = 0xff81001dff9d003b; + *((unsigned long *)&__m256i_result[3]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_w (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fffa003e; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffb009c; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fffa003e; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffb009c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvsrlri_d (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffe00000001; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0020004000400040; + *((unsigned long *)&__m256i_result[2]) = 0x0020004000400040; + *((unsigned long *)&__m256i_result[1]) = 0x0020004000400040; + *((unsigned long *)&__m256i_result[0]) = 0x0020004000400040; + __m256i_out = __lasx_xvsrlri_h (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000800000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000800000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000800000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000800000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffbfffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000800000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffbfffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000800000; + *((unsigned long *)&__m256i_result[3]) = 0x0102020202010202; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0102020202010202; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvsrlri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000006; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000006; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0008000000000000; + __m256i_out = __lasx_xvsrlri_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrn.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrn.c new file mode 100644 index 00000000000..cbc1de37178 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrn.c @@ -0,0 +1,410 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffff328dfff; + *((unsigned long *)&__m256i_op0[0]) = 0x6651bfff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0202020201010000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrlrn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000050005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000505; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256i_op1[2]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256i_op1[1]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256i_op1[0]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op0[2]) = 0xff820002ff820002; + *((unsigned long *)&__m256i_op0[1]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op0[0]) = 0xff820002ff820002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00020002ff820002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00020002ff820002; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00020421d7d41124; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00020421d7d41124; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff000200000000; + *((unsigned long *)&__m256i_op0[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff000200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff020000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff020000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001fe01fe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001fe01fe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01fe01fe0000ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01fe01fe0000ff01; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op0[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op0[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op0[0]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xf9f9f9f900000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xf9f9f9f900000002; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00043fff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00043fff00000000; + __m256i_out = __lasx_xvsrlrn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xff1cff1b00e300e4; + *((unsigned long *)&__m256i_op1[2]) = 0xff1cff1b00e300e4; + *((unsigned long *)&__m256i_op1[1]) = 0xff1cff1b00e300e4; + *((unsigned long *)&__m256i_op1[0]) = 0xff1cff1b00e30100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0020000000200000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x002000000020ffff; + __m256i_out = __lasx_xvsrlrn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffdbff980038ffaf; + *((unsigned long *)&__m256i_op0[2]) = 0xffafffe80004fff1; + *((unsigned long *)&__m256i_op0[1]) = 0xffdbff980038ffaf; + *((unsigned long *)&__m256i_op0[0]) = 0xffafffe80004fff1; + *((unsigned long *)&__m256i_op1[3]) = 0x0000020202020202; + *((unsigned long *)&__m256i_op1[2]) = 0x0101000000010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000020202020202; + *((unsigned long *)&__m256i_op1[0]) = 0x0101000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000e3fec0004fff1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000e3fec0004fff1; + __m256i_out = __lasx_xvsrlrn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrni.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrni.c new file mode 100644 index 00000000000..8fc7a0029d8 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrlrni.c @@ -0,0 +1,455 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x7a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0100010001000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0100010001000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000808000008080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000808000008081; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000081; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x68); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x30); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000801380f380fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000801380f300fb; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000007f3a40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x42); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x56); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf0000000f0000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xf0000000f0000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_h_w (__m256i_op0, __m256i_op1, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0404040404040404; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0404040404040404; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[0]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op1[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op1[0]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_result[3]) = 0x00000004fc480040; + *((unsigned long *)&__m256i_result[2]) = 0x00000004fc480040; + *((unsigned long *)&__m256i_result[1]) = 0x00000004fc480040; + *((unsigned long *)&__m256i_result[0]) = 0x00000004fc480040; + __m256i_out = __lasx_xvsrlrni_h_w (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0004000404040404; + *((unsigned long *)&__m256i_result[2]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[1]) = 0x0004000400000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000400000004; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_h_w (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x80208020c22080a7; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x80208020c22080a7; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdf80ff20df80ff20; + *((unsigned long *)&__m256i_op1[2]) = 0xdfc2ff20df80ffa7; + *((unsigned long *)&__m256i_op1[1]) = 0xdf80ff20df80ff20; + *((unsigned long *)&__m256i_op1[0]) = 0xdfc2ff20df80ffa7; + *((unsigned long *)&__m256i_result[3]) = 0x0000840100000000; + *((unsigned long *)&__m256i_result[2]) = 0xbffebffec0febfff; + *((unsigned long *)&__m256i_result[1]) = 0x0000840100000000; + *((unsigned long *)&__m256i_result[0]) = 0xbffebffec0febfff; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffc0c0ffffbfc0; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffc0c0ffffbfc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f3f0000400d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f3f0000400d; + *((unsigned long *)&__m256i_result[3]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x44); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfc00000000000048; + *((unsigned long *)&__m256i_op0[1]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfc00000000000048; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xbfffa004fffd8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xbfffa004fffd8000; + *((unsigned long *)&__m256i_result[3]) = 0x00003f0000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00002fffe8013fff; + *((unsigned long *)&__m256i_result[1]) = 0x00003f0000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00002fffe8013fff; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000080800000808; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000080800000808; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000101000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000101000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[2]) = 0xff00010001000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[0]) = 0xff00010001000100; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000040004000; + *((unsigned long *)&__m256i_result[2]) = 0x0000004000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000040004000; + *((unsigned long *)&__m256i_result[0]) = 0x0000004000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x5a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00b2fe28e4420609; + *((unsigned long *)&__m256i_op0[2]) = 0x028da7fe15020000; + *((unsigned long *)&__m256i_op0[1]) = 0x00b2fe28e4420609; + *((unsigned long *)&__m256i_op0[0]) = 0x028da7fe15020000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000598; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000598; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0x6d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000800000010; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000800000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000002000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000002000000; + __m256i_out = __lasx_xvsrlrni_d_q (__m256i_op0, __m256i_op1, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000003ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000003ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000010000005e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000010000005e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_w_d (__m256i_op0, __m256i_op1, 0x3c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0040000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0040000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0040000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0040000000000000; + __m256i_out = __lasx_xvsrlrni_w_d (__m256i_op0, __m256i_op1, 0x2a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001200000012; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0fff0fff0fc00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0fff0fff0fc00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f880f87e; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f880f87e; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000008000; + __m256i_out = __lasx_xvsrlrni_h_w (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000081220000812c; + *((unsigned long *)&__m256i_op0[2]) = 0x0000812000008120; + *((unsigned long *)&__m256i_op0[1]) = 0x000081220000812c; + *((unsigned long *)&__m256i_op0[0]) = 0x0000812000008120; + *((unsigned long *)&__m256i_op1[3]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[1]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[0]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefefefefefe; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvsrlrni_b_h (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:40:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp837536vqx; Tue, 12 Sep 2023 20:59:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmUhbelbPO41CNqi4IhqsGdR/oX1cyXaWBn3KqqDKADrpiULVey4x/LyqVJlSFPP+v+H5/ X-Received: by 2002:a17:906:32cf:b0:9a1:e231:67ec with SMTP id k15-20020a17090632cf00b009a1e23167ecmr849454ejk.61.1694577595952; Tue, 12 Sep 2023 20:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577595; cv=none; d=google.com; s=arc-20160816; b=y8faycWatRwzRmPjBWKNVg81qfXP8rcK/hFKZ9oSD1roy1Np4sVqbuBlUmr87c67Av V7hcgtdxb1r1E3llJ9QYPICgha/EeFNQ/z7c5e7ZrbE/H+ILrc3ObH/lw4+JbzhNlwWT crVSeNO5oDwt9BIMXR2jXEVyHNRInpne3hLurJEHw3WxGHabwDTH+adJKDvQg9ho8aS0 JqhORYmCa0qWIxuwGKerpnZVz1LQxaS5HsIpBI7NzLH9MWnvI82u42GvpG4d14tpM/gT lJQ+fDKicwYxJZz4nZBU4pZVQGynKBEh7pVGnyENJqawroNcqBCCz+BfEwQnKKpRzQQg N3iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=GdAu5+XH6JH8Sm/qKHIWDAQoYPImdq/pPPkRjWrN3HM=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=mgU9i+apAVdwNcJ84BdKagzMg59NBydIs7e5yl91Zvw+++FaaskA8db8EYAu9GXxlw B8KlChuZ8yFhMWFT9WQabpk7T1zBaWljDqoEmPnPsqVCIdVfQrwG1wNUAU0XVgSrFk+Q FT2YTAVDl3X35fvqt+pDLESioOowegwsPVFrPGeiNNySOnXDDvZCyTtLr45u8m6CosI3 KtyVaUMgFSUoEeWqeR9rYU3YyKN+rYjQoSoNzBx2yJgIthHk1pd//AF8Aeim5h+AlLVO 8ZYLXeUpwSoeEK5f2iWmHTXOoo4gLVeAfCnEGvkfE5SU1ci/LHrE/CrhezqWpQD3KMue bdzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s23-20020a170906169700b00988699d64cdsi10349034ejd.959.2023.09.12.20.59.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:59:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9F436383A286 for ; Wed, 13 Sep 2023 03:41:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 5104C3AA9912 for ; Wed, 13 Sep 2023 03:40:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5104C3AA9912 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8DxxPAdLwFlZjEmAA--.9335S3; Wed, 13 Sep 2023 11:40:13 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx7y8bLwFl_RACAA--.3495S4; Wed, 13 Sep 2023 11:40:12 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 09/22] LoongArch: Add tests for ASX vector xvextl/xvsra/xvsran/xvsrarn instructions. Date: Wed, 13 Sep 2023 11:40:10 +0800 Message-Id: <20230913034010.7569-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Cx7y8bLwFl_RACAA--.3495S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBOgAAso X-Coremail-Antispam: 1Uk129KBj98XoW3Jr48GryrGF4kWoXrpryrCF4UKoWUAr1Uur s5Ca93Jw45Jr13Z34rJF18t3ZIyr17Aws0yFZrKw42q347AFn5tF1ktr1fJa47Zw1fXr1U G348Xr4kl-sFpf9Il3svdjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdx BIdaVrn0xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnI Wjp_UUUYo7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rV WrJVCq3wAFIxvE14AKwVWUGVWUXwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l 84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJV WxJr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AKxVW8 Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26Fy26r45twAv7VC2z280aVAF wI0_Gr1j6F4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwCI42IY 6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2js IEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j41v3UUUUU= X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893397260495282 X-GMAIL-MSGID: 1776893397260495282 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvextl-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvextl-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsra.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrai.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsran.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrani.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrar.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrari.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrarn.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsrarni.c: New test. --- .../loongarch/vector/lasx/lasx-xvextl-1.c | 86 +++ .../loongarch/vector/lasx/lasx-xvextl-2.c | 163 ++++ .../loongarch/vector/lasx/lasx-xvsra.c | 545 +++++++++++++ .../loongarch/vector/lasx/lasx-xvsrai.c | 504 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsran.c | 455 +++++++++++ .../loongarch/vector/lasx/lasx-xvsrani.c | 545 +++++++++++++ .../loongarch/vector/lasx/lasx-xvsrar.c | 725 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsrari.c | 471 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsrarn.c | 500 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsrarni.c | 636 +++++++++++++++ 10 files changed, 4630 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsra.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrai.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsran.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrani.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrar.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrari.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarn.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarni.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-1.c new file mode 100644 index 00000000000..c0d3e8e754c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-1.c @@ -0,0 +1,86 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x43ef878780000009; + __m256i_out = __lasx_xvextl_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000201220001011c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000201220001011c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000201220001011c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000201220001011c; + __m256i_out = __lasx_xvextl_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-2.c new file mode 100644 index 00000000000..8c7ab4ed307 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextl-2.c @@ -0,0 +1,163 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000083f95466; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010100005400; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000083f95466; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0101010100005400; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvextl_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsra.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsra.c new file mode 100644 index 00000000000..2bf9ae9c37d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsra.c @@ -0,0 +1,545 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xc5890a0a07070707; + *((unsigned long *)&__m256i_op1[2]) = 0x006be0e4180b8024; + *((unsigned long *)&__m256i_op1[1]) = 0x1b399540334c966c; + *((unsigned long *)&__m256i_op1[0]) = 0x71d7dd7aefcac001; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffbf7f7fff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe651bfff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffbf7f7fff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffe651bfff; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffe0000000; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800000004; + *((unsigned long *)&__m256i_op0[2]) = 0x0000bf6e0000c916; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000030000fff3; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000bf6e0000c916; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000030000fff3; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff0e400; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff0e400; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x9cffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x9cffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1cfd000000000000; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000017e007ffe02; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[2]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[1]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op0[0]) = 0x6161616161616161; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_result[3]) = 0x6161616161616161; + *((unsigned long *)&__m256i_result[2]) = 0x6161616100000018; + *((unsigned long *)&__m256i_result[1]) = 0x6161616161616161; + *((unsigned long *)&__m256i_result[0]) = 0x6161616100000018; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000004411; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000004411; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_op0[2]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_op0[1]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_op0[0]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_result[2]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_result[1]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_result[0]) = 0x007f007f0081007f; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_op0[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_op0[0]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_result[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256i_result[0]) = 0x01fe01ae00ff00ff; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_op0[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_result[2]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_result[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_result[0]) = 0x7fe1ffe0ffe1ffe0; + __m256i_out = __lasx_xvsra_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op0[2]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op0[1]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op0[0]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0007000700070007; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0007000700070007; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[1]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[0]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op1[3]) = 0xff0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op1[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op1[1]) = 0xff0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op1[0]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[2]) = 0x6040190d20227a78; + *((unsigned long *)&__m256i_op0[1]) = 0x132feeabd2d33b38; + *((unsigned long *)&__m256i_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op1[2]) = 0x000400030010000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op1[0]) = 0x000400030010000f; + *((unsigned long *)&__m256i_result[3]) = 0x0000c0300000019a; + *((unsigned long *)&__m256i_result[2]) = 0x0c08032100004044; + *((unsigned long *)&__m256i_result[1]) = 0x0000265ffa5a6767; + *((unsigned long *)&__m256i_result[0]) = 0x0c08032100000000; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f433c78; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsra_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00feff0100feff01; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00feff0100feff01; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff801000000010; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800300000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff801000000010; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800300000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff801000000010; + *((unsigned long *)&__m256i_result[2]) = 0xffff800300000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff801000000010; + *((unsigned long *)&__m256i_result[0]) = 0xffff800300000000; + __m256i_out = __lasx_xvsra_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff000000017fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff000000017fff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsra_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000f00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000f00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsra_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrai.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrai.c new file mode 100644 index 00000000000..a51be899bc6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrai.c @@ -0,0 +1,504 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256i_op0[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op0[0]) = 0xe3aebaf4df958004; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x006be0e4180b0024; + *((unsigned long *)&__m256i_result[1]) = 0x1b39153f334b166b; + *((unsigned long *)&__m256i_result[0]) = 0xf1d7dd7aefcac002; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x36); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[0]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[3]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_result[2]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_result[1]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_result[0]) = 0x1555156a1555156a; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000bea20000e127; + *((unsigned long *)&__m256i_op0[2]) = 0x0000c0460000721f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000de910000f010; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000006f9; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000bea20; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000c0460; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000de910; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffff800fffff800; + *((unsigned long *)&__m256i_result[2]) = 0xfffff800fffff800; + *((unsigned long *)&__m256i_result[1]) = 0xfffff800fffff800; + *((unsigned long *)&__m256i_result[0]) = 0xfffff800fffff800; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007f017f01; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007f017f01; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000007f017f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000007f017f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0fff01800fff0181; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0fff01800fff0181; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0007ff800007ff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0007ff800007ff80; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff000000000000; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x23); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000f91; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000f91; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op0[2]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc03ae000ffff6000; + *((unsigned long *)&__m256i_op0[0]) = 0xc600000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff00ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000000000; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ffff0000; + *((unsigned long *)&__m256i_op0[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffc03fffffffc0; + *((unsigned long *)&__m256i_result[2]) = 0xffffc00000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffc03fffffffc0; + *((unsigned long *)&__m256i_result[0]) = 0xffffc00000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000007ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000007ffffffff; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000fef0ff0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000fef0ff0; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc008fa01c0090000; + *((unsigned long *)&__m256i_op0[2]) = 0x3f804000c008f404; + *((unsigned long *)&__m256i_op0[1]) = 0xc008fa01c0090000; + *((unsigned long *)&__m256i_op0[0]) = 0x3f804000c008f404; + *((unsigned long *)&__m256i_result[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_result[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_result[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_result[0]) = 0x001fc0200060047a; + __m256i_out = __lasx_xvsrai_d (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_op0[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[0]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_result[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000fffe00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fffe00000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[2]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[1]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[0]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_result[3]) = 0x1e9e1e9e1e9e1e9e; + *((unsigned long *)&__m256i_result[2]) = 0x1e9e1e9e1e9e1e9e; + *((unsigned long *)&__m256i_result[1]) = 0x1e9e1e9e1e9e1e9e; + *((unsigned long *)&__m256i_result[0]) = 0x1e9e1e9e1e9e1e9e; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrai_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_result[3]) = 0xffc0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffc0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff0000; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0005fff9; + *((unsigned long *)&__m256i_op0[2]) = 0x04f004f204f204f0; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0005fff9; + *((unsigned long *)&__m256i_op0[0]) = 0x04f004f204f204f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000900000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000900000009; + __m256i_out = __lasx_xvsrai_w (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x761ed60b5d7f0000; + *((unsigned long *)&__m256i_op0[2]) = 0xdc9938afafe904f1; + *((unsigned long *)&__m256i_op0[1]) = 0x761ed60b5d7f0000; + *((unsigned long *)&__m256i_op0[0]) = 0xdc9938afafe904f1; + *((unsigned long *)&__m256i_result[3]) = 0x03b0feb002eb0000; + *((unsigned long *)&__m256i_result[2]) = 0xfee401c5fd7f0027; + *((unsigned long *)&__m256i_result[1]) = 0x03b0feb002eb0000; + *((unsigned long *)&__m256i_result[0]) = 0xfee401c5fd7f0027; + __m256i_out = __lasx_xvsrai_h (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsran.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsran.c new file mode 100644 index 00000000000..e08934b1262 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsran.c @@ -0,0 +1,455 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7f80780000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[1]) = 0x7f80780000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000013ffffffec; + *((unsigned long *)&__m256i_op1[2]) = 0x00000013ffffebd8; + *((unsigned long *)&__m256i_op1[1]) = 0x00000013ffffffec; + *((unsigned long *)&__m256i_op1[0]) = 0x00000013ffffebd8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[2]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[1]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[0]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000807e7ffe; + *((unsigned long *)&__m256i_op1[3]) = 0x8091811081118110; + *((unsigned long *)&__m256i_op1[2]) = 0x80a6802680208015; + *((unsigned long *)&__m256i_op1[1]) = 0x8091811081110013; + *((unsigned long *)&__m256i_op1[0]) = 0x80a6802680200018; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffe0000feff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffeff0000007e7f; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000800000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op1[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_op1[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256i_op1[0]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff000000000000; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000007c8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001fe01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000ff0100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001fe01fe; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000ff0100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000c8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000c8; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000000e; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000000e; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000440800; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000440800; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[2]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[1]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op0[0]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3d3d3d3d3d3d3d3d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3d3d3d3d3d3d3d3d; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010100; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000405; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010100; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000405; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfc01fc0101fe01dd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfc01fc0101fe01dd; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000055; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000054; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvsran_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsran_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrani.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrani.c new file mode 100644 index 00000000000..44c20a9544e --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrani.c @@ -0,0 +1,545 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000003ffffffff; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xe1e800002f03988d; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xe1e800002f03988d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff0f400001781cc4; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff0f400001781cc4; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c4c5c5c5c5c5c5; + *((unsigned long *)&__m256i_op0[2]) = 0xc5c545c545c545c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c4c5c5c5c5c5c5; + *((unsigned long *)&__m256i_op0[0]) = 0xc5c545c545c545c5; + *((unsigned long *)&__m256i_op1[3]) = 0x000000ff000000f8; + *((unsigned long *)&__m256i_op1[2]) = 0xbc8ff0ffffffcff8; + *((unsigned long *)&__m256i_op1[1]) = 0x000000ff000000f8; + *((unsigned long *)&__m256i_op1[0]) = 0xbc8ff0ffffffcff8; + *((unsigned long *)&__m256i_result[3]) = 0xfcfcfcfcfc040404; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fbfffffc; + *((unsigned long *)&__m256i_result[1]) = 0xfcfcfcfcfc040404; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fbfffffc; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x14131211100f0e0d; + *((unsigned long *)&__m256i_op0[2]) = 0x0c0b0a0908070605; + *((unsigned long *)&__m256i_op0[1]) = 0x14131211100f0e0d; + *((unsigned long *)&__m256i_op0[0]) = 0x0c0b0a0908070605; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0a09080706050403; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0a09080706050403; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000080; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x40); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000242; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000242; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0707feb608c9328b; + *((unsigned long *)&__m256i_op0[2]) = 0xc237bd65fc892985; + *((unsigned long *)&__m256i_op0[1]) = 0x0707feb608c9328b; + *((unsigned long *)&__m256i_op0[0]) = 0xc237bd65fc892985; + *((unsigned long *)&__m256i_op1[3]) = 0x00150015003a402f; + *((unsigned long *)&__m256i_op1[2]) = 0x333568ce26dcd055; + *((unsigned long *)&__m256i_op1[1]) = 0x00150015003a402f; + *((unsigned long *)&__m256i_op1[0]) = 0x333568ce26dcd055; + *((unsigned long *)&__m256i_result[3]) = 0x0e0f1192846ff912; + *((unsigned long *)&__m256i_result[2]) = 0x002a0074666a4db9; + *((unsigned long *)&__m256i_result[1]) = 0x0e0f1192846ff912; + *((unsigned long *)&__m256i_result[0]) = 0x002a0074666a4db9; + __m256i_out = __lasx_xvsrani_h_w (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffdfffffffdff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffdfffffffdff; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x37); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8080808000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8080808000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x3f7f7f7eff800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x3f7f7f7eff800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007efeff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007efeff00; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffff3e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffff3e; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x70); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0002000200020018; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0002000200020008; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00c0000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0040000000000000; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrani_h_w (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1f001f00000007ef; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00001fff200007ef; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000f0f0003; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000f1003; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op1[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op1[0]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000fefefe000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fefefe000000; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1010101010101010; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x2c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000781; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x0008080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0008080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000003c; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x45); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00f3009500db00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x00f3009500db00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000003cc0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000003cc0; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x6a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000400100013; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000400100014; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000400100013; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000400000004; + *((unsigned long *)&__m256i_op1[3]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op1[2]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op1[0]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000020200000202; + *((unsigned long *)&__m256i_result[2]) = 0x4100004141410000; + *((unsigned long *)&__m256i_result[1]) = 0x0000020200000000; + *((unsigned long *)&__m256i_result[0]) = 0x4100004141410000; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000003; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000956a00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000956a00000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xb500000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xb500000000000000; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x29); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000001010100; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000405; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000001010100; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000405; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffe00000ffe00000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffe00000ffe00000; + __m256i_out = __lasx_xvsrani_h_w (__m256i_op0, __m256i_op1, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000013; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_w_d (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_w_d (__m256i_op0, __m256i_op1, 0x34); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[0]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[0]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x66); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffc0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffc0; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffff80; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffff80; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_b_h (__m256i_op0, __m256i_op1, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_h_w (__m256i_op0, __m256i_op1, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffce; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffce; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x6b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000040e7; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000040e7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000200000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000200000000000; + __m256i_out = __lasx_xvsrani_d_q (__m256i_op0, __m256i_op1, 0x21); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000900000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x3ff9fffa3ff9fffa; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x3ff9fffa3ff9fffa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007ff3; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007ff3; + __m256i_out = __lasx_xvsrani_w_d (__m256i_op0, __m256i_op1, 0x2f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrar.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrar.c new file mode 100644 index 00000000000..fb47385c025 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrar.c @@ -0,0 +1,725 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x38a966b31be83ee9; + *((unsigned long *)&__m256i_op0[2]) = 0x5f6108dc25b80001; + *((unsigned long *)&__m256i_op0[1]) = 0xf41a56e8a20878d7; + *((unsigned long *)&__m256i_op0[0]) = 0x683b8b67e20c0001; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000501e99b; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000109973de7; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001020f22; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001890b7a39; + *((unsigned long *)&__m256i_result[3]) = 0x38a966b301f41ffd; + *((unsigned long *)&__m256i_result[2]) = 0x5f6108ee13ff0000; + *((unsigned long *)&__m256i_result[1]) = 0xf41a56e8d10201f6; + *((unsigned long *)&__m256i_result[0]) = 0x683b8b34f1020001; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000707; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010200000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000070300000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x01480000052801a2; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffdcff64; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020000020200000; + *((unsigned long *)&__m256i_op0[2]) = 0x2020000020200000; + *((unsigned long *)&__m256i_op0[1]) = 0x0008000001010000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000001010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020000020200000; + *((unsigned long *)&__m256i_result[2]) = 0x2020000020200000; + *((unsigned long *)&__m256i_result[1]) = 0x0008000001010000; + *((unsigned long *)&__m256i_result[0]) = 0x0101000001010000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[2]) = 0x0020000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[0]) = 0x0020000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xff01ff3400000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff83ff01; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xbabababababababa; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffcc8000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff82037dfd0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op0[2]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op0[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op0[0]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_result[2]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_result[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_result[0]) = 0x45baa7ef6a95a985; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op1[2]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op1[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op1[0]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000800; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d0000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000001dc; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000001dc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000001a00; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff02ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffff0100; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fefffeff02ff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffff0100; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00000100; + *((unsigned long *)&__m256i_result[0]) = 0xff00feff00000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2b2a292827262524; + *((unsigned long *)&__m256i_op1[2]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_op1[1]) = 0x2b2a292827262524; + *((unsigned long *)&__m256i_op1[0]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7171717171717171; + *((unsigned long *)&__m256i_op0[2]) = 0x8e8e8e8e8f0e8e8e; + *((unsigned long *)&__m256i_op0[1]) = 0x7171717171717171; + *((unsigned long *)&__m256i_op0[0]) = 0x8e8e8e8e8f0e8e8e; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000007ffff; + *((unsigned long *)&__m256i_result[3]) = 0x7171717171010101; + *((unsigned long *)&__m256i_result[2]) = 0x8e8e8e8e8f00ffff; + *((unsigned long *)&__m256i_result[1]) = 0x7171717171010101; + *((unsigned long *)&__m256i_result[0]) = 0x8e8e8e8e8f00ffff; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000465; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000465; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000465; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000465; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvsrar_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000420080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_result[3]) = 0x8000420080000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000001607f0000; + *((unsigned long *)&__m256i_result[1]) = 0x8000420080000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000001607f0000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_result[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_result[0]) = 0x43ef878780000009; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000165a; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00005053000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00005053000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff800000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[3]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[3]) = 0x006018000000001a; + *((unsigned long *)&__m256i_result[2]) = 0x0060401900000000; + *((unsigned long *)&__m256i_result[1]) = 0x006018000000001a; + *((unsigned long *)&__m256i_result[0]) = 0x0060401900000000; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrar_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfefefefe3f800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfefefefe3f800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000040404040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000040404040; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ffffff1dff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff1dffffff1dff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ffffff1dff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff1dffffff1dff; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff1dffffff1dff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff1dffffff1dff; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrar_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrari.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrari.c new file mode 100644 index 00000000000..63ba92ead1b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrari.c @@ -0,0 +1,471 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x81f7f2599f0509c2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x51136d3c78388916; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffc0fcffffcf83; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000288a00003c1c; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_op0[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256i_op0[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op0[0]) = 0xe3aebaf4df958004; + *((unsigned long *)&__m256i_result[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100020001; + *((unsigned long *)&__m256i_result[0]) = 0x0000fffffffffffe; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00001f41ffffbf00; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x2a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00007dfd; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00007dfd; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x22); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000907; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000907; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffffa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x2a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x35); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x20fc000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x20fc000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x007f0000007f0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x007f0000007f0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000003f8000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000003f8000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x10fbe1e2e0000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x10fbe1e2e0000002; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000040004; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000040004; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff8000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0x26); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[2]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[1]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[0]) = 0x0000400000004000; + __m256i_out = __lasx_xvsrari_w (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrari_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff81007fff0100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff81007fff0100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000008000000; + *((unsigned long *)&__m256i_result[2]) = 0x0003fffc0803fff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000008000000; + *((unsigned long *)&__m256i_result[0]) = 0x0003fffc0803fff8; + __m256i_out = __lasx_xvsrari_d (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarn.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarn.c new file mode 100644 index 00000000000..c145f7ff346 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarn.c @@ -0,0 +1,500 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6100000800060005; + *((unsigned long *)&__m256i_op0[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5ff00007fff9fff3; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0209fefb08140000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00080000000cc916; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000006fff3; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6100000800060005; + *((unsigned long *)&__m256i_op0[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5ff00007fff9fff3; + *((unsigned long *)&__m256i_op1[3]) = 0x00ffff00ff000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00080005c073c916; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000100000007fff3; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00050008000e0010; + *((unsigned long *)&__m256i_op1[2]) = 0x0007000800100010; + *((unsigned long *)&__m256i_op1[1]) = 0x00050008000e0010; + *((unsigned long *)&__m256i_op1[0]) = 0x0007000800100010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000040404040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000002affaa; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff002affaa; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000002affaa; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffd50055; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x002affaa00000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000001f0000001f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001f0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00007f7f00007f00; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000007fff8; + *((unsigned long *)&__m256i_op1[1]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000007fff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007f00ff00000000; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000abff0000abff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000abff0000abff; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001000000010; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001000000010; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001000000010; + *((unsigned long *)&__m256i_op1[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[2]) = 0x0020000000200000; + *((unsigned long *)&__m256i_op1[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[0]) = 0x0020000000200000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff800000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff800000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op0[2]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000070007000; + *((unsigned long *)&__m256i_op0[0]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op1[3]) = 0x4040403fd03fd040; + *((unsigned long *)&__m256i_op1[2]) = 0x4040403fd03fd040; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffd03fd040; + *((unsigned long *)&__m256i_op1[0]) = 0x4040403fd03fd040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001010000010100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000010100; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xc800c800c800c800; + *((unsigned long *)&__m256i_op1[2]) = 0x8800c800c800c801; + *((unsigned long *)&__m256i_op1[1]) = 0xc800c800c800c800; + *((unsigned long *)&__m256i_op1[0]) = 0x8800c800c800c801; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000c8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000c8; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000086000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00040ff288000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000086000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00040ff288000000; + *((unsigned long *)&__m256i_op1[3]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op1[2]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op1[1]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op1[0]) = 0x5555555555555555; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000fc300000fc40; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fc300000fc40; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc008fa01c0090000; + *((unsigned long *)&__m256i_op0[2]) = 0x3f804000c008f404; + *((unsigned long *)&__m256i_op0[1]) = 0xc008fa01c0090000; + *((unsigned long *)&__m256i_op0[0]) = 0x3f804000c008f404; + *((unsigned long *)&__m256i_op1[3]) = 0x82ff902d83000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f80000082fe0bd9; + *((unsigned long *)&__m256i_op1[1]) = 0x82ff902d83000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f80000082fe0bd9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xc0090000c0200060; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xc0090000c0200060; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xf3f3f3f3f3f3f4f3; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xf3f3f3f3f3f3f4f3; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000f3f3f4f3; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000f3f3f4f3; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff8579f; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefe01010101; + *((unsigned long *)&__m256i_op0[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefe01010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefe01010101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefe01010101; + __m256i_out = __lasx_xvsrarn_w_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op1[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op1[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op1[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff010100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff010100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff010100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff010100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000810001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000810001; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010110; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010110; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarn_b_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op0[2]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op0[1]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op0[0]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op1[3]) = 0x8282828282828282; + *((unsigned long *)&__m256i_op1[2]) = 0x8768876887688769; + *((unsigned long *)&__m256i_op1[1]) = 0x8282828282828282; + *((unsigned long *)&__m256i_op1[0]) = 0x8768876887688769; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000104000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000104000200; + __m256i_out = __lasx_xvsrarn_h_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarni.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarni.c new file mode 100644 index 00000000000..b5c0fca74af --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsrarni.c @@ -0,0 +1,636 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000007f007f5; + *((unsigned long *)&__m256i_op1[3]) = 0x002e4db200000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000315ac0000d658; + *((unsigned long *)&__m256i_op1[1]) = 0x00735278007cf94c; + *((unsigned long *)&__m256i_op1[0]) = 0x0003ed8800031b38; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x3d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x3d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffcfa; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff8fffffff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff8fc000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x25); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7ff77fff7ff7; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7ff77fff7ff7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000022; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000022; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000004; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x3e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x6300000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x22); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000016600000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000016600000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x7f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000055; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000055; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000045; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x50); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x2f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x20); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00550f0000550f00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op1[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op1[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op1[0]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_result[3]) = 0x0000000015c015c0; + *((unsigned long *)&__m256i_result[2]) = 0xc0c0c0cdc0c0c0cd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xc0c0c0cdc0c0c0cd; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[2]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[1]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[0]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op1[3]) = 0x0003030300000300; + *((unsigned long *)&__m256i_op1[2]) = 0x0003030300000300; + *((unsigned long *)&__m256i_op1[1]) = 0x0003030300000100; + *((unsigned long *)&__m256i_op1[0]) = 0x0003030300000100; + *((unsigned long *)&__m256i_result[3]) = 0x00f800f800f800f8; + *((unsigned long *)&__m256i_result[2]) = 0x0018181800181818; + *((unsigned long *)&__m256i_result[1]) = 0x00f800f800f800f8; + *((unsigned long *)&__m256i_result[0]) = 0x0018181800181818; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x43d03bfff827ea21; + *((unsigned long *)&__m256i_op1[2]) = 0x43dac1f2a3804ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x43d03bfff827e9f9; + *((unsigned long *)&__m256i_op1[0]) = 0x43e019c657c7d050; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xe8001411edf9c0f8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xe80014fdf0e3e428; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0fff0ff01ff14; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0fff0fff10003; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0fff0ff01ff14; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0fff0fff10003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfefee0e3fefefe00; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfefee0e3fefefe00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000001fffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000001fffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000001fffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000001fffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff040000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[1]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x007f0000007f0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x007f0000007f0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x27); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f8f7f8f800f800; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f780000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f8f7f80000fff9; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f780000ff80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1f001f00000007ef; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00001fff200007ef; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x23); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7171717171717171; + *((unsigned long *)&__m256i_op0[2]) = 0x8e8e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_op0[1]) = 0x7171717171717171; + *((unsigned long *)&__m256i_op0[0]) = 0x8e8e8e8e8e8e8e8e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x01c601c6fe3afe3a; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x01c601c6fe3afe3a; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003f3f00004040; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f010700c70106; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f010700c70106; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000010211921; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000010211921; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7ffffffffffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7ffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x82ff902d83000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f80000082fe0bd9; + *((unsigned long *)&__m256i_op1[1]) = 0x82ff902d83000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f80000082fe0bd9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000001; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_w_d (__m256i_op0, __m256i_op1, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000080ff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000080ff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0x08000000000000f8; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x08000000000000f8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1010101010101010; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x3a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff8; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_result[2]) = 0x2020000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_result[0]) = 0x2020000000000000; + __m256i_out = __lasx_xvsrarni_d_q (__m256i_op0, __m256i_op1, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x4); + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_b_h (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op0[2]) = 0x03acfc5303260e81; + *((unsigned long *)&__m256i_op0[1]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op0[0]) = 0x03acfc5303260e81; + *((unsigned long *)&__m256i_op1[3]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op1[2]) = 0x03acfc5303260e81; + *((unsigned long *)&__m256i_op1[1]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op1[0]) = 0x03acfc5303260e81; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsrarni_h_w (__m256i_op0, __m256i_op1, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:40:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp838934vqx; Tue, 12 Sep 2023 21:03:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4N3vhBDxplHlYxNBrjIvZB2JKPoBZrE5onndq9WRXDLMzyCmFOmZ3Zsn8zNIhlmPsRlv5 X-Received: by 2002:a17:907:2c6a:b0:9a1:aea2:d18d with SMTP id ib10-20020a1709072c6a00b009a1aea2d18dmr787315ejc.48.1694577795638; Tue, 12 Sep 2023 21:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577795; cv=none; d=google.com; s=arc-20160816; b=JSmjTL7V2eqFGie0doYoeaDuCuEWeYH0P/qKEnKaCJgW2PPSeS93YZUy2HGg0DabMK OYK1KZ64bFgh9DOaGTN96+hnqbyRTDdPg5NLfE3IGin1iuteDv4noy7O5MXwB2emfSnD XRXdiH7rHEbAIcZpFvP+5e4CzRvnTX2rXmBLZ59pEB+VYw9k1u8+C6qt5EXSgFGeYkOs foyCru5WGyJGk3x++n0lkLBEiXYDgiBlm62giGi8W3IUA6+UjPvtqX9rDHyGcIJ65n0J OVVVKQwqOMufS/5tABWvZJzEtrb2Yoo5jQOsla8IT33/2IgD9VS6VathELiRBI0uHG6n Wu4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=xemtF0hv+PdnZwDyLknYQgG15ogXdtJaGXzWksCSM5w=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=sZPsExiFiEL/F5xQubV52e87kJ3eDyb9sjiO9myA6hAORM0Tak5CJKgawGZbBHufup wK7Xu2IKBuNGitmWClXyRbrnaJhiLHNaLWpdCsE0jGiBlLtknZ7pNCwx9qiXG1Opjk8K 5My/mtiQV/ZN5tm9O4f5bcxWkh7w3reWieTIu+NkU4CD5c49PJvqxeikVdtkOoYVwNw5 NR4+VxArb2rURlp0sy+uAPPyBfYIZBaT1PUZzlG+kUm6FwpUG9eAjq4eM/8D4Y3M+hBM MwbEP06csC6gBaUu0hZK8z++m4lDQLoblA5q1xfBz4oT8eFXzUmyy/LSpzuRUzRkGuYV HGxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id p6-20020a17090635c600b009a2154511f0si9375273ejb.197.2023.09.12.21.03.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 74F383831D6C for ; Wed, 13 Sep 2023 03:42:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id E38243831364 for ; Wed, 13 Sep 2023 03:40:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E38243831364 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8AxV_ExLwFlbjEmAA--.9351S3; Wed, 13 Sep 2023 11:40:33 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S5; Wed, 13 Sep 2023 11:40:32 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 11/22] LoongArch: Add tests for ASX vector xvbitclr/xvbitclri/xvbitrev/xvbitrevi/ xvbitsel/xvbitseli/xvbitset/xvbitseti/xvclo/xvclz/xvpcnt instructions. Date: Wed, 13 Sep 2023 11:40:18 +0800 Message-Id: <20230913034026.7751-2-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S5 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBPgAAss X-Coremail-Antispam: 1Uk129KBj9kXoW8Jr1fKF48ZrWkAw1rAF4kKF1xp5X_XF1DXF 4xpr17Jr1fG3yI9ayUKryDJFyaqrWUAr4qyasrJF47K3sru3WkKFn0qF13A3yDAw4DJFWj vF13tFW5Jr10qr45GwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF 7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4 CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj 6I8E87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrw ACjcxG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1V AY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAI cVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMI IF0xvEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBI daVFxhVjvjDU0xZFpf9x07b0c_-UUUUU= X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893606781566051 X-GMAIL-MSGID: 1776893606781566051 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvbitclr.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitclri.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitrev.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitrevi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitsel.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitseli.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitset.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbitseti.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvclo.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvclz.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpcnt.c: New test. --- .../loongarch/vector/lasx/lasx-xvbitclr.c | 635 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvbitclri.c | 515 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvbitrev.c | 650 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvbitrevi.c | 317 +++++++++ .../loongarch/vector/lasx/lasx-xvbitsel.c | 134 ++++ .../loongarch/vector/lasx/lasx-xvbitseli.c | 185 +++++ .../loongarch/vector/lasx/lasx-xvbitset.c | 620 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvbitseti.c | 405 +++++++++++ .../loongarch/vector/lasx/lasx-xvclo.c | 449 ++++++++++++ .../loongarch/vector/lasx/lasx-xvclz.c | 504 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvpcnt.c | 526 ++++++++++++++ 11 files changed, 4940 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclr.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclri.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrev.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrevi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitsel.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseli.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitset.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseti.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclo.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclz.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpcnt.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclr.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclr.c new file mode 100644 index 00000000000..def7b588eec --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclr.c @@ -0,0 +1,635 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffff1f; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffff1f; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffeff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000105fffffefb; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff02000000fe; + *((unsigned long *)&__m256i_op1[1]) = 0x00000105fffffefb; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff02000000fe; + *((unsigned long *)&__m256i_result[3]) = 0xf7ffffffffffff1f; + *((unsigned long *)&__m256i_result[2]) = 0xbffffffffffffeff; + *((unsigned long *)&__m256i_result[1]) = 0xf7ffffffffffff1f; + *((unsigned long *)&__m256i_result[0]) = 0xbffffffffffffeff; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fff7fff7fffdefd; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_result[1]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff7fff7fff; + __m256i_out = __lasx_xvbitclr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000f0000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000f0000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1fe01e0000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000f0000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000f0000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0002555500000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002555500000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[2]) = 0x0002555400000000; + *((unsigned long *)&__m256i_result[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[0]) = 0x0002555400000000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000002a542a; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[2]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[1]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[0]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0002000200020002; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ffff00ff00; + *((unsigned long *)&__m256i_op0[2]) = 0x00000fff00004542; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ffff00ff00; + *((unsigned long *)&__m256i_op0[0]) = 0x00000fff00004542; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ffff00ff00; + *((unsigned long *)&__m256i_result[2]) = 0x00000fff00004542; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ffff00ff00; + *((unsigned long *)&__m256i_result[0]) = 0x00000fff00004542; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op0[1]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000030007; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000030007; + *((unsigned long *)&__m256i_result[3]) = 0xff00fe00feff02fe; + *((unsigned long *)&__m256i_result[2]) = 0xff00fe00feff027f; + *((unsigned long *)&__m256i_result[1]) = 0xff00fe00feff02fe; + *((unsigned long *)&__m256i_result[0]) = 0xff00fe00feff027f; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op0[2]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op0[0]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x000023a20000a121; + *((unsigned long *)&__m256i_op1[2]) = 0x0000179e0000951d; + *((unsigned long *)&__m256i_op1[1]) = 0x000023a20000a121; + *((unsigned long *)&__m256i_op1[0]) = 0x0000179e0000951d; + *((unsigned long *)&__m256i_result[3]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000000100; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000236200005111; + *((unsigned long *)&__m256i_op0[2]) = 0x0000175e0000490d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000236200005111; + *((unsigned long *)&__m256i_op0[0]) = 0x0000175e0000490d; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffeeffaf; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000011; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffeeffaf; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000011; + *((unsigned long *)&__m256i_result[3]) = 0x0000226200005111; + *((unsigned long *)&__m256i_result[2]) = 0x0000165e0000480d; + *((unsigned long *)&__m256i_result[1]) = 0x0000226200005111; + *((unsigned long *)&__m256i_result[0]) = 0x0000165e0000480d; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000007fef; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007fee; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffff7; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffff7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffff00; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffff00; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fefe7f00; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fefe7f00; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1f001f00000007ef; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00001fff200007ef; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff00000000; + __m256i_out = __lasx_xvbitclr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffe00000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffefffe00000000; + __m256i_out = __lasx_xvbitclr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fe70000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fe70000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007fe70000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fe70000; + *((unsigned long *)&__m256i_result[3]) = 0x00007f7f80007fa3; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f670000; + *((unsigned long *)&__m256i_result[1]) = 0x00007f7f80007fa3; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f670000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffeffff10000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffeffff10000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7ffffffffffffffe; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7ffffffffffffffe; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[1]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x3f8000003f800000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3e8000003e800000; + *((unsigned long *)&__m256i_result[2]) = 0x3e8000003e800000; + *((unsigned long *)&__m256i_result[1]) = 0x3e8000003e800000; + *((unsigned long *)&__m256i_result[0]) = 0x3e8000003e800000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00001ff8d8d8c000; + *((unsigned long *)&__m256i_op0[2]) = 0x00001ff8d8d90000; + *((unsigned long *)&__m256i_op0[1]) = 0x00001ff8d8d8c000; + *((unsigned long *)&__m256i_op0[0]) = 0x00001ff8d8d90000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00001ef8d8d8c000; + *((unsigned long *)&__m256i_result[2]) = 0x00001ef8d8d80000; + *((unsigned long *)&__m256i_result[1]) = 0x00001ef8d8d8c000; + *((unsigned long *)&__m256i_result[0]) = 0x00001ef8d8d80000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000000d; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fffe0000000c; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffe0000000c; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000003; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_result[3]) = 0xfefee00000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfefee00000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fff000000000; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000ffff88ff88; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[2]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[0]) = 0xff00ff007f007f00; + __m256i_out = __lasx_xvbitclr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffeffffff00; + *((unsigned long *)&__m256i_result[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffeffffff00; + __m256i_out = __lasx_xvbitclr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclri.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclri.c new file mode 100644 index 00000000000..713eb19d56d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitclri.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe06df8d7; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffbe8b470f; + *((unsigned long *)&__m256i_result[3]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe06df0d7; + *((unsigned long *)&__m256i_result[1]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffbe8b470f; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010ffc80010ff52; + *((unsigned long *)&__m256i_op0[2]) = 0xfff1ffca0011ffcb; + *((unsigned long *)&__m256i_op0[1]) = 0x0010ffc80010ff52; + *((unsigned long *)&__m256i_op0[0]) = 0xfff1ffca0011ffcb; + *((unsigned long *)&__m256i_result[3]) = 0x0010bfc80010bf52; + *((unsigned long *)&__m256i_result[2]) = 0xfff1bfca0011bfcb; + *((unsigned long *)&__m256i_result[1]) = 0x0010bfc80010bf52; + *((unsigned long *)&__m256i_result[0]) = 0xfff1bfca0011bfcb; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000005536aaaaac; + *((unsigned long *)&__m256i_op0[2]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_op0[1]) = 0x0000005536aaaaac; + *((unsigned long *)&__m256i_op0[0]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_result[3]) = 0x0000005136aaaaa8; + *((unsigned long *)&__m256i_result[2]) = 0x55515551aaaaaaa8; + *((unsigned long *)&__m256i_result[1]) = 0x0000005136aaaaa8; + *((unsigned long *)&__m256i_result[0]) = 0x55515551aaaaaaa8; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fdf000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fdf000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fdf7fff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fdf7fff00000000; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0x35); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000fd0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000fd0000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000807e7ffe; + *((unsigned long *)&__m256i_result[3]) = 0x7f7e7f7e7f7e7f7e; + *((unsigned long *)&__m256i_result[2]) = 0x000000007f7e7f7e; + *((unsigned long *)&__m256i_result[1]) = 0x7f7e7f7e7f7e0000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007e7f7e; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0x24); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdf01010153a10101; + *((unsigned long *)&__m256i_op0[2]) = 0x5b7f01ff5b7f10ff; + *((unsigned long *)&__m256i_op0[1]) = 0xdf01010153a10101; + *((unsigned long *)&__m256i_op0[0]) = 0x5b7f01ff5b7f10ff; + *((unsigned long *)&__m256i_result[3]) = 0xcf01010143a10101; + *((unsigned long *)&__m256i_result[2]) = 0x4b6f01ef4b6f00ef; + *((unsigned long *)&__m256i_result[1]) = 0xcf01010143a10101; + *((unsigned long *)&__m256i_result[0]) = 0x4b6f01ef4b6f00ef; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0xdfffffffdfffffff; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0xdfffffffdfffffff; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff02ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0100; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff7fff7f; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff7f027f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff7f0100; + *((unsigned long *)&__m256i_result[0]) = 0xff00fe00fe7f027f; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256i_op0[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256i_op0[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256i_result[3]) = 0x8011ffae800c000c; + *((unsigned long *)&__m256i_result[2]) = 0x00baff050083ff3c; + *((unsigned long *)&__m256i_result[1]) = 0x80b900b980380038; + *((unsigned long *)&__m256i_result[0]) = 0x0017ffa8008eff31; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0x3b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000027262524; + *((unsigned long *)&__m256i_op0[2]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000027262524; + *((unsigned long *)&__m256i_op0[0]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000027262524; + *((unsigned long *)&__m256i_result[2]) = 0x23222120171e151c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000027262524; + *((unsigned long *)&__m256i_result[0]) = 0x23222120171e151c; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000fefe0000fefe; + *((unsigned long *)&__m256i_result[2]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000fefe0000fefe; + *((unsigned long *)&__m256i_result[0]) = 0x00fe00fe00fe00fe; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0x26); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[2]) = 0xffe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_op0[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[0]) = 0xffe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_result[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_result[2]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_result[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_result[0]) = 0x7fe1ffe0ffe1ffe0; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_d (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffffb; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffffffb; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800200028; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffee00ba; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffee00ba; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xefefefefefee00aa; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xefefefefefee00aa; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op0[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op0[0]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000f788f788; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitclri_w (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffefffefffefffe; + __m256i_out = __lasx_xvbitclri_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrev.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrev.c new file mode 100644 index 00000000000..2b0e7f8d1de --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrev.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0501030102141923; + *((unsigned long *)&__m256i_op0[2]) = 0xffd5020738b43ddb; + *((unsigned long *)&__m256i_op0[1]) = 0x010200023b8e4174; + *((unsigned long *)&__m256i_op0[0]) = 0xfff4ff4e11410b40; + *((unsigned long *)&__m256i_op1[3]) = 0x01fa022a01a401e5; + *((unsigned long *)&__m256i_op1[2]) = 0x030d03aa0079029b; + *((unsigned long *)&__m256i_op1[1]) = 0x024c01f901950261; + *((unsigned long *)&__m256i_op1[0]) = 0x008102c2008a029f; + *((unsigned long *)&__m256i_result[3]) = 0x0101070102041903; + *((unsigned long *)&__m256i_result[2]) = 0xdfd506073ab435db; + *((unsigned long *)&__m256i_result[1]) = 0x110202023bae4176; + *((unsigned long *)&__m256i_result[0]) = 0xfff6ff4a15418b40; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0edf8d7; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffbe8bc70f; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffe0edf8d7; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffbe8bc70f; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffe06df8d7; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffbe8b470f; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_result[3]) = 0x000000010000ffe1; + *((unsigned long *)&__m256i_result[2]) = 0x0000000101001e18; + *((unsigned long *)&__m256i_result[1]) = 0x000000010000ffe1; + *((unsigned long *)&__m256i_result[0]) = 0x0000000101001e18; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefefefefefe; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1d1a1b181d1a1b18; + *((unsigned long *)&__m256i_result[2]) = 0x9c9b9a999c9b9a99; + *((unsigned long *)&__m256i_result[1]) = 0x1d1a1b181d1a1b18; + *((unsigned long *)&__m256i_result[0]) = 0x9c9b9a999c9b9a99; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000033e87ef1; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002e2100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x80008000b3e8fef1; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x80008000802ea100; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1c80780000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[1]) = 0x1c80780000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0200000200000000; + *((unsigned long *)&__m256i_op1[2]) = 0x2c27000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0200000200000000; + *((unsigned long *)&__m256i_op1[0]) = 0x2c27000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000400000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x8000800080008000; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff00ff00ffff00; + *((unsigned long *)&__m256i_op1[2]) = 0xff000000ff00ff00; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffff00ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00000000ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000180000000; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff8fff8fff8fff8; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x8001800180018001; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x8001800180018001; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op0[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000003; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00010002; + *((unsigned long *)&__m256i_result[1]) = 0x0080000200000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00010002; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x80000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x80000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f6f7f7f7f6; + *((unsigned long *)&__m256i_result[2]) = 0xf7f7f7f6f7f7f7f6; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f6f7f7f7f6; + *((unsigned long *)&__m256i_result[0]) = 0xf7f7f7f6f7f7f7f6; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7eeefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x7eeefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000010000fffe; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000fffe; + *((unsigned long *)&__m256i_result[1]) = 0x000000010000fffe; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000fffe; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000004; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitrev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000008000b; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000008000b; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000008000a; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000a; + *((unsigned long *)&__m256i_result[1]) = 0x000000000008000a; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000a; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x000100010001fffe; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x000100010001fffe; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op0[2]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op0[1]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op0[0]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[2]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_op1[0]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[3]) = 0x40fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[2]) = 0x40fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[1]) = 0x40fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[0]) = 0x40fe00fe00fe00fe; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffc0007ffe0002; + *((unsigned long *)&__m256i_result[2]) = 0x8000400000018002; + *((unsigned long *)&__m256i_result[1]) = 0xffffc0007ffe0002; + *((unsigned long *)&__m256i_result[0]) = 0x8000400000018002; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefe01010101; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefe01010101; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000006d; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000400008; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000006d; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000400008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000010006d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000010006d; + *((unsigned long *)&__m256i_result[3]) = 0x010101010101016c; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101410128; + *((unsigned long *)&__m256i_result[1]) = 0x010101010101016c; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101410128; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x800000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x800000ff000000ff; + __m256i_out = __lasx_xvbitrev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffb6811fffff80; + *((unsigned long *)&__m256i_op0[2]) = 0xffff97c120000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffb6811fffff80; + *((unsigned long *)&__m256i_op0[0]) = 0xffff97c120000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_result[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_result[0]) = 0xfffe97c020010001; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000027; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000027; + *((unsigned long *)&__m256i_result[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefefefefe7f; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefefefefe7f; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010003; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010081; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010003; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100018080; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010110; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010110; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvbitrev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrevi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrevi.c new file mode 100644 index 00000000000..2b8327d91b0 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitrevi.c @@ -0,0 +1,317 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff00ff00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff00ff00; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x01010101fe01fe01; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x01010101fe01fe01; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2000200020002000; + *((unsigned long *)&__m256i_result[2]) = 0x2000200020002000; + *((unsigned long *)&__m256i_result[1]) = 0x2000200020002000; + *((unsigned long *)&__m256i_result[0]) = 0x2000200020002000; + __m256i_out = __lasx_xvbitrevi_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7ff77fff7ff7; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7ff77fff7ff7; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000020001; + *((unsigned long *)&__m256i_result[3]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[1]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[0]) = 0x1010101010121011; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitrevi_d (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000004000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000004000000040; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000020000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000020000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000020000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000020000000000; + __m256i_out = __lasx_xvbitrevi_d (__m256i_op0, 0x29); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[0]) = 0x4040404040404040; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001c4e8ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001c4e8ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0080000000800000; + *((unsigned long *)&__m256i_result[2]) = 0x0081c4e8ff7fffff; + *((unsigned long *)&__m256i_result[1]) = 0x0080000000800000; + *((unsigned long *)&__m256i_result[0]) = 0x0081c4e8ff7fffff; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_result[3]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[2]) = 0x7f7f7f7f7f017ffd; + *((unsigned long *)&__m256i_result[1]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[0]) = 0x7f7f7f7f7f017ffd; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x4000000000000000; + __m256i_out = __lasx_xvbitrevi_d (__m256i_op0, 0x3e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002080100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002080100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000008000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000a080100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000008000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000a080100; + __m256i_out = __lasx_xvbitrevi_d (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[2]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[0]) = 0x0100010001000100; + __m256i_out = __lasx_xvbitrevi_h (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_op0[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[0]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_result[3]) = 0xfee1057c01e10581; + *((unsigned long *)&__m256i_result[2]) = 0x011ec1210161057b; + *((unsigned long *)&__m256i_result[1]) = 0xfee1057c01e10581; + *((unsigned long *)&__m256i_result[0]) = 0x011ec1210161057b; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[3]) = 0xfdfdfdfdfdfdfdfd; + *((unsigned long *)&__m256i_result[2]) = 0xe27fe2821d226278; + *((unsigned long *)&__m256i_result[1]) = 0xfdfdfdfdfdfdfdfd; + *((unsigned long *)&__m256i_result[0]) = 0xe27fe2821d226278; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000008; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[3]) = 0x080808000828082f; + *((unsigned long *)&__m256i_result[2]) = 0x0808080008280820; + *((unsigned long *)&__m256i_result[1]) = 0x080808000828082f; + *((unsigned long *)&__m256i_result[0]) = 0x0808080008280820; + __m256i_out = __lasx_xvbitrevi_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvbitrevi_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000800000000000; + __m256i_out = __lasx_xvbitrevi_d (__m256i_op0, 0x2f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0200000002000000; + *((unsigned long *)&__m256i_result[2]) = 0x02000000fdffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0200000002000000; + *((unsigned long *)&__m256i_result[0]) = 0x02000000fdffffff; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffeffed; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffeffed; + __m256i_out = __lasx_xvbitrevi_d (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc039000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xc039000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xc03b000200020002; + *((unsigned long *)&__m256i_result[2]) = 0xc03b000200020002; + *((unsigned long *)&__m256i_result[1]) = 0xc03b000200020002; + *((unsigned long *)&__m256i_result[0]) = 0xc03b000200020002; + __m256i_out = __lasx_xvbitrevi_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[2]) = 0x7fff81007fff0100; + *((unsigned long *)&__m256i_result[1]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[0]) = 0x7fff81007fff0100; + __m256i_out = __lasx_xvbitrevi_w (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitsel.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitsel.c new file mode 100644 index 00000000000..c9847a6152d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitsel.c @@ -0,0 +1,134 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xe9e9e9e9e9e9e9e9; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xe9e9e9e9e9e9e9e9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitsel_v (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitsel_v (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[2]) = 0x001f001f02c442af; + *((unsigned long *)&__m256i_op0[1]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_op0[0]) = 0x001f001f02c442af; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe01f000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe01f000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_op2[1]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_result[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_result[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000c40086; + __m256i_out = __lasx_xvbitsel_v (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0xbe21000100000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000505300000000; + *((unsigned long *)&__m256i_op1[1]) = 0xbe21000100000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000505300000000; + *((unsigned long *)&__m256i_op2[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op2[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_op2[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op2[0]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x00005053000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x00005053000000ff; + __m256i_out = __lasx_xvbitsel_v (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000040000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000040000; + *((unsigned long *)&__m256i_op2[3]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x00000e0000000e00; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000040000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000040000; + __m256i_out = __lasx_xvbitsel_v (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvbitsel_v (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseli.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseli.c new file mode 100644 index 00000000000..1edb4fca251 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseli.c @@ -0,0 +1,185 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0x3a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0xef); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0xcd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffd10000006459; + *((unsigned long *)&__m256i_op0[2]) = 0x0000441000000004; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[0]) = 0x0000040400000104; + *((unsigned long *)&__m256i_op1[3]) = 0xdb801b6d0962003f; + *((unsigned long *)&__m256i_op1[2]) = 0xdb8a3109fe0f0024; + *((unsigned long *)&__m256i_op1[1]) = 0x0000007fff01ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xdb8e209d0cce025a; + *((unsigned long *)&__m256i_result[3]) = 0x88888a6d0962002e; + *((unsigned long *)&__m256i_result[2]) = 0xdb8a3109fe0f0020; + *((unsigned long *)&__m256i_result[1]) = 0x0000007fff01fffb; + *((unsigned long *)&__m256i_result[0]) = 0xdb8e20990cce025a; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0x88); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000002b902b3e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000002b902b3e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000002a102a3a; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000002a102a3a; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0x3a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0xd9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op0[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op0[0]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op1[0]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000090909090; + *((unsigned long *)&__m256i_result[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[1]) = 0x0000000090909090; + *((unsigned long *)&__m256i_result[0]) = 0x9090909090909090; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0x95); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op0[2]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op0[1]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op0[0]) = 0x5555555555555555; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4545454545454545; + *((unsigned long *)&__m256i_result[2]) = 0x4545454545454545; + *((unsigned long *)&__m256i_result[1]) = 0x4545454545454545; + *((unsigned long *)&__m256i_result[0]) = 0x4545454545454545; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0x4d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op0[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op0[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op0[0]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_op1[3]) = 0x21bb481000ff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x01bf481000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x21bb481000ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x01bf481000000000; + *((unsigned long *)&__m256i_result[3]) = 0xb1b3b1b1b1b7b1b1; + *((unsigned long *)&__m256i_result[2]) = 0xb1b7b1b1b1b1b1b1; + *((unsigned long *)&__m256i_result[1]) = 0xb1b3b1b1b1b7b1b1; + *((unsigned long *)&__m256i_result[0]) = 0xb1b7b1b1b1b1b1b1; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0xb7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[2]) = 0xc03fc03fc03fc03f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[0]) = 0xc03fc03fc03fc03f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000002d; + *((unsigned long *)&__m256i_result[2]) = 0xc02dc02dc02dc02d; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000002d; + *((unsigned long *)&__m256i_result[0]) = 0xc02dc02dc02dc02d; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0xed); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x60600000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x6060000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x60600000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x6060000000000000; + __m256i_out = __lasx_xvbitseli_b (__m256i_op0, __m256i_op1, 0x60); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitset.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitset.c new file mode 100644 index 00000000000..c195cd91ca8 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitset.c @@ -0,0 +1,620 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffff000000010000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000095120000; + *((unsigned long *)&__m256i_op0[1]) = 0xc9da000063f50000; + *((unsigned long *)&__m256i_op0[0]) = 0xc7387fff6bbfffff; + *((unsigned long *)&__m256i_op1[3]) = 0xfffdffffffc81aca; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff3a0b9512; + *((unsigned long *)&__m256i_op1[1]) = 0x280bc9db313a63f5; + *((unsigned long *)&__m256i_op1[0]) = 0xe032c738adcb6bbb; + *((unsigned long *)&__m256i_result[3]) = 0xffff800001010400; + *((unsigned long *)&__m256i_result[2]) = 0x000180009d120004; + *((unsigned long *)&__m256i_result[1]) = 0xc9da080067f50020; + *((unsigned long *)&__m256i_result[0]) = 0xc73c7fff6bbfffff; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffff8046867f79; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffff328dfff; + *((unsigned long *)&__m256i_op1[0]) = 0x6651bfff80000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00010001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00010001; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00001f41ffffbf00; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x010180068080fff9; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x3ff1808001020101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x3ff1808001020101; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0800000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000102; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010103; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x8000000040000000; + *((unsigned long *)&__m256i_result[2]) = 0x4000000010000010; + *((unsigned long *)&__m256i_result[1]) = 0x8000000040000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000040000010; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbea2e127c046721f; + *((unsigned long *)&__m256i_op0[2]) = 0x1729c073816edebe; + *((unsigned long *)&__m256i_op0[1]) = 0xde91f010000006f9; + *((unsigned long *)&__m256i_op0[0]) = 0x5ef1f90efefaf30d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000060000108; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001060005; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fef0001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xbfa3e127c147721f; + *((unsigned long *)&__m256i_result[2]) = 0x1729c173836edfbe; + *((unsigned long *)&__m256i_result[1]) = 0xdf91f111808007fb; + *((unsigned long *)&__m256i_result[0]) = 0x5ff1f90ffffbf30f; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op0[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op0[1]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op0[0]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_result[2]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_result[1]) = 0xe161616161614f61; + *((unsigned long *)&__m256i_result[0]) = 0xe161616161614f61; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op0[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op0[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op0[0]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x01010101010000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x8080808280808082; + *((unsigned long *)&__m256i_result[2]) = 0x8080808280808082; + *((unsigned long *)&__m256i_result[1]) = 0x8080808280808080; + *((unsigned long *)&__m256i_result[0]) = 0x8080808280808082; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000082f8989a; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000d58f43c8; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010183f9999b; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x01010101d58f43c9; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op0[2]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op0[1]) = 0x0707feb60707b7d0; + *((unsigned long *)&__m256i_op0[0]) = 0x45baa7ef6a95a985; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ffe7ffd7ffe7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ffe7ffd7ffe8001; + *((unsigned long *)&__m256i_result[3]) = 0x0707feb70707b7d1; + *((unsigned long *)&__m256i_result[2]) = 0x65baa7efea95a985; + *((unsigned long *)&__m256i_result[1]) = 0x0707feb70707b7d1; + *((unsigned long *)&__m256i_result[0]) = 0x65baa7ef6a95a987; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x41cc5bb8a95fd1eb; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x41cc5bb8a95fd1eb; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7b7b7b7b80000000; + *((unsigned long *)&__m256i_op1[2]) = 0xcacacb1011040500; + *((unsigned long *)&__m256i_op1[1]) = 0x7b7b7b7b80000000; + *((unsigned long *)&__m256i_op1[0]) = 0xcacacb1011040500; + *((unsigned long *)&__m256i_result[3]) = 0x49cc5bb8a95fd1eb; + *((unsigned long *)&__m256i_result[2]) = 0x7ff4080102102001; + *((unsigned long *)&__m256i_result[1]) = 0x49cc5bb8a95fd1eb; + *((unsigned long *)&__m256i_result[0]) = 0x7ff4080102102001; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010401; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010401; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010401; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010401; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdf00000052a00000; + *((unsigned long *)&__m256i_op0[2]) = 0x5b7f00ff5b7f00ff; + *((unsigned long *)&__m256i_op0[1]) = 0xdf00000052a00000; + *((unsigned long *)&__m256i_op0[0]) = 0x5b7f00ff5b7f00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0xdf01010153a10101; + *((unsigned long *)&__m256i_result[2]) = 0x5b7f01ff5b7f10ff; + *((unsigned long *)&__m256i_result[1]) = 0xdf01010153a10101; + *((unsigned long *)&__m256i_result[0]) = 0x5b7f01ff5b7f10ff; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op1[2]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_op1[1]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op1[0]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_result[3]) = 0x0000080000001000; + *((unsigned long *)&__m256i_result[2]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[1]) = 0x0000080000001000; + *((unsigned long *)&__m256i_result[0]) = 0x0000080000000800; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000027262524; + *((unsigned long *)&__m256i_op0[2]) = 0x23222120171e151c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000027262524; + *((unsigned long *)&__m256i_op0[0]) = 0x23222120171e151c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x201fdfe0201fdfe0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x201fdfe0201fdfe0; + *((unsigned long *)&__m256i_result[3]) = 0x0101010127272525; + *((unsigned long *)&__m256i_result[2]) = 0x23a2a121179e951d; + *((unsigned long *)&__m256i_result[1]) = 0x0101010127272525; + *((unsigned long *)&__m256i_result[0]) = 0x23a2a121179e951d; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op1[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x800080008000ffee; + *((unsigned long *)&__m256i_result[2]) = 0x800080008000ffee; + *((unsigned long *)&__m256i_result[1]) = 0x800080008000ffee; + *((unsigned long *)&__m256i_result[0]) = 0x800080008000ffee; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000100010001ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000100010001ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000100010001ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000100010001ffff; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x00010000fffe0000; + *((unsigned long *)&__m256i_op1[2]) = 0x00010000fffe0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00010000fffe0000; + *((unsigned long *)&__m256i_op1[0]) = 0x00010000fffe0000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x01010101010101c9; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x01010101010101c9; + __m256i_out = __lasx_xvbitset_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000200000008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000200000008; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000affff800b; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000affff800b; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000affff800b; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000affff800b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000800; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0200000202000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0200000202000002; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000400010004; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000400010004; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000e0000000e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000e0000000d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000f0001000f; + *((unsigned long *)&__m256i_result[2]) = 0x0001000f0001000d; + *((unsigned long *)&__m256i_result[1]) = 0x0001000f0001000f; + *((unsigned long *)&__m256i_result[0]) = 0x0001000f0001000d; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f010000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f010000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x007f010100000101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x007f010100000101; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbitset_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op0[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x498100814843ffe1; + *((unsigned long *)&__m256i_result[2]) = 0x4981008168410001; + *((unsigned long *)&__m256i_result[1]) = 0x498100814843ffe1; + *((unsigned long *)&__m256i_result[0]) = 0x4981008168410001; + __m256i_out = __lasx_xvbitset_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000090b0906; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100002000; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op0[2]) = 0x03acfc5303260e80; + *((unsigned long *)&__m256i_op0[1]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_op0[0]) = 0x03acfc5303260e80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000002780; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000002780; + *((unsigned long *)&__m256i_result[3]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_result[2]) = 0x03acfc5303260e81; + *((unsigned long *)&__m256i_result[1]) = 0x03af03af03af03af; + *((unsigned long *)&__m256i_result[0]) = 0x03acfc5303260e81; + __m256i_out = __lasx_xvbitset_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseti.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseti.c new file mode 100644 index 00000000000..47f37e4b3d4 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbitseti.c @@ -0,0 +1,405 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcf800fffcf800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[2]) = 0xfffcf800fffcf800; + *((unsigned long *)&__m256i_result[1]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[0]) = 0x0000080000000800; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00007f7f00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000040000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00007f7f00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000040000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00007f7f00007fff; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x2a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[2]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[1]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[0]) = 0x0202020202020202; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000800000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000800000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000800000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000000; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x23); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[1]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[0]) = 0x1010101010101010; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000004000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000004000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000004000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000004000000; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000013; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001000000fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000013; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001000000fb; + *((unsigned long *)&__m256i_result[3]) = 0x8080808180808093; + *((unsigned long *)&__m256i_result[2]) = 0x80808081808080fe; + *((unsigned long *)&__m256i_result[1]) = 0x8080808180808093; + *((unsigned long *)&__m256i_result[0]) = 0x80808081808080fb; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000020; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[2]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[1]) = 0x0010000000100000; + *((unsigned long *)&__m256i_result[0]) = 0x0010000000100000; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[0]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_result[3]) = 0x1000100054445443; + *((unsigned long *)&__m256i_result[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_result[1]) = 0x1000100054445443; + *((unsigned long *)&__m256i_result[0]) = 0x7bbbbbbbf7777778; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000200; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffa2078fffa2074; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffa2078fffa2074; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[2]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000800; + *((unsigned long *)&__m256i_result[0]) = 0xfffeffebfb7afb62; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_op0[2]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_op0[1]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_op0[0]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[3]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[2]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[1]) = 0xe7e7e7e7e7e7e7e7; + *((unsigned long *)&__m256i_result[0]) = 0xe7e7e7e7e7e7e7e7; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000004411; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000004411; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020206431; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0003030300000300; + *((unsigned long *)&__m256i_op0[2]) = 0x0003030300000300; + *((unsigned long *)&__m256i_op0[1]) = 0x0003030300000100; + *((unsigned long *)&__m256i_op0[0]) = 0x0003030300000100; + *((unsigned long *)&__m256i_result[3]) = 0x0043030300400300; + *((unsigned long *)&__m256i_result[2]) = 0x0043030300400300; + *((unsigned long *)&__m256i_result[1]) = 0x0043030300400100; + *((unsigned long *)&__m256i_result[0]) = 0x0043030300400100; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x223d76f09f3881ff; + *((unsigned long *)&__m256i_op0[2]) = 0x3870ca8d013e76a0; + *((unsigned long *)&__m256i_op0[1]) = 0x223d76f09f37e357; + *((unsigned long *)&__m256i_op0[0]) = 0x43ec0a1b2aba7ed0; + *((unsigned long *)&__m256i_result[3]) = 0x223d76f09f3881ff; + *((unsigned long *)&__m256i_result[2]) = 0x3870ca9d013e76b0; + *((unsigned long *)&__m256i_result[1]) = 0x223d76f09f37e357; + *((unsigned long *)&__m256i_result[0]) = 0x43ec0a1b2aba7ed0; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f8f7f8f800f800; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f780000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f8f7f80000fff9; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f780000ff80; + *((unsigned long *)&__m256i_result[3]) = 0xf7f8f7f8f800f800; + *((unsigned long *)&__m256i_result[2]) = 0x00003f784000ff80; + *((unsigned long *)&__m256i_result[1]) = 0xf7f8f7f84000fff9; + *((unsigned long *)&__m256i_result[0]) = 0x00003f784000ff80; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[0]) = 0x4040404040404040; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[2]) = 0xffe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff0020ff1f001f; + *((unsigned long *)&__m256i_op0[0]) = 0xffe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_result[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_result[2]) = 0xffe1ffe0ffe1ffe0; + *((unsigned long *)&__m256i_result[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256i_result[0]) = 0xffe1ffe0ffe1ffe0; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffefef800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffefef800; + *((unsigned long *)&__m256i_result[3]) = 0x0000008000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffefef800; + *((unsigned long *)&__m256i_result[1]) = 0x0000008000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffefef800; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x27); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[2]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[0]) = 0x0002000000020000; + __m256i_out = __lasx_xvbitseti_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_result[3]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[2]) = 0x00020002000230ba; + *((unsigned long *)&__m256i_result[1]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[0]) = 0x00020002000230ba; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[2]) = 0x8100810081008100; + *((unsigned long *)&__m256i_result[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[0]) = 0x8100810081008100; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007878; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000007878; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000107878; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000107878; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256i_result[3]) = 0x4000400140004001; + *((unsigned long *)&__m256i_result[2]) = 0xfffff2f640006f48; + *((unsigned long *)&__m256i_result[1]) = 0x4000400140004001; + *((unsigned long *)&__m256i_result[0]) = 0xfffff2f640006f48; + __m256i_out = __lasx_xvbitseti_h (__m256i_op0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvbitseti_d (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x4040404040404040; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op0[2]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op0[1]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_op0[0]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[3]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_result[2]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_result[1]) = 0xfd12fd12fd12fd12; + *((unsigned long *)&__m256i_result[0]) = 0xfd12fd12fd12fd12; + __m256i_out = __lasx_xvbitseti_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclo.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclo.c new file mode 100644 index 00000000000..dbc52f92b7c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclo.c @@ -0,0 +1,449 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffd1b24e00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcea54ffff29a8; + *((unsigned long *)&__m256i_op0[1]) = 0xff8cad88ff8306b4; + *((unsigned long *)&__m256i_op0[0]) = 0xfffc1278fffce4c8; + *((unsigned long *)&__m256i_result[3]) = 0x0802010000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0806030008080001; + *((unsigned long *)&__m256i_result[1]) = 0x0801010108010001; + *((unsigned long *)&__m256i_result[0]) = 0x0806000008060302; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfafafafafafafafa; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000fefefe; + *((unsigned long *)&__m256i_result[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0007000700070007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op0[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op0[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op0[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0fff0fff00000020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0fff0fff00000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_op0[2]) = 0x01fc03fc01fc03fc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256i_op0[0]) = 0x01fc03fc01fc03fc; + *((unsigned long *)&__m256i_result[3]) = 0x000000200000001e; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000200000001e; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000808; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xd04752cdd5543b56; + *((unsigned long *)&__m256i_op0[2]) = 0x6906e68064f3d78b; + *((unsigned long *)&__m256i_op0[1]) = 0xd04752cdd5543b56; + *((unsigned long *)&__m256i_op0[0]) = 0x6906e68064f3d78b; + *((unsigned long *)&__m256i_result[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000300000002; + *((unsigned long *)&__m256i_result[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000300000002; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc0000000c0000000; + *((unsigned long *)&__m256i_op0[2]) = 0xc000000080400000; + *((unsigned long *)&__m256i_op0[1]) = 0xc0000000c0000000; + *((unsigned long *)&__m256i_op0[0]) = 0xc000000080400000; + *((unsigned long *)&__m256i_result[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[2]) = 0x0002000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_result[0]) = 0x0002000000010000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000012; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000012; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000012; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0010000100000000; + *((unsigned long *)&__m256i_result[1]) = 0x0010000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0010000100000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000004000000020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000004000000020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000201220001011c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000201220001011c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000100010; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclo_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclz.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclz.c new file mode 100644 index 00000000000..89191c46757 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvclz.c @@ -0,0 +1,504 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x04481940fbb7e6bf; + *((unsigned long *)&__m256i_op0[2]) = 0xf2781966e6991966; + *((unsigned long *)&__m256i_op0[1]) = 0x51258839aeda77c6; + *((unsigned long *)&__m256i_op0[0]) = 0xcf25f0e00f1ff0e0; + *((unsigned long *)&__m256i_result[3]) = 0x0501030100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001030100000301; + *((unsigned long *)&__m256i_result[1]) = 0x0102000200000100; + *((unsigned long *)&__m256i_result[0]) = 0x0002000004030000; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000f0000000f; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000003868686a20; + *((unsigned long *)&__m256i_op0[2]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000003868686a20; + *((unsigned long *)&__m256i_op0[0]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_result[3]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000900000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000900000000; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvclz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080807; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080807; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000000010000; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000000010000; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100001; + __m256i_out = __lasx_xvclz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0008000000080000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0008000000080000; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000100010; + __m256i_out = __lasx_xvclz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000018; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000019; + *((unsigned long *)&__m256i_result[1]) = 0x000000200000001e; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000019; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0b085bfc00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0b004bc000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0b085bfc00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0b004bc000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0404010008080808; + *((unsigned long *)&__m256i_result[2]) = 0x0408010008080808; + *((unsigned long *)&__m256i_result[1]) = 0x0404010008080808; + *((unsigned long *)&__m256i_result[0]) = 0x0408010008080808; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000012; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0404010008080808; + *((unsigned long *)&__m256i_op0[2]) = 0x0408010008080808; + *((unsigned long *)&__m256i_op0[1]) = 0x0404010008080808; + *((unsigned long *)&__m256i_op0[0]) = 0x0408010008080808; + *((unsigned long *)&__m256i_result[3]) = 0x0505070804040404; + *((unsigned long *)&__m256i_result[2]) = 0x0504070804040404; + *((unsigned long *)&__m256i_result[1]) = 0x0505070804040404; + *((unsigned long *)&__m256i_result[0]) = 0x0504070804040404; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006ffff0004ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0002ffff0000ff00; + *((unsigned long *)&__m256i_op0[1]) = 0x0006ffff0004ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0002ffff0000ff00; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000000d; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000e; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000000d; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000e; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000032; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000003c000000032; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[2]) = 0x001000100010000a; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[0]) = 0x001000060010000a; + __m256i_out = __lasx_xvclz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0003800400038004; + *((unsigned long *)&__m256i_op0[2]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_op0[1]) = 0x0003800400038004; + *((unsigned long *)&__m256i_op0[0]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000000e; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000000e; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000c; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0000000008080800; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0000000008080800; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op0[2]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op0[0]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0004001000100004; + *((unsigned long *)&__m256i_result[2]) = 0x0004000400100010; + *((unsigned long *)&__m256i_result[1]) = 0x0004001000100004; + *((unsigned long *)&__m256i_result[0]) = 0x0004000400100010; + __m256i_out = __lasx_xvclz_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000020; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000007f8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000007f8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000029; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000029; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvclz_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000027; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000027; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvclz_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvclz_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpcnt.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpcnt.c new file mode 100644 index 00000000000..d2e742e8104 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpcnt.c @@ -0,0 +1,526 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x639c3fffb5dffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xb8c7800094400001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0008000e000c000f; + *((unsigned long *)&__m256i_result[0]) = 0x0009000100040001; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_op0[2]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_op0[1]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_op0[0]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_result[3]) = 0x0004000400040805; + *((unsigned long *)&__m256i_result[2]) = 0x0004000400040805; + *((unsigned long *)&__m256i_result[1]) = 0x0004000400040805; + *((unsigned long *)&__m256i_result[0]) = 0x0004000400040805; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcf800fffcf800; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[3]) = 0x0008000800000003; + *((unsigned long *)&__m256i_result[2]) = 0x0806050008060500; + *((unsigned long *)&__m256i_result[1]) = 0x0008000800000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000000100; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002e2100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000040002; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x34000000fff00000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff6e00000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x3380000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x363c0000fff3c000; + *((unsigned long *)&__m256i_result[3]) = 0x000000030000000c; + *((unsigned long *)&__m256i_result[2]) = 0x0000001100000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000500000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000800000010; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00c100c100c100c1; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00c100c100c100c1; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0003000300030003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0003000300030003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0000080800000808; + *((unsigned long *)&__m256i_result[1]) = 0x0000080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0000080800000808; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[0]) = 0x0808080808080808; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffe36780; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffe36780; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[2]) = 0x0100000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000008050501; + *((unsigned long *)&__m256i_result[0]) = 0x0100000100000001; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000020; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000001555; + *((unsigned long *)&__m256i_op0[2]) = 0x000015554001c003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000001555; + *((unsigned long *)&__m256i_op0[0]) = 0x000015554001c003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000304; + *((unsigned long *)&__m256i_result[2]) = 0x0000030401010202; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000304; + *((unsigned long *)&__m256i_result[0]) = 0x0000030401010202; + __m256i_out = __lasx_xvpcnt_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f433c78; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000a0008; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000030000; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000030000; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000030000; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000030000; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op0[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000010000685e; + *((unsigned long *)&__m256i_op0[0]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000008; + *((unsigned long *)&__m256i_result[2]) = 0x000000040000001b; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000008; + *((unsigned long *)&__m256i_result[0]) = 0x000000040000001b; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000b000b000b000b; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000b000b000b000b; + __m256i_out = __lasx_xvpcnt_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000001f00000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000001f00000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000001200000012; + *((unsigned long *)&__m256i_result[2]) = 0x0000001200000012; + *((unsigned long *)&__m256i_result[1]) = 0x0000001200000012; + *((unsigned long *)&__m256i_result[0]) = 0x0000001200000012; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvpcnt_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:40:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138624 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp839689vqx; Tue, 12 Sep 2023 21:05:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGO9j72gRZqEvnfA0ErA+JpE6S3l2q+YHgfBOGUEVnnjnf4sjGrWwTG/4Q5ulFEj85hxo9Z X-Received: by 2002:a2e:8e8d:0:b0:2bc:d6d8:fd35 with SMTP id z13-20020a2e8e8d000000b002bcd6d8fd35mr1153981ljk.47.1694577925807; Tue, 12 Sep 2023 21:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577925; cv=none; d=google.com; s=arc-20160816; b=qTU/KnvZrDdtnmE4I3fSMPLhFIUZCxtteBkDywY/kbBTLG4xr6FE+72xr1lPQttr0T fotGvPDVWxoFjeao0nrBGWn0Lk9aHVirphO/ny+nEpCaMS3L+Nd2O1oT3agSn5ptyHjE +MYJtmPSc0aw4OWiM+EOkp7JoL27C6osPAjVNfn+0UrGF6lUN5vxZqTvkHsNi6k1SCIw s3szOYTenKlxmocQ/IxOAPzOk1/gMsec/OzRN9gCQ0McUgyqEHMPxoELV90VcmuIFIyp 4GtDmj3+tpRfo7/LWJogoTcn++OaZdSWXSmxfyYtuD4Z+rn1gPByQ0jS+gzKXOr7ery6 oWzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=n0xeQqovIfoOwBHiRX8Lwe03otrOD40dGg0eOe0hPvU=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=jYTN65PWrMqYpnYMbOXCoh6E6OdfAggZjLzLHIjE/HDZj1IPmZ1Limr3IJemf3lOjN xpii/VQMeS61AcDSOc7ycEtKYqm6QGKewTouFlto+NS7R14wVH7IIfJBi/9pQvNozZ7R 8Knmz0WkNY8Bpz9kJt1AUYNuUYD8K/9Xuz5Mw6xKXIru/AfJyoz1jVBQXwNAk+vCWsZ2 V6cfX97a5qhOBZzoX8BHLFAfMW9HA8HMtgDNLOMxgV9EXC1yPLOXmO//D/5TQMO+swn5 Dy3i72chMEnhlNKa5gX8dfX9MV2w8dg+h/A5UrrLgNn87b9YwxsY+yfJGh2ivj9C5vIG BrsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id kk27-20020a170907767b00b00982a5377650si10494766ejc.247.2023.09.12.21.05.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:05:25 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0BF38384DF0D for ; Wed, 13 Sep 2023 03:43:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 0044F396E47E for ; Wed, 13 Sep 2023 03:40:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0044F396E47E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8Cxh+gzLwFlcTEmAA--.38489S3; Wed, 13 Sep 2023 11:40:35 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S6; Wed, 13 Sep 2023 11:40:35 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 12/22] LoongArch: Add tests for ASX builtin functions. Date: Wed, 13 Sep 2023 11:40:19 +0800 Message-Id: <20230913034026.7751-3-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S6 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBQAAAsS X-Coremail-Antispam: 1Uk129KBj9DXoWDKF4UWF4rCF4DZF1kXr47Awc_yoW8XFyrZF XEgF4IkryqvFWxAw4UJa17K3s7tFs3GF1jqF9rX3Wvy3Z3J3sxWan5t3Wvkr1DJ3yUG343 AF13Gry3WFy7Zr4DtosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1T uYvTs0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9f nUUIcSsGvfJTRUUUba8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4 v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0 rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267 AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7Cj xVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zV CFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW3AVW8Xw1lYx0E x4A2jsIE14v26r4UJVWxJr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4 x0Y40E4IxF1VCIxcxG6Fyj6r4UJwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67 kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY 6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIx AIcVC2z280aVAFwI0_Gr1j6F4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcSsG vfC2KfnxnUUI43ZEXa7IU5IoGPUUUUU== X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893743214835381 X-GMAIL-MSGID: 1776893743214835381 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-builtin.c: New test. --- .../loongarch/vector/lasx/lasx-builtin.c | 1509 +++++++++++++++++ 1 file changed, 1509 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-builtin.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-builtin.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-builtin.c new file mode 100644 index 00000000000..ecb8d639bdd --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-builtin.c @@ -0,0 +1,1509 @@ +/* Test builtins for LOONGARCH LASX ASE instructions */ +/* { dg-do compile } */ +/* { dg-options "-mlasx" } */ +/* { dg-final { scan-assembler-times "lasx_xvsll_b:.*xvsll\\.b.*lasx_xvsll_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsll_h:.*xvsll\\.h.*lasx_xvsll_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsll_w:.*xvsll\\.w.*lasx_xvsll_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsll_d:.*xvsll\\.d.*lasx_xvsll_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslli_b:.*xvslli\\.b.*lasx_xvslli_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslli_h:.*xvslli\\.h.*lasx_xvslli_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslli_w:.*xvslli\\.w.*lasx_xvslli_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslli_d:.*xvslli\\.d.*lasx_xvslli_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsra_b:.*xvsra\\.b.*lasx_xvsra_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsra_h:.*xvsra\\.h.*lasx_xvsra_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsra_w:.*xvsra\\.w.*lasx_xvsra_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsra_d:.*xvsra\\.d.*lasx_xvsra_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrai_b:.*xvsrai\\.b.*lasx_xvsrai_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrai_h:.*xvsrai\\.h.*lasx_xvsrai_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrai_w:.*xvsrai\\.w.*lasx_xvsrai_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrai_d:.*xvsrai\\.d.*lasx_xvsrai_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrar_b:.*xvsrar\\.b.*lasx_xvsrar_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrar_h:.*xvsrar\\.h.*lasx_xvsrar_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrar_w:.*xvsrar\\.w.*lasx_xvsrar_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrar_d:.*xvsrar\\.d.*lasx_xvsrar_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrari_b:.*xvsrari\\.b.*lasx_xvsrari_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrari_h:.*xvsrari\\.h.*lasx_xvsrari_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrari_w:.*xvsrari\\.w.*lasx_xvsrari_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrari_d:.*xvsrari\\.d.*lasx_xvsrari_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrl_b:.*xvsrl\\.b.*lasx_xvsrl_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrl_h:.*xvsrl\\.h.*lasx_xvsrl_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrl_w:.*xvsrl\\.w.*lasx_xvsrl_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrl_d:.*xvsrl\\.d.*lasx_xvsrl_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrli_b:.*xvsrli\\.b.*lasx_xvsrli_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrli_h:.*xvsrli\\.h.*lasx_xvsrli_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrli_w:.*xvsrli\\.w.*lasx_xvsrli_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrli_d:.*xvsrli\\.d.*lasx_xvsrli_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlr_b:.*xvsrlr\\.b.*lasx_xvsrlr_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlr_h:.*xvsrlr\\.h.*lasx_xvsrlr_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlr_w:.*xvsrlr\\.w.*lasx_xvsrlr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlr_d:.*xvsrlr\\.d.*lasx_xvsrlr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlri_b:.*xvsrlri\\.b.*lasx_xvsrlri_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlri_h:.*xvsrlri\\.h.*lasx_xvsrlri_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlri_w:.*xvsrlri\\.w.*lasx_xvsrlri_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlri_d:.*xvsrlri\\.d.*lasx_xvsrlri_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclr_b:.*xvbitclr\\.b.*lasx_xvbitclr_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclr_h:.*xvbitclr\\.h.*lasx_xvbitclr_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclr_w:.*xvbitclr\\.w.*lasx_xvbitclr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclr_d:.*xvbitclr\\.d.*lasx_xvbitclr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclri_b:.*xvbitclri\\.b.*lasx_xvbitclri_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclri_h:.*xvbitclri\\.h.*lasx_xvbitclri_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclri_w:.*xvbitclri\\.w.*lasx_xvbitclri_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitclri_d:.*xvbitclri\\.d.*lasx_xvbitclri_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitset_b:.*xvbitset\\.b.*lasx_xvbitset_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitset_h:.*xvbitset\\.h.*lasx_xvbitset_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitset_w:.*xvbitset\\.w.*lasx_xvbitset_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitset_d:.*xvbitset\\.d.*lasx_xvbitset_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitseti_b:.*xvbitseti\\.b.*lasx_xvbitseti_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitseti_h:.*xvbitseti\\.h.*lasx_xvbitseti_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitseti_w:.*xvbitseti\\.w.*lasx_xvbitseti_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitseti_d:.*xvbitseti\\.d.*lasx_xvbitseti_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrev_b:.*xvbitrev\\.b.*lasx_xvbitrev_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrev_h:.*xvbitrev\\.h.*lasx_xvbitrev_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrev_w:.*xvbitrev\\.w.*lasx_xvbitrev_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrev_d:.*xvbitrev\\.d.*lasx_xvbitrev_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrevi_b:.*xvbitrevi\\.b.*lasx_xvbitrevi_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrevi_h:.*xvbitrevi\\.h.*lasx_xvbitrevi_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrevi_w:.*xvbitrevi\\.w.*lasx_xvbitrevi_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitrevi_d:.*xvbitrevi\\.d.*lasx_xvbitrevi_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadd_b:.*xvadd\\.b.*lasx_xvadd_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadd_h:.*xvadd\\.h.*lasx_xvadd_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadd_w:.*xvadd\\.w.*lasx_xvadd_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadd_d:.*xvadd\\.d.*lasx_xvadd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddi_bu:.*xvaddi\\.bu.*lasx_xvaddi_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddi_hu:.*xvaddi\\.hu.*lasx_xvaddi_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddi_wu:.*xvaddi\\.wu.*lasx_xvaddi_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddi_du:.*xvaddi\\.du.*lasx_xvaddi_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsub_b:.*xvsub\\.b.*lasx_xvsub_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsub_h:.*xvsub\\.h.*lasx_xvsub_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsub_w:.*xvsub\\.w.*lasx_xvsub_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsub_d:.*xvsub\\.d.*lasx_xvsub_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubi_bu:.*xvsubi\\.bu.*lasx_xvsubi_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubi_hu:.*xvsubi\\.hu.*lasx_xvsubi_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubi_wu:.*xvsubi\\.wu.*lasx_xvsubi_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubi_du:.*xvsubi\\.du.*lasx_xvsubi_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_b:.*xvmax\\.b.*lasx_xvmax_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_h:.*xvmax\\.h.*lasx_xvmax_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_w:.*xvmax\\.w.*lasx_xvmax_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_d:.*xvmax\\.d.*lasx_xvmax_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_b:.*xvmaxi\\.b.*lasx_xvmaxi_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_h:.*xvmaxi\\.h.*lasx_xvmaxi_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_w:.*xvmaxi\\.w.*lasx_xvmaxi_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_d:.*xvmaxi\\.d.*lasx_xvmaxi_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_bu:.*xvmax\\.bu.*lasx_xvmax_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_hu:.*xvmax\\.hu.*lasx_xvmax_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_wu:.*xvmax\\.wu.*lasx_xvmax_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmax_du:.*xvmax\\.du.*lasx_xvmax_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_bu:.*xvmaxi\\.bu.*lasx_xvmaxi_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_hu:.*xvmaxi\\.hu.*lasx_xvmaxi_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_wu:.*xvmaxi\\.wu.*lasx_xvmaxi_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaxi_du:.*xvmaxi\\.du.*lasx_xvmaxi_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_b:.*xvmin\\.b.*lasx_xvmin_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_h:.*xvmin\\.h.*lasx_xvmin_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_w:.*xvmin\\.w.*lasx_xvmin_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_d:.*xvmin\\.d.*lasx_xvmin_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_b:.*xvmini\\.b.*lasx_xvmini_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_h:.*xvmini\\.h.*lasx_xvmini_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_w:.*xvmini\\.w.*lasx_xvmini_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_d:.*xvmini\\.d.*lasx_xvmini_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_bu:.*xvmin\\.bu.*lasx_xvmin_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_hu:.*xvmin\\.hu.*lasx_xvmin_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_wu:.*xvmin\\.wu.*lasx_xvmin_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmin_du:.*xvmin\\.du.*lasx_xvmin_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_bu:.*xvmini\\.bu.*lasx_xvmini_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_hu:.*xvmini\\.hu.*lasx_xvmini_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_wu:.*xvmini\\.wu.*lasx_xvmini_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmini_du:.*xvmini\\.du.*lasx_xvmini_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseq_b:.*xvseq\\.b.*lasx_xvseq_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseq_h:.*xvseq\\.h.*lasx_xvseq_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseq_w:.*xvseq\\.w.*lasx_xvseq_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseq_d:.*xvseq\\.d.*lasx_xvseq_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseqi_b:.*xvseqi\\.b.*lasx_xvseqi_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseqi_h:.*xvseqi\\.h.*lasx_xvseqi_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseqi_w:.*xvseqi\\.w.*lasx_xvseqi_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvseqi_d:.*xvseqi\\.d.*lasx_xvseqi_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_b:.*xvslt\\.b.*lasx_xvslt_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_h:.*xvslt\\.h.*lasx_xvslt_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_w:.*xvslt\\.w.*lasx_xvslt_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_d:.*xvslt\\.d.*lasx_xvslt_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_b:.*xvslti\\.b.*lasx_xvslti_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_h:.*xvslti\\.h.*lasx_xvslti_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_w:.*xvslti\\.w.*lasx_xvslti_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_d:.*xvslti\\.d.*lasx_xvslti_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_bu:.*xvslt\\.bu.*lasx_xvslt_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_hu:.*xvslt\\.hu.*lasx_xvslt_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_wu:.*xvslt\\.wu.*lasx_xvslt_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslt_du:.*xvslt\\.du.*lasx_xvslt_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_bu:.*xvslti\\.bu.*lasx_xvslti_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_hu:.*xvslti\\.hu.*lasx_xvslti_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_wu:.*xvslti\\.wu.*lasx_xvslti_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslti_du:.*xvslti\\.du.*lasx_xvslti_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_b:.*xvsle\\.b.*lasx_xvsle_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_h:.*xvsle\\.h.*lasx_xvsle_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_w:.*xvsle\\.w.*lasx_xvsle_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_d:.*xvsle\\.d.*lasx_xvsle_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_b:.*xvslei\\.b.*lasx_xvslei_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_h:.*xvslei\\.h.*lasx_xvslei_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_w:.*xvslei\\.w.*lasx_xvslei_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_d:.*xvslei\\.d.*lasx_xvslei_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_bu:.*xvsle\\.bu.*lasx_xvsle_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_hu:.*xvsle\\.hu.*lasx_xvsle_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_wu:.*xvsle\\.wu.*lasx_xvsle_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsle_du:.*xvsle\\.du.*lasx_xvsle_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_bu:.*xvslei\\.bu.*lasx_xvslei_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_hu:.*xvslei\\.hu.*lasx_xvslei_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_wu:.*xvslei\\.wu.*lasx_xvslei_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvslei_du:.*xvslei\\.du.*lasx_xvslei_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_b:.*xvsat\\.b.*lasx_xvsat_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_h:.*xvsat\\.h.*lasx_xvsat_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_w:.*xvsat\\.w.*lasx_xvsat_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_d:.*xvsat\\.d.*lasx_xvsat_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_bu:.*xvsat\\.bu.*lasx_xvsat_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_hu:.*xvsat\\.hu.*lasx_xvsat_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_wu:.*xvsat\\.wu.*lasx_xvsat_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsat_du:.*xvsat\\.du.*lasx_xvsat_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadda_b:.*xvadda\\.b.*lasx_xvadda_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadda_h:.*xvadda\\.h.*lasx_xvadda_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadda_w:.*xvadda\\.w.*lasx_xvadda_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadda_d:.*xvadda\\.d.*lasx_xvadda_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_b:.*xvsadd\\.b.*lasx_xvsadd_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_h:.*xvsadd\\.h.*lasx_xvsadd_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_w:.*xvsadd\\.w.*lasx_xvsadd_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_d:.*xvsadd\\.d.*lasx_xvsadd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_bu:.*xvsadd\\.bu.*lasx_xvsadd_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_hu:.*xvsadd\\.hu.*lasx_xvsadd_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_wu:.*xvsadd\\.wu.*lasx_xvsadd_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsadd_du:.*xvsadd\\.du.*lasx_xvsadd_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_b:.*xvavg\\.b.*lasx_xvavg_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_h:.*xvavg\\.h.*lasx_xvavg_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_w:.*xvavg\\.w.*lasx_xvavg_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_d:.*xvavg\\.d.*lasx_xvavg_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_bu:.*xvavg\\.bu.*lasx_xvavg_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_hu:.*xvavg\\.hu.*lasx_xvavg_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_wu:.*xvavg\\.wu.*lasx_xvavg_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavg_du:.*xvavg\\.du.*lasx_xvavg_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_b:.*xvavgr\\.b.*lasx_xvavgr_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_h:.*xvavgr\\.h.*lasx_xvavgr_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_w:.*xvavgr\\.w.*lasx_xvavgr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_d:.*xvavgr\\.d.*lasx_xvavgr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_bu:.*xvavgr\\.bu.*lasx_xvavgr_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_hu:.*xvavgr\\.hu.*lasx_xvavgr_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_wu:.*xvavgr\\.wu.*lasx_xvavgr_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvavgr_du:.*xvavgr\\.du.*lasx_xvavgr_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_b:.*xvssub\\.b.*lasx_xvssub_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_h:.*xvssub\\.h.*lasx_xvssub_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_w:.*xvssub\\.w.*lasx_xvssub_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_d:.*xvssub\\.d.*lasx_xvssub_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_bu:.*xvssub\\.bu.*lasx_xvssub_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_hu:.*xvssub\\.hu.*lasx_xvssub_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_wu:.*xvssub\\.wu.*lasx_xvssub_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssub_du:.*xvssub\\.du.*lasx_xvssub_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_b:.*xvabsd\\.b.*lasx_xvabsd_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_h:.*xvabsd\\.h.*lasx_xvabsd_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_w:.*xvabsd\\.w.*lasx_xvabsd_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_d:.*xvabsd\\.d.*lasx_xvabsd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_bu:.*xvabsd\\.bu.*lasx_xvabsd_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_hu:.*xvabsd\\.hu.*lasx_xvabsd_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_wu:.*xvabsd\\.wu.*lasx_xvabsd_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvabsd_du:.*xvabsd\\.du.*lasx_xvabsd_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmul_b:.*xvmul\\.b.*lasx_xvmul_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmul_h:.*xvmul\\.h.*lasx_xvmul_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmul_w:.*xvmul\\.w.*lasx_xvmul_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmul_d:.*xvmul\\.d.*lasx_xvmul_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmadd_b:.*xvmadd\\.b.*lasx_xvmadd_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmadd_h:.*xvmadd\\.h.*lasx_xvmadd_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmadd_w:.*xvmadd\\.w.*lasx_xvmadd_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmadd_d:.*xvmadd\\.d.*lasx_xvmadd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmsub_b:.*xvmsub\\.b.*lasx_xvmsub_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmsub_h:.*xvmsub\\.h.*lasx_xvmsub_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmsub_w:.*xvmsub\\.w.*lasx_xvmsub_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmsub_d:.*xvmsub\\.d.*lasx_xvmsub_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_b:.*xvdiv\\.b.*lasx_xvdiv_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_h:.*xvdiv\\.h.*lasx_xvdiv_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_w:.*xvdiv\\.w.*lasx_xvdiv_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_d:.*xvdiv\\.d.*lasx_xvdiv_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_bu:.*xvdiv\\.bu.*lasx_xvdiv_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_hu:.*xvdiv\\.hu.*lasx_xvdiv_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_wu:.*xvdiv\\.wu.*lasx_xvdiv_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvdiv_du:.*xvdiv\\.du.*lasx_xvdiv_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_h_b:.*xvhaddw\\.h\\.b.*lasx_xvhaddw_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_w_h:.*xvhaddw\\.w\\.h.*lasx_xvhaddw_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_d_w:.*xvhaddw\\.d\\.w.*lasx_xvhaddw_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_hu_bu:.*xvhaddw\\.hu\\.bu.*lasx_xvhaddw_hu_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_wu_hu:.*xvhaddw\\.wu\\.hu.*lasx_xvhaddw_wu_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_du_wu:.*xvhaddw\\.du\\.wu.*lasx_xvhaddw_du_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_h_b:.*xvhsubw\\.h\\.b.*lasx_xvhsubw_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_w_h:.*xvhsubw\\.w\\.h.*lasx_xvhsubw_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_d_w:.*xvhsubw\\.d\\.w.*lasx_xvhsubw_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_hu_bu:.*xvhsubw\\.hu\\.bu.*lasx_xvhsubw_hu_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_wu_hu:.*xvhsubw\\.wu\\.hu.*lasx_xvhsubw_wu_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_du_wu:.*xvhsubw\\.du\\.wu.*lasx_xvhsubw_du_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_b:.*xvmod\\.b.*lasx_xvmod_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_h:.*xvmod\\.h.*lasx_xvmod_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_w:.*xvmod\\.w.*lasx_xvmod_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_d:.*xvmod\\.d.*lasx_xvmod_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_bu:.*xvmod\\.bu.*lasx_xvmod_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_hu:.*xvmod\\.hu.*lasx_xvmod_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_wu:.*xvmod\\.wu.*lasx_xvmod_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmod_du:.*xvmod\\.du.*lasx_xvmod_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepl128vei_b:.*xvrepl128vei\\.b.*lasx_xvrepl128vei_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepl128vei_h:.*xvrepl128vei\\.h.*lasx_xvrepl128vei_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepl128vei_w:.*xvrepl128vei\\.w.*lasx_xvrepl128vei_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepl128vei_d:.*xvrepl128vei\\.d.*lasx_xvrepl128vei_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickev_b:.*xvpickev\\.b.*lasx_xvpickev_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickev_h:.*xvpickev\\.h.*lasx_xvpickev_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickev_w:.*xvpickev\\.w.*lasx_xvpickev_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickev_d:.*xvilvl\\.d.*lasx_xvpickev_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickod_b:.*xvpickod\\.b.*lasx_xvpickod_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickod_h:.*xvpickod\\.h.*lasx_xvpickod_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickod_w:.*xvpickod\\.w.*lasx_xvpickod_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickod_d:.*xvilvh\\.d.*lasx_xvpickod_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvh_b:.*xvilvh\\.b.*lasx_xvilvh_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvh_h:.*xvilvh\\.h.*lasx_xvilvh_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvh_w:.*xvilvh\\.w.*lasx_xvilvh_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvh_d:.*xvilvh\\.d.*lasx_xvilvh_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvl_b:.*xvilvl\\.b.*lasx_xvilvl_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvl_h:.*xvilvl\\.h.*lasx_xvilvl_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvl_w:.*xvilvl\\.w.*lasx_xvilvl_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvilvl_d:.*xvilvl\\.d.*lasx_xvilvl_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackev_b:.*xvpackev\\.b.*lasx_xvpackev_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackev_h:.*xvpackev\\.h.*lasx_xvpackev_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackev_w:.*xvpackev\\.w.*lasx_xvpackev_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackev_d:.*xvilvl\\.d.*lasx_xvpackev_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackod_b:.*xvpackod\\.b.*lasx_xvpackod_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackod_h:.*xvpackod\\.h.*lasx_xvpackod_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackod_w:.*xvpackod\\.w.*lasx_xvpackod_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpackod_d:.*xvilvh\\.d.*lasx_xvpackod_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf_b:.*xvshuf\\.b.*lasx_xvshuf_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf_h:.*xvshuf\\.h.*lasx_xvshuf_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf_w:.*xvshuf\\.w.*lasx_xvshuf_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf_d:.*xvshuf\\.d.*lasx_xvshuf_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvand_v:.*xvand\\.v.*lasx_xvand_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvandi_b:.*xvandi\\.b.*lasx_xvandi_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvor_v:.*xvor\\.v.*lasx_xvor_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvori_b:.*xvbitseti\\.b.*lasx_xvori_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvnor_v:.*xvnor\\.v.*lasx_xvnor_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvnori_b:.*xvnori\\.b.*lasx_xvnori_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvxor_v:.*xvxor\\.v.*lasx_xvxor_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvxori_b:.*xvbitrevi\\.b.*lasx_xvxori_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitsel_v:.*xvbitsel\\.v.*lasx_xvbitsel_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbitseli_b:.*xvbitseli\\.b.*lasx_xvbitseli_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf4i_b:.*xvshuf4i\\.b.*lasx_xvshuf4i_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf4i_h:.*xvshuf4i\\.h.*lasx_xvshuf4i_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf4i_w:.*xvshuf4i\\.w.*lasx_xvshuf4i_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplgr2vr_b:.*xvreplgr2vr\\.b.*lasx_xvreplgr2vr_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplgr2vr_h:.*xvreplgr2vr\\.h.*lasx_xvreplgr2vr_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplgr2vr_w:.*xvreplgr2vr\\.w.*lasx_xvreplgr2vr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplgr2vr_d:.*xvreplgr2vr\\.d.*lasx_xvreplgr2vr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpcnt_b:.*xvpcnt\\.b.*lasx_xvpcnt_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpcnt_h:.*xvpcnt\\.h.*lasx_xvpcnt_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpcnt_w:.*xvpcnt\\.w.*lasx_xvpcnt_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpcnt_d:.*xvpcnt\\.d.*lasx_xvpcnt_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclo_b:.*xvclo\\.b.*lasx_xvclo_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclo_h:.*xvclo\\.h.*lasx_xvclo_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclo_w:.*xvclo\\.w.*lasx_xvclo_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclo_d:.*xvclo\\.d.*lasx_xvclo_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclz_b:.*xvclz\\.b.*lasx_xvclz_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclz_h:.*xvclz\\.h.*lasx_xvclz_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclz_w:.*xvclz\\.w.*lasx_xvclz_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvclz_d:.*xvclz\\.d.*lasx_xvclz_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfadd_s:.*xvfadd\\.s.*lasx_xvfadd_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfadd_d:.*xvfadd\\.d.*lasx_xvfadd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfsub_s:.*xvfsub\\.s.*lasx_xvfsub_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfsub_d:.*xvfsub\\.d.*lasx_xvfsub_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmul_s:.*xvfmul\\.s.*lasx_xvfmul_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmul_d:.*xvfmul\\.d.*lasx_xvfmul_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfdiv_s:.*xvfdiv\\.s.*lasx_xvfdiv_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfdiv_d:.*xvfdiv\\.d.*lasx_xvfdiv_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcvt_h_s:.*xvfcvt\\.h\\.s.*lasx_xvfcvt_h_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcvt_s_d:.*xvfcvt\\.s\\.d.*lasx_xvfcvt_s_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmin_s:.*xvfmin\\.s.*lasx_xvfmin_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmin_d:.*xvfmin\\.d.*lasx_xvfmin_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmina_s:.*xvfmina\\.s.*lasx_xvfmina_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmina_d:.*xvfmina\\.d.*lasx_xvfmina_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmax_s:.*xvfmax\\.s.*lasx_xvfmax_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmax_d:.*xvfmax\\.d.*lasx_xvfmax_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmaxa_s:.*xvfmaxa\\.s.*lasx_xvfmaxa_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmaxa_d:.*xvfmaxa\\.d.*lasx_xvfmaxa_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfclass_s:.*xvfclass\\.s.*lasx_xvfclass_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfclass_d:.*xvfclass\\.d.*lasx_xvfclass_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfsqrt_s:.*xvfsqrt\\.s.*lasx_xvfsqrt_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfsqrt_d:.*xvfsqrt\\.d.*lasx_xvfsqrt_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrecip_s:.*xvfrecip\\.s.*lasx_xvfrecip_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrecip_d:.*xvfrecip\\.d.*lasx_xvfrecip_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrint_s:.*xvfrint\\.s.*lasx_xvfrint_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrint_d:.*xvfrint\\.d.*lasx_xvfrint_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrsqrt_s:.*xvfrsqrt\\.s.*lasx_xvfrsqrt_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrsqrt_d:.*xvfrsqrt\\.d.*lasx_xvfrsqrt_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvflogb_s:.*xvflogb\\.s.*lasx_xvflogb_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvflogb_d:.*xvflogb\\.d.*lasx_xvflogb_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcvth_s_h:.*xvfcvth\\.s\\.h.*lasx_xvfcvth_s_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcvth_d_s:.*xvfcvth\\.d\\.s.*lasx_xvfcvth_d_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcvtl_s_h:.*xvfcvtl\\.s\\.h.*lasx_xvfcvtl_s_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcvtl_d_s:.*xvfcvtl\\.d\\.s.*lasx_xvfcvtl_d_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftint_w_s:.*xvftint\\.w\\.s.*lasx_xvftint_w_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftint_l_d:.*xvftint\\.l\\.d.*lasx_xvftint_l_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftint_wu_s:.*xvftint\\.wu\\.s.*lasx_xvftint_wu_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftint_lu_d:.*xvftint\\.lu\\.d.*lasx_xvftint_lu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrz_w_s:.*xvftintrz\\.w\\.s.*lasx_xvftintrz_w_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrz_l_d:.*xvftintrz\\.l\\.d.*lasx_xvftintrz_l_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrz_wu_s:.*xvftintrz\\.wu\\.s.*lasx_xvftintrz_wu_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrz_lu_d:.*xvftintrz\\.lu\\.d.*lasx_xvftintrz_lu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffint_s_w:.*xvffint\\.s\\.w.*lasx_xvffint_s_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffint_d_l:.*xvffint\\.d\\.l.*lasx_xvffint_d_l" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffint_s_wu:.*xvffint\\.s\\.wu.*lasx_xvffint_s_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffint_d_lu:.*xvffint\\.d\\.lu.*lasx_xvffint_d_lu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve_b:.*xvreplve\\.b.*lasx_xvreplve_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve_h:.*xvreplve\\.h.*lasx_xvreplve_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve_w:.*xvreplve\\.w.*lasx_xvreplve_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve_d:.*xvreplve\\.d.*lasx_xvreplve_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpermi_w:.*xvpermi\\.w.*lasx_xvpermi_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvandn_v:.*xvandn\\.v.*lasx_xvandn_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvneg_b:.*xvneg\\.b.*lasx_xvneg_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvneg_h:.*xvneg\\.h.*lasx_xvneg_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvneg_w:.*xvneg\\.w.*lasx_xvneg_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvneg_d:.*xvneg\\.d.*lasx_xvneg_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_b:.*xvmuh\\.b.*lasx_xvmuh_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_h:.*xvmuh\\.h.*lasx_xvmuh_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_w:.*xvmuh\\.w.*lasx_xvmuh_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_d:.*xvmuh\\.d.*lasx_xvmuh_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_bu:.*xvmuh\\.bu.*lasx_xvmuh_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_hu:.*xvmuh\\.hu.*lasx_xvmuh_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_wu:.*xvmuh\\.wu.*lasx_xvmuh_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmuh_du:.*xvmuh\\.du.*lasx_xvmuh_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsllwil_h_b:.*xvsllwil\\.h\\.b.*lasx_xvsllwil_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsllwil_w_h:.*xvsllwil\\.w\\.h.*lasx_xvsllwil_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsllwil_d_w:.*xvsllwil\\.d\\.w.*lasx_xvsllwil_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsllwil_hu_bu:.*xvsllwil\\.hu\\.bu.*lasx_xvsllwil_hu_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsllwil_wu_hu:.*xvsllwil\\.wu\\.hu.*lasx_xvsllwil_wu_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsllwil_du_wu:.*xvsllwil\\.du\\.wu.*lasx_xvsllwil_du_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsran_b_h:.*xvsran\\.b\\.h.*lasx_xvsran_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsran_h_w:.*xvsran\\.h\\.w.*lasx_xvsran_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsran_w_d:.*xvsran\\.w\\.d.*lasx_xvsran_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssran_b_h:.*xvssran\\.b\\.h.*lasx_xvssran_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssran_h_w:.*xvssran\\.h\\.w.*lasx_xvssran_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssran_w_d:.*xvssran\\.w\\.d.*lasx_xvssran_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssran_bu_h:.*xvssran\\.bu\\.h.*lasx_xvssran_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssran_hu_w:.*xvssran\\.hu\\.w.*lasx_xvssran_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssran_wu_d:.*xvssran\\.wu\\.d.*lasx_xvssran_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarn_b_h:.*xvsrarn\\.b\\.h.*lasx_xvsrarn_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarn_h_w:.*xvsrarn\\.h\\.w.*lasx_xvsrarn_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarn_w_d:.*xvsrarn\\.w\\.d.*lasx_xvsrarn_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarn_b_h:.*xvssrarn\\.b\\.h.*lasx_xvssrarn_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarn_h_w:.*xvssrarn\\.h\\.w.*lasx_xvssrarn_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarn_w_d:.*xvssrarn\\.w\\.d.*lasx_xvssrarn_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarn_bu_h:.*xvssrarn\\.bu\\.h.*lasx_xvssrarn_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarn_hu_w:.*xvssrarn\\.hu\\.w.*lasx_xvssrarn_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarn_wu_d:.*xvssrarn\\.wu\\.d.*lasx_xvssrarn_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrln_b_h:.*xvsrln\\.b\\.h.*lasx_xvsrln_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrln_h_w:.*xvsrln\\.h\\.w.*lasx_xvsrln_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrln_w_d:.*xvsrln\\.w\\.d.*lasx_xvsrln_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrln_bu_h:.*xvssrln\\.bu\\.h.*lasx_xvssrln_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrln_hu_w:.*xvssrln\\.hu\\.w.*lasx_xvssrln_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrln_wu_d:.*xvssrln\\.wu\\.d.*lasx_xvssrln_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrn_b_h:.*xvsrlrn\\.b\\.h.*lasx_xvsrlrn_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrn_h_w:.*xvsrlrn\\.h\\.w.*lasx_xvsrlrn_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrn_w_d:.*xvsrlrn\\.w\\.d.*lasx_xvsrlrn_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrn_bu_h:.*xvssrlrn\\.bu\\.h.*lasx_xvssrlrn_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrn_hu_w:.*xvssrlrn\\.hu\\.w.*lasx_xvssrlrn_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrn_wu_d:.*xvssrlrn\\.wu\\.d.*lasx_xvssrlrn_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrstpi_b:.*xvfrstpi\\.b.*lasx_xvfrstpi_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrstpi_h:.*xvfrstpi\\.h.*lasx_xvfrstpi_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrstp_b:.*xvfrstp\\.b.*lasx_xvfrstp_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrstp_h:.*xvfrstp\\.h.*lasx_xvfrstp_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvshuf4i_d:.*xvshuf4i\\.d.*lasx_xvshuf4i_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbsrl_v:.*xvbsrl\\.v.*lasx_xvbsrl_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvbsll_v:.*xvbsll\\.v.*lasx_xvbsll_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvextrins_b:.*xvextrins\\.b.*lasx_xvextrins_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvextrins_h:.*xvextrins\\.h.*lasx_xvextrins_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvextrins_w:.*xvextrins\\.w.*lasx_xvextrins_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvextrins_d:.*xvextrins\\.d.*lasx_xvextrins_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmskltz_b:.*xvmskltz\\.b.*lasx_xvmskltz_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmskltz_h:.*xvmskltz\\.h.*lasx_xvmskltz_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmskltz_w:.*xvmskltz\\.w.*lasx_xvmskltz_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmskltz_d:.*xvmskltz\\.d.*lasx_xvmskltz_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsigncov_b:.*xvsigncov\\.b.*lasx_xvsigncov_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsigncov_h:.*xvsigncov\\.h.*lasx_xvsigncov_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsigncov_w:.*xvsigncov\\.w.*lasx_xvsigncov_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsigncov_d:.*xvsigncov\\.d.*lasx_xvsigncov_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmadd_s:.*xvfmadd\\.s.*lasx_xvfmadd_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmadd_d:.*xvfmadd\\.d.*lasx_xvfmadd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmsub_s:.*xvfmsub\\.s.*lasx_xvfmsub_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfmsub_d:.*xvfmsub\\.d.*lasx_xvfmsub_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfnmadd_s:.*xvfnmadd\\.s.*lasx_xvfnmadd_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfnmadd_d:.*xvfnmadd\\.d.*lasx_xvfnmadd_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfnmsub_s:.*xvfnmsub\\.s.*lasx_xvfnmsub_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfnmsub_d:.*xvfnmsub\\.d.*lasx_xvfnmsub_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrne_w_s:.*xvftintrne\\.w\\.s.*lasx_xvftintrne_w_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrne_l_d:.*xvftintrne\\.l\\.d.*lasx_xvftintrne_l_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrp_w_s:.*xvftintrp\\.w\\.s.*lasx_xvftintrp_w_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrp_l_d:.*xvftintrp\\.l\\.d.*lasx_xvftintrp_l_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrm_w_s:.*xvftintrm\\.w\\.s.*lasx_xvftintrm_w_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrm_l_d:.*xvftintrm\\.l\\.d.*lasx_xvftintrm_l_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftint_w_d:.*xvftint\\.w\\.d.*lasx_xvftint_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffint_s_l:.*xvffint\\.s\\.l.*lasx_xvffint_s_l" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrz_w_d:.*xvftintrz\\.w\\.d.*lasx_xvftintrz_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrp_w_d:.*xvftintrp\\.w\\.d.*lasx_xvftintrp_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrm_w_d:.*xvftintrm\\.w\\.d.*lasx_xvftintrm_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrne_w_d:.*xvftintrne\\.w\\.d.*lasx_xvftintrne_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftinth_l_s:.*xvftinth\\.l\\.s.*lasx_xvftinth_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintl_l_s:.*xvftintl\\.l\\.s.*lasx_xvftintl_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffinth_d_w:.*xvffinth\\.d\\.w.*lasx_xvffinth_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvffintl_d_w:.*xvffintl\\.d\\.w.*lasx_xvffintl_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrzh_l_s:.*xvftintrzh\\.l\\.s.*lasx_xvftintrzh_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrzl_l_s:.*xvftintrzl\\.l\\.s.*lasx_xvftintrzl_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrph_l_s:.*xvftintrph\\.l\\.s.*lasx_xvftintrph_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrpl_l_s:.*xvftintrpl\\.l\\.s.*lasx_xvftintrpl_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrmh_l_s:.*xvftintrmh\\.l\\.s.*lasx_xvftintrmh_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrml_l_s:.*xvftintrml\\.l\\.s.*lasx_xvftintrml_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrneh_l_s:.*xvftintrneh\\.l\\.s.*lasx_xvftintrneh_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvftintrnel_l_s:.*xvftintrnel\\.l\\.s.*lasx_xvftintrnel_l_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrne_s:.*xvfrintrne\\.s.*lasx_xvfrintrne_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrne_d:.*xvfrintrne\\.d.*lasx_xvfrintrne_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrz_s:.*xvfrintrz\\.s.*lasx_xvfrintrz_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrz_d:.*xvfrintrz\\.d.*lasx_xvfrintrz_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrp_s:.*xvfrintrp\\.s.*lasx_xvfrintrp_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrp_d:.*xvfrintrp\\.d.*lasx_xvfrintrp_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrm_s:.*xvfrintrm\\.s.*lasx_xvfrintrm_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfrintrm_d:.*xvfrintrm\\.d.*lasx_xvfrintrm_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvld:.*xvld.*lasx_xvld" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvst:.*xvst.*lasx_xvst" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvstelm_b:.*xvstelm\\.b.*lasx_xvstelm_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvstelm_h:.*xvstelm\\.h.*lasx_xvstelm_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvstelm_w:.*xvstelm\\.w.*lasx_xvstelm_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvstelm_d:.*xvstelm\\.d.*lasx_xvstelm_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvinsve0_w:.*xvinsve0\\.w.*lasx_xvinsve0_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvinsve0_d:.*xvinsve0\\.d.*lasx_xvinsve0_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve_w:.*xvpickve\\.w.*lasx_xvpickve_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve_d:.*xvpickve\\.d.*lasx_xvpickve_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrn_b_h:.*xvssrlrn\\.b\\.h.*lasx_xvssrlrn_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrn_h_w:.*xvssrlrn\\.h\\.w.*lasx_xvssrlrn_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrn_w_d:.*xvssrlrn\\.w\\.d.*lasx_xvssrlrn_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrln_b_h:.*xvssrln\\.b\\.h.*lasx_xvssrln_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrln_h_w:.*xvssrln\\.h\\.w.*lasx_xvssrln_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrln_w_d:.*xvssrln\\.w\\.d.*lasx_xvssrln_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvorn_v:.*xvorn\\.v.*lasx_xvorn_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvldi:.*xvldi.*lasx_xvldi" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvldx:.*xvldx.*lasx_xvldx" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvstx:.*xvstx.*lasx_xvstx" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvextl_qu_du:.*xvextl\\.qu\\.du.*lasx_xvextl_qu_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvinsgr2vr_w:.*xvinsgr2vr\\.w.*lasx_xvinsgr2vr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvinsgr2vr_d:.*xvinsgr2vr\\.d.*lasx_xvinsgr2vr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve0_b:.*xvreplve0\\.b.*lasx_xvreplve0_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve0_h:.*xvreplve0\\.h.*lasx_xvreplve0_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve0_w:.*xvreplve0\\.w.*lasx_xvreplve0_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve0_d:.*xvreplve0\\.d.*lasx_xvreplve0_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvreplve0_q:.*xvreplve0\\.q.*lasx_xvreplve0_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_h_b:.*vext2xv\\.h\\.b.*lasx_vext2xv_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_w_h:.*vext2xv\\.w\\.h.*lasx_vext2xv_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_d_w:.*vext2xv\\.d\\.w.*lasx_vext2xv_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_w_b:.*vext2xv\\.w\\.b.*lasx_vext2xv_w_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_d_h:.*vext2xv\\.d\\.h.*lasx_vext2xv_d_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_d_b:.*vext2xv\\.d\\.b.*lasx_vext2xv_d_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_hu_bu:.*vext2xv\\.hu\\.bu.*lasx_vext2xv_hu_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_wu_hu:.*vext2xv\\.wu\\.hu.*lasx_vext2xv_wu_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_du_wu:.*vext2xv\\.du\\.wu.*lasx_vext2xv_du_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_wu_bu:.*vext2xv\\.wu\\.bu.*lasx_vext2xv_wu_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_du_hu:.*vext2xv\\.du\\.hu.*lasx_vext2xv_du_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_vext2xv_du_bu:.*vext2xv\\.du\\.bu.*lasx_vext2xv_du_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpermi_q:.*xvpermi\\.q.*lasx_xvpermi_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpermi_d:.*xvpermi\\.d.*lasx_xvpermi_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvperm_w:.*xvperm\\.w.*lasx_xvperm_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvldrepl_b:.*xvldrepl\\.b.*lasx_xvldrepl_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvldrepl_h:.*xvldrepl\\.h.*lasx_xvldrepl_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvldrepl_w:.*xvldrepl\\.w.*lasx_xvldrepl_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvldrepl_d:.*xvldrepl\\.d.*lasx_xvldrepl_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve2gr_w:.*xvpickve2gr\\.w.*lasx_xvpickve2gr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve2gr_wu:.*xvpickve2gr\\.wu.*lasx_xvpickve2gr_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve2gr_d:.*xvpickve2gr\\.d.*lasx_xvpickve2gr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve2gr_du:.*xvpickve2gr\\.du.*lasx_xvpickve2gr_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_q_d:.*xvaddwev\\.q\\.d.*lasx_xvaddwev_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_d_w:.*xvaddwev\\.d\\.w.*lasx_xvaddwev_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_w_h:.*xvaddwev\\.w\\.h.*lasx_xvaddwev_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_h_b:.*xvaddwev\\.h\\.b.*lasx_xvaddwev_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_q_du:.*xvaddwev\\.q\\.du.*lasx_xvaddwev_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_d_wu:.*xvaddwev\\.d\\.wu.*lasx_xvaddwev_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_w_hu:.*xvaddwev\\.w\\.hu.*lasx_xvaddwev_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_h_bu:.*xvaddwev\\.h\\.bu.*lasx_xvaddwev_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_q_d:.*xvsubwev\\.q\\.d.*lasx_xvsubwev_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_d_w:.*xvsubwev\\.d\\.w.*lasx_xvsubwev_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_w_h:.*xvsubwev\\.w\\.h.*lasx_xvsubwev_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_h_b:.*xvsubwev\\.h\\.b.*lasx_xvsubwev_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_q_du:.*xvsubwev\\.q\\.du.*lasx_xvsubwev_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_d_wu:.*xvsubwev\\.d\\.wu.*lasx_xvsubwev_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_w_hu:.*xvsubwev\\.w\\.hu.*lasx_xvsubwev_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwev_h_bu:.*xvsubwev\\.h\\.bu.*lasx_xvsubwev_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_q_d:.*xvmulwev\\.q\\.d.*lasx_xvmulwev_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_d_w:.*xvmulwev\\.d\\.w.*lasx_xvmulwev_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_w_h:.*xvmulwev\\.w\\.h.*lasx_xvmulwev_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_h_b:.*xvmulwev\\.h\\.b.*lasx_xvmulwev_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_q_du:.*xvmulwev\\.q\\.du.*lasx_xvmulwev_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_d_wu:.*xvmulwev\\.d\\.wu.*lasx_xvmulwev_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_w_hu:.*xvmulwev\\.w\\.hu.*lasx_xvmulwev_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_h_bu:.*xvmulwev\\.h\\.bu.*lasx_xvmulwev_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_q_d:.*xvaddwod\\.q\\.d.*lasx_xvaddwod_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_d_w:.*xvaddwod\\.d\\.w.*lasx_xvaddwod_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_w_h:.*xvaddwod\\.w\\.h.*lasx_xvaddwod_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_h_b:.*xvaddwod\\.h\\.b.*lasx_xvaddwod_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_q_du:.*xvaddwod\\.q\\.du.*lasx_xvaddwod_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_d_wu:.*xvaddwod\\.d\\.wu.*lasx_xvaddwod_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_w_hu:.*xvaddwod\\.w\\.hu.*lasx_xvaddwod_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_h_bu:.*xvaddwod\\.h\\.bu.*lasx_xvaddwod_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_q_d:.*xvsubwod\\.q\\.d.*lasx_xvsubwod_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_d_w:.*xvsubwod\\.d\\.w.*lasx_xvsubwod_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_w_h:.*xvsubwod\\.w\\.h.*lasx_xvsubwod_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_h_b:.*xvsubwod\\.h\\.b.*lasx_xvsubwod_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_q_du:.*xvsubwod\\.q\\.du.*lasx_xvsubwod_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_d_wu:.*xvsubwod\\.d\\.wu.*lasx_xvsubwod_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_w_hu:.*xvsubwod\\.w\\.hu.*lasx_xvsubwod_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsubwod_h_bu:.*xvsubwod\\.h\\.bu.*lasx_xvsubwod_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_q_d:.*xvmulwod\\.q\\.d.*lasx_xvmulwod_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_d_w:.*xvmulwod\\.d\\.w.*lasx_xvmulwod_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_w_h:.*xvmulwod\\.w\\.h.*lasx_xvmulwod_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_h_b:.*xvmulwod\\.h\\.b.*lasx_xvmulwod_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_q_du:.*xvmulwod\\.q\\.du.*lasx_xvmulwod_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_d_wu:.*xvmulwod\\.d\\.wu.*lasx_xvmulwod_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_w_hu:.*xvmulwod\\.w\\.hu.*lasx_xvmulwod_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_h_bu:.*xvmulwod\\.h\\.bu.*lasx_xvmulwod_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_d_wu_w:.*xvaddwev\\.d\\.wu\\.w.*lasx_xvaddwev_d_wu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_w_hu_h:.*xvaddwev\\.w\\.hu\\.h.*lasx_xvaddwev_w_hu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_h_bu_b:.*xvaddwev\\.h\\.bu\\.b.*lasx_xvaddwev_h_bu_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_d_wu_w:.*xvmulwev\\.d\\.wu\\.w.*lasx_xvmulwev_d_wu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_w_hu_h:.*xvmulwev\\.w\\.hu\\.h.*lasx_xvmulwev_w_hu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_h_bu_b:.*xvmulwev\\.h\\.bu\\.b.*lasx_xvmulwev_h_bu_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_d_wu_w:.*xvaddwod\\.d\\.wu\\.w.*lasx_xvaddwod_d_wu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_w_hu_h:.*xvaddwod\\.w\\.hu\\.h.*lasx_xvaddwod_w_hu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_h_bu_b:.*xvaddwod\\.h\\.bu\\.b.*lasx_xvaddwod_h_bu_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_d_wu_w:.*xvmulwod\\.d\\.wu\\.w.*lasx_xvmulwod_d_wu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_w_hu_h:.*xvmulwod\\.w\\.hu\\.h.*lasx_xvmulwod_w_hu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_h_bu_b:.*xvmulwod\\.h\\.bu\\.b.*lasx_xvmulwod_h_bu_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_q_d:.*xvhaddw\\.q\\.d.*lasx_xvhaddw_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhaddw_qu_du:.*xvhaddw\\.qu\\.du.*lasx_xvhaddw_qu_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_q_d:.*xvhsubw\\.q\\.d.*lasx_xvhsubw_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvhsubw_qu_du:.*xvhsubw\\.qu\\.du.*lasx_xvhsubw_qu_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_q_d:.*xvmaddwev\\.q\\.d.*lasx_xvmaddwev_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_d_w:.*xvmaddwev\\.d\\.w.*lasx_xvmaddwev_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_w_h:.*xvmaddwev\\.w\\.h.*lasx_xvmaddwev_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_h_b:.*xvmaddwev\\.h\\.b.*lasx_xvmaddwev_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_q_du:.*xvmaddwev\\.q\\.du.*lasx_xvmaddwev_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_d_wu:.*xvmaddwev\\.d\\.wu.*lasx_xvmaddwev_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_w_hu:.*xvmaddwev\\.w\\.hu.*lasx_xvmaddwev_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_h_bu:.*xvmaddwev\\.h\\.bu.*lasx_xvmaddwev_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_q_d:.*xvmaddwod\\.q\\.d.*lasx_xvmaddwod_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_d_w:.*xvmaddwod\\.d\\.w.*lasx_xvmaddwod_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_w_h:.*xvmaddwod\\.w\\.h.*lasx_xvmaddwod_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_h_b:.*xvmaddwod\\.h\\.b.*lasx_xvmaddwod_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_q_du:.*xvmaddwod\\.q\\.du.*lasx_xvmaddwod_q_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_d_wu:.*xvmaddwod\\.d\\.wu.*lasx_xvmaddwod_d_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_w_hu:.*xvmaddwod\\.w\\.hu.*lasx_xvmaddwod_w_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_h_bu:.*xvmaddwod\\.h\\.bu.*lasx_xvmaddwod_h_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_q_du_d:.*xvmaddwev\\.q\\.du\\.d.*lasx_xvmaddwev_q_du_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_d_wu_w:.*xvmaddwev\\.d\\.wu\\.w.*lasx_xvmaddwev_d_wu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_w_hu_h:.*xvmaddwev\\.w\\.hu\\.h.*lasx_xvmaddwev_w_hu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwev_h_bu_b:.*xvmaddwev\\.h\\.bu\\.b.*lasx_xvmaddwev_h_bu_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_q_du_d:.*xvmaddwod\\.q\\.du\\.d.*lasx_xvmaddwod_q_du_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_d_wu_w:.*xvmaddwod\\.d\\.wu\\.w.*lasx_xvmaddwod_d_wu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_w_hu_h:.*xvmaddwod\\.w\\.hu\\.h.*lasx_xvmaddwod_w_hu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmaddwod_h_bu_b:.*xvmaddwod\\.h\\.bu\\.b.*lasx_xvmaddwod_h_bu_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotr_b:.*xvrotr\\.b.*lasx_xvrotr_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotr_h:.*xvrotr\\.h.*lasx_xvrotr_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotr_w:.*xvrotr\\.w.*lasx_xvrotr_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotr_d:.*xvrotr\\.d.*lasx_xvrotr_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvadd_q:.*xvadd\\.q.*lasx_xvadd_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsub_q:.*xvsub\\.q.*lasx_xvsub_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwev_q_du_d:.*xvaddwev\\.q\\.du\\.d.*lasx_xvaddwev_q_du_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvaddwod_q_du_d:.*xvaddwod\\.q\\.du\\.d.*lasx_xvaddwod_q_du_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwev_q_du_d:.*xvmulwev\\.q\\.du\\.d.*lasx_xvmulwev_q_du_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmulwod_q_du_d:.*xvmulwod\\.q\\.du\\.d.*lasx_xvmulwod_q_du_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmskgez_b:.*xvmskgez\\.b.*lasx_xvmskgez_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvmsknz_b:.*xvmsknz\\.b.*lasx_xvmsknz_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_h_b:.*xvexth\\.h\\.b.*lasx_xvexth_h_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_w_h:.*xvexth\\.w\\.h.*lasx_xvexth_w_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_d_w:.*xvexth\\.d\\.w.*lasx_xvexth_d_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_q_d:.*xvexth\\.q\\.d.*lasx_xvexth_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_hu_bu:.*xvexth\\.hu\\.bu.*lasx_xvexth_hu_bu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_wu_hu:.*xvexth\\.wu\\.hu.*lasx_xvexth_wu_hu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_du_wu:.*xvexth\\.du\\.wu.*lasx_xvexth_du_wu" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvexth_qu_du:.*xvexth\\.qu\\.du.*lasx_xvexth_qu_du" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotri_b:.*xvrotri\\.b.*lasx_xvrotri_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotri_h:.*xvrotri\\.h.*lasx_xvrotri_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotri_w:.*xvrotri\\.w.*lasx_xvrotri_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrotri_d:.*xvrotri\\.d.*lasx_xvrotri_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvextl_q_d:.*xvextl\\.q\\.d.*lasx_xvextl_q_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlni_b_h:.*xvsrlni\\.b\\.h.*lasx_xvsrlni_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlni_h_w:.*xvsrlni\\.h\\.w.*lasx_xvsrlni_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlni_w_d:.*xvsrlni\\.w\\.d.*lasx_xvsrlni_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlni_d_q:.*xvsrlni\\.d\\.q.*lasx_xvsrlni_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrni_b_h:.*xvsrlrni\\.b\\.h.*lasx_xvsrlrni_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrni_h_w:.*xvsrlrni\\.h\\.w.*lasx_xvsrlrni_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrni_w_d:.*xvsrlrni\\.w\\.d.*lasx_xvsrlrni_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrlrni_d_q:.*xvsrlrni\\.d\\.q.*lasx_xvsrlrni_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_b_h:.*xvssrlni\\.b\\.h.*lasx_xvssrlni_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_h_w:.*xvssrlni\\.h\\.w.*lasx_xvssrlni_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_w_d:.*xvssrlni\\.w\\.d.*lasx_xvssrlni_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_d_q:.*xvssrlni\\.d\\.q.*lasx_xvssrlni_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_bu_h:.*xvssrlni\\.bu\\.h.*lasx_xvssrlni_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_hu_w:.*xvssrlni\\.hu\\.w.*lasx_xvssrlni_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_wu_d:.*xvssrlni\\.wu\\.d.*lasx_xvssrlni_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlni_du_q:.*xvssrlni\\.du\\.q.*lasx_xvssrlni_du_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_b_h:.*xvssrlrni\\.b\\.h.*lasx_xvssrlrni_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_h_w:.*xvssrlrni\\.h\\.w.*lasx_xvssrlrni_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_w_d:.*xvssrlrni\\.w\\.d.*lasx_xvssrlrni_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_d_q:.*xvssrlrni\\.d\\.q.*lasx_xvssrlrni_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_bu_h:.*xvssrlrni\\.bu\\.h.*lasx_xvssrlrni_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_hu_w:.*xvssrlrni\\.hu\\.w.*lasx_xvssrlrni_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_wu_d:.*xvssrlrni\\.wu\\.d.*lasx_xvssrlrni_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrlrni_du_q:.*xvssrlrni\\.du\\.q.*lasx_xvssrlrni_du_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrani_b_h:.*xvsrani\\.b\\.h.*lasx_xvsrani_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrani_h_w:.*xvsrani\\.h\\.w.*lasx_xvsrani_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrani_w_d:.*xvsrani\\.w\\.d.*lasx_xvsrani_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrani_d_q:.*xvsrani\\.d\\.q.*lasx_xvsrani_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarni_b_h:.*xvsrarni\\.b\\.h.*lasx_xvsrarni_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarni_h_w:.*xvsrarni\\.h\\.w.*lasx_xvsrarni_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarni_w_d:.*xvsrarni\\.w\\.d.*lasx_xvsrarni_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvsrarni_d_q:.*xvsrarni\\.d\\.q.*lasx_xvsrarni_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_b_h:.*xvssrani\\.b\\.h.*lasx_xvssrani_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_h_w:.*xvssrani\\.h\\.w.*lasx_xvssrani_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_w_d:.*xvssrani\\.w\\.d.*lasx_xvssrani_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_d_q:.*xvssrani\\.d\\.q.*lasx_xvssrani_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_bu_h:.*xvssrani\\.bu\\.h.*lasx_xvssrani_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_hu_w:.*xvssrani\\.hu\\.w.*lasx_xvssrani_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_wu_d:.*xvssrani\\.wu\\.d.*lasx_xvssrani_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrani_du_q:.*xvssrani\\.du\\.q.*lasx_xvssrani_du_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_b_h:.*xvssrarni\\.b\\.h.*lasx_xvssrarni_b_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_h_w:.*xvssrarni\\.h\\.w.*lasx_xvssrarni_h_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_w_d:.*xvssrarni\\.w\\.d.*lasx_xvssrarni_w_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_d_q:.*xvssrarni\\.d\\.q.*lasx_xvssrarni_d_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_bu_h:.*xvssrarni\\.bu\\.h.*lasx_xvssrarni_bu_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_hu_w:.*xvssrarni\\.hu\\.w.*lasx_xvssrarni_hu_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_wu_d:.*xvssrarni\\.wu\\.d.*lasx_xvssrarni_wu_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvssrarni_du_q:.*xvssrarni\\.du\\.q.*lasx_xvssrarni_du_q" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbnz_b:.*xvsetanyeqz\\.b.*lasx_xbnz_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbnz_d:.*xvsetanyeqz\\.d.*lasx_xbnz_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbnz_h:.*xvsetanyeqz\\.h.*lasx_xbnz_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbnz_v:.*xvseteqz\\.v.*lasx_xbnz_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbnz_w:.*xvsetanyeqz\\.w.*lasx_xbnz_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbz_b:.*xvsetallnez\\.b.*lasx_xbz_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbz_d:.*xvsetallnez\\.d.*lasx_xbz_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbz_h:.*xvsetallnez\\.h.*lasx_xbz_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbz_v:.*xvsetnez\\.v.*lasx_xbz_v" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xbz_w:.*xvsetallnez\\.w.*lasx_xbz_w" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_caf_d:.*xvfcmp\\.caf\\.d.*lasx_xvfcmp_caf_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_caf_s:.*xvfcmp\\.caf\\.s.*lasx_xvfcmp_caf_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_ceq_d:.*xvfcmp\\.ceq\\.d.*lasx_xvfcmp_ceq_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_ceq_s:.*xvfcmp\\.ceq\\.s.*lasx_xvfcmp_ceq_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cle_d:.*xvfcmp\\.cle\\.d.*lasx_xvfcmp_cle_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cle_s:.*xvfcmp\\.cle\\.s.*lasx_xvfcmp_cle_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_clt_d:.*xvfcmp\\.clt\\.d.*lasx_xvfcmp_clt_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_clt_s:.*xvfcmp\\.clt\\.s.*lasx_xvfcmp_clt_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cne_d:.*xvfcmp\\.cne\\.d.*lasx_xvfcmp_cne_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cne_s:.*xvfcmp\\.cne\\.s.*lasx_xvfcmp_cne_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cor_d:.*xvfcmp\\.cor\\.d.*lasx_xvfcmp_cor_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cor_s:.*xvfcmp\\.cor\\.s.*lasx_xvfcmp_cor_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cueq_d:.*xvfcmp\\.cueq\\.d.*lasx_xvfcmp_cueq_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cueq_s:.*xvfcmp\\.cueq\\.s.*lasx_xvfcmp_cueq_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cule_d:.*xvfcmp\\.cule\\.d.*lasx_xvfcmp_cule_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cule_s:.*xvfcmp\\.cule\\.s.*lasx_xvfcmp_cule_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cult_d:.*xvfcmp\\.cult\\.d.*lasx_xvfcmp_cult_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cult_s:.*xvfcmp\\.cult\\.s.*lasx_xvfcmp_cult_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cun_d:.*xvfcmp\\.cun\\.d.*lasx_xvfcmp_cun_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cune_d:.*xvfcmp\\.cune\\.d.*lasx_xvfcmp_cune_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cune_s:.*xvfcmp\\.cune\\.s.*lasx_xvfcmp_cune_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_cun_s:.*xvfcmp\\.cun\\.s.*lasx_xvfcmp_cun_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_saf_d:.*xvfcmp\\.saf\\.d.*lasx_xvfcmp_saf_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_saf_s:.*xvfcmp\\.saf\\.s.*lasx_xvfcmp_saf_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_seq_d:.*xvfcmp\\.seq\\.d.*lasx_xvfcmp_seq_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_seq_s:.*xvfcmp\\.seq\\.s.*lasx_xvfcmp_seq_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sle_d:.*xvfcmp\\.sle\\.d.*lasx_xvfcmp_sle_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sle_s:.*xvfcmp\\.sle\\.s.*lasx_xvfcmp_sle_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_slt_d:.*xvfcmp\\.slt\\.d.*lasx_xvfcmp_slt_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_slt_s:.*xvfcmp\\.slt\\.s.*lasx_xvfcmp_slt_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sne_d:.*xvfcmp\\.sne\\.d.*lasx_xvfcmp_sne_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sne_s:.*xvfcmp\\.sne\\.s.*lasx_xvfcmp_sne_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sor_d:.*xvfcmp\\.sor\\.d.*lasx_xvfcmp_sor_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sor_s:.*xvfcmp\\.sor\\.s.*lasx_xvfcmp_sor_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sueq_d:.*xvfcmp\\.sueq\\.d.*lasx_xvfcmp_sueq_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sueq_s:.*xvfcmp\\.sueq\\.s.*lasx_xvfcmp_sueq_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sule_d:.*xvfcmp\\.sule\\.d.*lasx_xvfcmp_sule_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sule_s:.*xvfcmp\\.sule\\.s.*lasx_xvfcmp_sule_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sult_d:.*xvfcmp\\.sult\\.d.*lasx_xvfcmp_sult_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sult_s:.*xvfcmp\\.sult\\.s.*lasx_xvfcmp_sult_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sun_d:.*xvfcmp\\.sun\\.d.*lasx_xvfcmp_sun_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sune_d:.*xvfcmp\\.sune\\.d.*lasx_xvfcmp_sune_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sune_s:.*xvfcmp\\.sune\\.s.*lasx_xvfcmp_sune_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvfcmp_sun_s:.*xvfcmp\\.sun\\.s.*lasx_xvfcmp_sun_s" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve_d_f:.*xvpickve\\.d.*lasx_xvpickve_d_f" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvpickve_w_f:.*xvpickve\\.w.*lasx_xvpickve_w_f" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepli_b:.*xvrepli\\.b.*lasx_xvrepli_b" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepli_d:.*xvrepli\\.d.*lasx_xvrepli_d" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepli_h:.*xvrepli\\.h.*lasx_xvrepli_h" 1 } } */ +/* { dg-final { scan-assembler-times "lasx_xvrepli_w:.*xvrepli\\.w.*lasx_xvrepli_w" 1 } } */ + +typedef signed char v32i8 __attribute__ ((vector_size(32), aligned(32))); +typedef signed char v32i8_b __attribute__ ((vector_size(32), aligned(1))); +typedef unsigned char v32u8 __attribute__ ((vector_size(32), aligned(32))); +typedef unsigned char v32u8_b __attribute__ ((vector_size(32), aligned(1))); +typedef short v16i16 __attribute__ ((vector_size(32), aligned(32))); +typedef short v16i16_h __attribute__ ((vector_size(32), aligned(2))); +typedef unsigned short v16u16 __attribute__ ((vector_size(32), aligned(32))); +typedef unsigned short v16u16_h __attribute__ ((vector_size(32), aligned(2))); +typedef int v8i32 __attribute__ ((vector_size(32), aligned(32))); +typedef int v8i32_w __attribute__ ((vector_size(32), aligned(4))); +typedef unsigned int v8u32 __attribute__ ((vector_size(32), aligned(32))); +typedef unsigned int v8u32_w __attribute__ ((vector_size(32), aligned(4))); +typedef long long v4i64 __attribute__ ((vector_size(32), aligned(32))); +typedef long long v4i64_d __attribute__ ((vector_size(32), aligned(8))); +typedef unsigned long long v4u64 __attribute__ ((vector_size(32), aligned(32))); +typedef unsigned long long v4u64_d __attribute__ ((vector_size(32), aligned(8))); +typedef float v8f32 __attribute__ ((vector_size(32), aligned(32))); +typedef float v8f32_w __attribute__ ((vector_size(32), aligned(4))); +typedef double v4f64 __attribute__ ((vector_size(32), aligned(32))); +typedef double v4f64_d __attribute__ ((vector_size(32), aligned(8))); + +typedef double v4f64 __attribute__ ((vector_size(32), aligned(32))); +typedef double v4f64_d __attribute__ ((vector_size(32), aligned(8))); + +typedef float __m256 __attribute__ ((__vector_size__ (32), __may_alias__)); +typedef long long __m256i __attribute__ ((__vector_size__ (32), __may_alias__)); +typedef double __m256d __attribute__ ((__vector_size__ (32), __may_alias__)); + +/* Unaligned version of the same types. */ +typedef float __m256_u __attribute__ ((__vector_size__ (32), __may_alias__, __aligned__ (1))); +typedef long long __m256i_u __attribute__ ((__vector_size__ (32), __may_alias__, __aligned__ (1))); +typedef double __m256d_u __attribute__ ((__vector_size__ (32), __may_alias__, __aligned__ (1))); + +v32i8 __lasx_xvsll_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsll_b(_1, _2);} +v16i16 __lasx_xvsll_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsll_h(_1, _2);} +v8i32 __lasx_xvsll_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsll_w(_1, _2);} +v4i64 __lasx_xvsll_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsll_d(_1, _2);} +v32i8 __lasx_xvslli_b(v32i8 _1){return __builtin_lasx_xvslli_b(_1, 1);} +v16i16 __lasx_xvslli_h(v16i16 _1){return __builtin_lasx_xvslli_h(_1, 1);} +v8i32 __lasx_xvslli_w(v8i32 _1){return __builtin_lasx_xvslli_w(_1, 1);} +v4i64 __lasx_xvslli_d(v4i64 _1){return __builtin_lasx_xvslli_d(_1, 1);} +v32i8 __lasx_xvsra_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsra_b(_1, _2);} +v16i16 __lasx_xvsra_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsra_h(_1, _2);} +v8i32 __lasx_xvsra_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsra_w(_1, _2);} +v4i64 __lasx_xvsra_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsra_d(_1, _2);} +v32i8 __lasx_xvsrai_b(v32i8 _1){return __builtin_lasx_xvsrai_b(_1, 1);} +v16i16 __lasx_xvsrai_h(v16i16 _1){return __builtin_lasx_xvsrai_h(_1, 1);} +v8i32 __lasx_xvsrai_w(v8i32 _1){return __builtin_lasx_xvsrai_w(_1, 1);} +v4i64 __lasx_xvsrai_d(v4i64 _1){return __builtin_lasx_xvsrai_d(_1, 1);} +v32i8 __lasx_xvsrar_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrar_b(_1, _2);} +v16i16 __lasx_xvsrar_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrar_h(_1, _2);} +v8i32 __lasx_xvsrar_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrar_w(_1, _2);} +v4i64 __lasx_xvsrar_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrar_d(_1, _2);} +v32i8 __lasx_xvsrari_b(v32i8 _1){return __builtin_lasx_xvsrari_b(_1, 1);} +v16i16 __lasx_xvsrari_h(v16i16 _1){return __builtin_lasx_xvsrari_h(_1, 1);} +v8i32 __lasx_xvsrari_w(v8i32 _1){return __builtin_lasx_xvsrari_w(_1, 1);} +v4i64 __lasx_xvsrari_d(v4i64 _1){return __builtin_lasx_xvsrari_d(_1, 1);} +v32i8 __lasx_xvsrl_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrl_b(_1, _2);} +v16i16 __lasx_xvsrl_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrl_h(_1, _2);} +v8i32 __lasx_xvsrl_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrl_w(_1, _2);} +v4i64 __lasx_xvsrl_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrl_d(_1, _2);} +v32i8 __lasx_xvsrli_b(v32i8 _1){return __builtin_lasx_xvsrli_b(_1, 1);} +v16i16 __lasx_xvsrli_h(v16i16 _1){return __builtin_lasx_xvsrli_h(_1, 1);} +v8i32 __lasx_xvsrli_w(v8i32 _1){return __builtin_lasx_xvsrli_w(_1, 1);} +v4i64 __lasx_xvsrli_d(v4i64 _1){return __builtin_lasx_xvsrli_d(_1, 1);} +v32i8 __lasx_xvsrlr_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrlr_b(_1, _2);} +v16i16 __lasx_xvsrlr_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrlr_h(_1, _2);} +v8i32 __lasx_xvsrlr_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrlr_w(_1, _2);} +v4i64 __lasx_xvsrlr_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrlr_d(_1, _2);} +v32i8 __lasx_xvsrlri_b(v32i8 _1){return __builtin_lasx_xvsrlri_b(_1, 1);} +v16i16 __lasx_xvsrlri_h(v16i16 _1){return __builtin_lasx_xvsrlri_h(_1, 1);} +v8i32 __lasx_xvsrlri_w(v8i32 _1){return __builtin_lasx_xvsrlri_w(_1, 1);} +v4i64 __lasx_xvsrlri_d(v4i64 _1){return __builtin_lasx_xvsrlri_d(_1, 1);} +v32u8 __lasx_xvbitclr_b(v32u8 _1, v32u8 _2){return __builtin_lasx_xvbitclr_b(_1, _2);} +v16u16 __lasx_xvbitclr_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvbitclr_h(_1, _2);} +v8u32 __lasx_xvbitclr_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvbitclr_w(_1, _2);} +v4u64 __lasx_xvbitclr_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvbitclr_d(_1, _2);} +v32u8 __lasx_xvbitclri_b(v32u8 _1){return __builtin_lasx_xvbitclri_b(_1, 1);} +v16u16 __lasx_xvbitclri_h(v16u16 _1){return __builtin_lasx_xvbitclri_h(_1, 1);} +v8u32 __lasx_xvbitclri_w(v8u32 _1){return __builtin_lasx_xvbitclri_w(_1, 1);} +v4u64 __lasx_xvbitclri_d(v4u64 _1){return __builtin_lasx_xvbitclri_d(_1, 1);} +v32u8 __lasx_xvbitset_b(v32u8 _1, v32u8 _2){return __builtin_lasx_xvbitset_b(_1, _2);} +v16u16 __lasx_xvbitset_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvbitset_h(_1, _2);} +v8u32 __lasx_xvbitset_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvbitset_w(_1, _2);} +v4u64 __lasx_xvbitset_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvbitset_d(_1, _2);} +v32u8 __lasx_xvbitseti_b(v32u8 _1){return __builtin_lasx_xvbitseti_b(_1, 1);} +v16u16 __lasx_xvbitseti_h(v16u16 _1){return __builtin_lasx_xvbitseti_h(_1, 1);} +v8u32 __lasx_xvbitseti_w(v8u32 _1){return __builtin_lasx_xvbitseti_w(_1, 1);} +v4u64 __lasx_xvbitseti_d(v4u64 _1){return __builtin_lasx_xvbitseti_d(_1, 1);} +v32u8 __lasx_xvbitrev_b(v32u8 _1, v32u8 _2){return __builtin_lasx_xvbitrev_b(_1, _2);} +v16u16 __lasx_xvbitrev_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvbitrev_h(_1, _2);} +v8u32 __lasx_xvbitrev_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvbitrev_w(_1, _2);} +v4u64 __lasx_xvbitrev_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvbitrev_d(_1, _2);} +v32u8 __lasx_xvbitrevi_b(v32u8 _1){return __builtin_lasx_xvbitrevi_b(_1, 1);} +v16u16 __lasx_xvbitrevi_h(v16u16 _1){return __builtin_lasx_xvbitrevi_h(_1, 1);} +v8u32 __lasx_xvbitrevi_w(v8u32 _1){return __builtin_lasx_xvbitrevi_w(_1, 1);} +v4u64 __lasx_xvbitrevi_d(v4u64 _1){return __builtin_lasx_xvbitrevi_d(_1, 1);} +v32i8 __lasx_xvadd_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvadd_b(_1, _2);} +v16i16 __lasx_xvadd_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvadd_h(_1, _2);} +v8i32 __lasx_xvadd_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvadd_w(_1, _2);} +v4i64 __lasx_xvadd_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvadd_d(_1, _2);} +v32i8 __lasx_xvaddi_bu(v32i8 _1){return __builtin_lasx_xvaddi_bu(_1, 1);} +v16i16 __lasx_xvaddi_hu(v16i16 _1){return __builtin_lasx_xvaddi_hu(_1, 1);} +v8i32 __lasx_xvaddi_wu(v8i32 _1){return __builtin_lasx_xvaddi_wu(_1, 1);} +v4i64 __lasx_xvaddi_du(v4i64 _1){return __builtin_lasx_xvaddi_du(_1, 1);} +v32i8 __lasx_xvsub_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsub_b(_1, _2);} +v16i16 __lasx_xvsub_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsub_h(_1, _2);} +v8i32 __lasx_xvsub_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsub_w(_1, _2);} +v4i64 __lasx_xvsub_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsub_d(_1, _2);} +v32i8 __lasx_xvsubi_bu(v32i8 _1){return __builtin_lasx_xvsubi_bu(_1, 1);} +v16i16 __lasx_xvsubi_hu(v16i16 _1){return __builtin_lasx_xvsubi_hu(_1, 1);} +v8i32 __lasx_xvsubi_wu(v8i32 _1){return __builtin_lasx_xvsubi_wu(_1, 1);} +v4i64 __lasx_xvsubi_du(v4i64 _1){return __builtin_lasx_xvsubi_du(_1, 1);} +v32i8 __lasx_xvmax_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmax_b(_1, _2);} +v16i16 __lasx_xvmax_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmax_h(_1, _2);} +v8i32 __lasx_xvmax_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmax_w(_1, _2);} +v4i64 __lasx_xvmax_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmax_d(_1, _2);} +v32i8 __lasx_xvmaxi_b(v32i8 _1){return __builtin_lasx_xvmaxi_b(_1, 1);} +v16i16 __lasx_xvmaxi_h(v16i16 _1){return __builtin_lasx_xvmaxi_h(_1, 1);} +v8i32 __lasx_xvmaxi_w(v8i32 _1){return __builtin_lasx_xvmaxi_w(_1, 1);} +v4i64 __lasx_xvmaxi_d(v4i64 _1){return __builtin_lasx_xvmaxi_d(_1, 1);} +v32u8 __lasx_xvmax_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvmax_bu(_1, _2);} +v16u16 __lasx_xvmax_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvmax_hu(_1, _2);} +v8u32 __lasx_xvmax_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvmax_wu(_1, _2);} +v4u64 __lasx_xvmax_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvmax_du(_1, _2);} +v32u8 __lasx_xvmaxi_bu(v32u8 _1){return __builtin_lasx_xvmaxi_bu(_1, 1);} +v16u16 __lasx_xvmaxi_hu(v16u16 _1){return __builtin_lasx_xvmaxi_hu(_1, 1);} +v8u32 __lasx_xvmaxi_wu(v8u32 _1){return __builtin_lasx_xvmaxi_wu(_1, 1);} +v4u64 __lasx_xvmaxi_du(v4u64 _1){return __builtin_lasx_xvmaxi_du(_1, 1);} +v32i8 __lasx_xvmin_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmin_b(_1, _2);} +v16i16 __lasx_xvmin_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmin_h(_1, _2);} +v8i32 __lasx_xvmin_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmin_w(_1, _2);} +v4i64 __lasx_xvmin_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmin_d(_1, _2);} +v32i8 __lasx_xvmini_b(v32i8 _1){return __builtin_lasx_xvmini_b(_1, 1);} +v16i16 __lasx_xvmini_h(v16i16 _1){return __builtin_lasx_xvmini_h(_1, 1);} +v8i32 __lasx_xvmini_w(v8i32 _1){return __builtin_lasx_xvmini_w(_1, 1);} +v4i64 __lasx_xvmini_d(v4i64 _1){return __builtin_lasx_xvmini_d(_1, 1);} +v32u8 __lasx_xvmin_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvmin_bu(_1, _2);} +v16u16 __lasx_xvmin_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvmin_hu(_1, _2);} +v8u32 __lasx_xvmin_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvmin_wu(_1, _2);} +v4u64 __lasx_xvmin_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvmin_du(_1, _2);} +v32u8 __lasx_xvmini_bu(v32u8 _1){return __builtin_lasx_xvmini_bu(_1, 1);} +v16u16 __lasx_xvmini_hu(v16u16 _1){return __builtin_lasx_xvmini_hu(_1, 1);} +v8u32 __lasx_xvmini_wu(v8u32 _1){return __builtin_lasx_xvmini_wu(_1, 1);} +v4u64 __lasx_xvmini_du(v4u64 _1){return __builtin_lasx_xvmini_du(_1, 1);} +v32i8 __lasx_xvseq_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvseq_b(_1, _2);} +v16i16 __lasx_xvseq_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvseq_h(_1, _2);} +v8i32 __lasx_xvseq_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvseq_w(_1, _2);} +v4i64 __lasx_xvseq_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvseq_d(_1, _2);} +v32i8 __lasx_xvseqi_b(v32i8 _1){return __builtin_lasx_xvseqi_b(_1, 1);} +v16i16 __lasx_xvseqi_h(v16i16 _1){return __builtin_lasx_xvseqi_h(_1, 1);} +v8i32 __lasx_xvseqi_w(v8i32 _1){return __builtin_lasx_xvseqi_w(_1, 1);} +v4i64 __lasx_xvseqi_d(v4i64 _1){return __builtin_lasx_xvseqi_d(_1, 1);} +v32i8 __lasx_xvslt_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvslt_b(_1, _2);} +v16i16 __lasx_xvslt_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvslt_h(_1, _2);} +v8i32 __lasx_xvslt_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvslt_w(_1, _2);} +v4i64 __lasx_xvslt_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvslt_d(_1, _2);} +v32i8 __lasx_xvslti_b(v32i8 _1){return __builtin_lasx_xvslti_b(_1, 1);} +v16i16 __lasx_xvslti_h(v16i16 _1){return __builtin_lasx_xvslti_h(_1, 1);} +v8i32 __lasx_xvslti_w(v8i32 _1){return __builtin_lasx_xvslti_w(_1, 1);} +v4i64 __lasx_xvslti_d(v4i64 _1){return __builtin_lasx_xvslti_d(_1, 1);} +v32i8 __lasx_xvslt_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvslt_bu(_1, _2);} +v16i16 __lasx_xvslt_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvslt_hu(_1, _2);} +v8i32 __lasx_xvslt_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvslt_wu(_1, _2);} +v4i64 __lasx_xvslt_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvslt_du(_1, _2);} +v32i8 __lasx_xvslti_bu(v32u8 _1){return __builtin_lasx_xvslti_bu(_1, 1);} +v16i16 __lasx_xvslti_hu(v16u16 _1){return __builtin_lasx_xvslti_hu(_1, 1);} +v8i32 __lasx_xvslti_wu(v8u32 _1){return __builtin_lasx_xvslti_wu(_1, 1);} +v4i64 __lasx_xvslti_du(v4u64 _1){return __builtin_lasx_xvslti_du(_1, 1);} +v32i8 __lasx_xvsle_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsle_b(_1, _2);} +v16i16 __lasx_xvsle_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsle_h(_1, _2);} +v8i32 __lasx_xvsle_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsle_w(_1, _2);} +v4i64 __lasx_xvsle_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsle_d(_1, _2);} +v32i8 __lasx_xvslei_b(v32i8 _1){return __builtin_lasx_xvslei_b(_1, 1);} +v16i16 __lasx_xvslei_h(v16i16 _1){return __builtin_lasx_xvslei_h(_1, 1);} +v8i32 __lasx_xvslei_w(v8i32 _1){return __builtin_lasx_xvslei_w(_1, 1);} +v4i64 __lasx_xvslei_d(v4i64 _1){return __builtin_lasx_xvslei_d(_1, 1);} +v32i8 __lasx_xvsle_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvsle_bu(_1, _2);} +v16i16 __lasx_xvsle_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvsle_hu(_1, _2);} +v8i32 __lasx_xvsle_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvsle_wu(_1, _2);} +v4i64 __lasx_xvsle_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvsle_du(_1, _2);} +v32i8 __lasx_xvslei_bu(v32u8 _1){return __builtin_lasx_xvslei_bu(_1, 1);} +v16i16 __lasx_xvslei_hu(v16u16 _1){return __builtin_lasx_xvslei_hu(_1, 1);} +v8i32 __lasx_xvslei_wu(v8u32 _1){return __builtin_lasx_xvslei_wu(_1, 1);} +v4i64 __lasx_xvslei_du(v4u64 _1){return __builtin_lasx_xvslei_du(_1, 1);} +v32i8 __lasx_xvsat_b(v32i8 _1){return __builtin_lasx_xvsat_b(_1, 1);} +v16i16 __lasx_xvsat_h(v16i16 _1){return __builtin_lasx_xvsat_h(_1, 1);} +v8i32 __lasx_xvsat_w(v8i32 _1){return __builtin_lasx_xvsat_w(_1, 1);} +v4i64 __lasx_xvsat_d(v4i64 _1){return __builtin_lasx_xvsat_d(_1, 1);} +v32u8 __lasx_xvsat_bu(v32u8 _1){return __builtin_lasx_xvsat_bu(_1, 1);} +v16u16 __lasx_xvsat_hu(v16u16 _1){return __builtin_lasx_xvsat_hu(_1, 1);} +v8u32 __lasx_xvsat_wu(v8u32 _1){return __builtin_lasx_xvsat_wu(_1, 1);} +v4u64 __lasx_xvsat_du(v4u64 _1){return __builtin_lasx_xvsat_du(_1, 1);} +v32i8 __lasx_xvadda_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvadda_b(_1, _2);} +v16i16 __lasx_xvadda_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvadda_h(_1, _2);} +v8i32 __lasx_xvadda_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvadda_w(_1, _2);} +v4i64 __lasx_xvadda_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvadda_d(_1, _2);} +v32i8 __lasx_xvsadd_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsadd_b(_1, _2);} +v16i16 __lasx_xvsadd_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsadd_h(_1, _2);} +v8i32 __lasx_xvsadd_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsadd_w(_1, _2);} +v4i64 __lasx_xvsadd_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsadd_d(_1, _2);} +v32u8 __lasx_xvsadd_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvsadd_bu(_1, _2);} +v16u16 __lasx_xvsadd_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvsadd_hu(_1, _2);} +v8u32 __lasx_xvsadd_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvsadd_wu(_1, _2);} +v4u64 __lasx_xvsadd_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvsadd_du(_1, _2);} +v32i8 __lasx_xvavg_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvavg_b(_1, _2);} +v16i16 __lasx_xvavg_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvavg_h(_1, _2);} +v8i32 __lasx_xvavg_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvavg_w(_1, _2);} +v4i64 __lasx_xvavg_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvavg_d(_1, _2);} +v32u8 __lasx_xvavg_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvavg_bu(_1, _2);} +v16u16 __lasx_xvavg_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvavg_hu(_1, _2);} +v8u32 __lasx_xvavg_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvavg_wu(_1, _2);} +v4u64 __lasx_xvavg_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvavg_du(_1, _2);} +v32i8 __lasx_xvavgr_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvavgr_b(_1, _2);} +v16i16 __lasx_xvavgr_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvavgr_h(_1, _2);} +v8i32 __lasx_xvavgr_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvavgr_w(_1, _2);} +v4i64 __lasx_xvavgr_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvavgr_d(_1, _2);} +v32u8 __lasx_xvavgr_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvavgr_bu(_1, _2);} +v16u16 __lasx_xvavgr_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvavgr_hu(_1, _2);} +v8u32 __lasx_xvavgr_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvavgr_wu(_1, _2);} +v4u64 __lasx_xvavgr_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvavgr_du(_1, _2);} +v32i8 __lasx_xvssub_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvssub_b(_1, _2);} +v16i16 __lasx_xvssub_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssub_h(_1, _2);} +v8i32 __lasx_xvssub_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssub_w(_1, _2);} +v4i64 __lasx_xvssub_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssub_d(_1, _2);} +v32u8 __lasx_xvssub_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvssub_bu(_1, _2);} +v16u16 __lasx_xvssub_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvssub_hu(_1, _2);} +v8u32 __lasx_xvssub_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvssub_wu(_1, _2);} +v4u64 __lasx_xvssub_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvssub_du(_1, _2);} +v32i8 __lasx_xvabsd_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvabsd_b(_1, _2);} +v16i16 __lasx_xvabsd_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvabsd_h(_1, _2);} +v8i32 __lasx_xvabsd_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvabsd_w(_1, _2);} +v4i64 __lasx_xvabsd_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvabsd_d(_1, _2);} +v32u8 __lasx_xvabsd_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvabsd_bu(_1, _2);} +v16u16 __lasx_xvabsd_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvabsd_hu(_1, _2);} +v8u32 __lasx_xvabsd_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvabsd_wu(_1, _2);} +v4u64 __lasx_xvabsd_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvabsd_du(_1, _2);} +v32i8 __lasx_xvmul_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmul_b(_1, _2);} +v16i16 __lasx_xvmul_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmul_h(_1, _2);} +v8i32 __lasx_xvmul_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmul_w(_1, _2);} +v4i64 __lasx_xvmul_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmul_d(_1, _2);} +v32i8 __lasx_xvmadd_b(v32i8 _1, v32i8 _2, v32i8 _3){return __builtin_lasx_xvmadd_b(_1, _2, _3);} +v16i16 __lasx_xvmadd_h(v16i16 _1, v16i16 _2, v16i16 _3){return __builtin_lasx_xvmadd_h(_1, _2, _3);} +v8i32 __lasx_xvmadd_w(v8i32 _1, v8i32 _2, v8i32 _3){return __builtin_lasx_xvmadd_w(_1, _2, _3);} +v4i64 __lasx_xvmadd_d(v4i64 _1, v4i64 _2, v4i64 _3){return __builtin_lasx_xvmadd_d(_1, _2, _3);} +v32i8 __lasx_xvmsub_b(v32i8 _1, v32i8 _2, v32i8 _3){return __builtin_lasx_xvmsub_b(_1, _2, _3);} +v16i16 __lasx_xvmsub_h(v16i16 _1, v16i16 _2, v16i16 _3){return __builtin_lasx_xvmsub_h(_1, _2, _3);} +v8i32 __lasx_xvmsub_w(v8i32 _1, v8i32 _2, v8i32 _3){return __builtin_lasx_xvmsub_w(_1, _2, _3);} +v4i64 __lasx_xvmsub_d(v4i64 _1, v4i64 _2, v4i64 _3){return __builtin_lasx_xvmsub_d(_1, _2, _3);} +v32i8 __lasx_xvdiv_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvdiv_b(_1, _2);} +v16i16 __lasx_xvdiv_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvdiv_h(_1, _2);} +v8i32 __lasx_xvdiv_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvdiv_w(_1, _2);} +v4i64 __lasx_xvdiv_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvdiv_d(_1, _2);} +v32u8 __lasx_xvdiv_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvdiv_bu(_1, _2);} +v16u16 __lasx_xvdiv_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvdiv_hu(_1, _2);} +v8u32 __lasx_xvdiv_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvdiv_wu(_1, _2);} +v4u64 __lasx_xvdiv_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvdiv_du(_1, _2);} +v16i16 __lasx_xvhaddw_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvhaddw_h_b(_1, _2);} +v8i32 __lasx_xvhaddw_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvhaddw_w_h(_1, _2);} +v4i64 __lasx_xvhaddw_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvhaddw_d_w(_1, _2);} +v16u16 __lasx_xvhaddw_hu_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvhaddw_hu_bu(_1, _2);} +v8u32 __lasx_xvhaddw_wu_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvhaddw_wu_hu(_1, _2);} +v4u64 __lasx_xvhaddw_du_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvhaddw_du_wu(_1, _2);} +v16i16 __lasx_xvhsubw_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvhsubw_h_b(_1, _2);} +v8i32 __lasx_xvhsubw_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvhsubw_w_h(_1, _2);} +v4i64 __lasx_xvhsubw_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvhsubw_d_w(_1, _2);} +v16i16 __lasx_xvhsubw_hu_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvhsubw_hu_bu(_1, _2);} +v8i32 __lasx_xvhsubw_wu_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvhsubw_wu_hu(_1, _2);} +v4i64 __lasx_xvhsubw_du_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvhsubw_du_wu(_1, _2);} +v32i8 __lasx_xvmod_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmod_b(_1, _2);} +v16i16 __lasx_xvmod_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmod_h(_1, _2);} +v8i32 __lasx_xvmod_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmod_w(_1, _2);} +v4i64 __lasx_xvmod_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmod_d(_1, _2);} +v32u8 __lasx_xvmod_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvmod_bu(_1, _2);} +v16u16 __lasx_xvmod_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvmod_hu(_1, _2);} +v8u32 __lasx_xvmod_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvmod_wu(_1, _2);} +v4u64 __lasx_xvmod_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvmod_du(_1, _2);} +v32i8 __lasx_xvrepl128vei_b(v32i8 _1){return __builtin_lasx_xvrepl128vei_b(_1, 1);} +v16i16 __lasx_xvrepl128vei_h(v16i16 _1){return __builtin_lasx_xvrepl128vei_h(_1, 1);} +v8i32 __lasx_xvrepl128vei_w(v8i32 _1){return __builtin_lasx_xvrepl128vei_w(_1, 1);} +v4i64 __lasx_xvrepl128vei_d(v4i64 _1){return __builtin_lasx_xvrepl128vei_d(_1, 1);} +v32i8 __lasx_xvpickev_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvpickev_b(_1, _2);} +v16i16 __lasx_xvpickev_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvpickev_h(_1, _2);} +v8i32 __lasx_xvpickev_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvpickev_w(_1, _2);} +v4i64 __lasx_xvpickev_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvpickev_d(_1, _2);} +v32i8 __lasx_xvpickod_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvpickod_b(_1, _2);} +v16i16 __lasx_xvpickod_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvpickod_h(_1, _2);} +v8i32 __lasx_xvpickod_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvpickod_w(_1, _2);} +v4i64 __lasx_xvpickod_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvpickod_d(_1, _2);} +v32i8 __lasx_xvilvh_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvilvh_b(_1, _2);} +v16i16 __lasx_xvilvh_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvilvh_h(_1, _2);} +v8i32 __lasx_xvilvh_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvilvh_w(_1, _2);} +v4i64 __lasx_xvilvh_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvilvh_d(_1, _2);} +v32i8 __lasx_xvilvl_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvilvl_b(_1, _2);} +v16i16 __lasx_xvilvl_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvilvl_h(_1, _2);} +v8i32 __lasx_xvilvl_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvilvl_w(_1, _2);} +v4i64 __lasx_xvilvl_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvilvl_d(_1, _2);} +v32i8 __lasx_xvpackev_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvpackev_b(_1, _2);} +v16i16 __lasx_xvpackev_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvpackev_h(_1, _2);} +v8i32 __lasx_xvpackev_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvpackev_w(_1, _2);} +v4i64 __lasx_xvpackev_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvpackev_d(_1, _2);} +v32i8 __lasx_xvpackod_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvpackod_b(_1, _2);} +v16i16 __lasx_xvpackod_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvpackod_h(_1, _2);} +v8i32 __lasx_xvpackod_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvpackod_w(_1, _2);} +v4i64 __lasx_xvpackod_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvpackod_d(_1, _2);} +v32i8 __lasx_xvshuf_b(v32i8 _1, v32i8 _2, v32i8 _3){return __builtin_lasx_xvshuf_b(_1, _2, _3);} +v16i16 __lasx_xvshuf_h(v16i16 _1, v16i16 _2, v16i16 _3){return __builtin_lasx_xvshuf_h(_1, _2, _3);} +v8i32 __lasx_xvshuf_w(v8i32 _1, v8i32 _2, v8i32 _3){return __builtin_lasx_xvshuf_w(_1, _2, _3);} +v4i64 __lasx_xvshuf_d(v4i64 _1, v4i64 _2, v4i64 _3){return __builtin_lasx_xvshuf_d(_1, _2, _3);} +v32u8 __lasx_xvand_v(v32u8 _1, v32u8 _2){return __builtin_lasx_xvand_v(_1, _2);} +v32u8 __lasx_xvandi_b(v32u8 _1){return __builtin_lasx_xvandi_b(_1, 1);} +v32u8 __lasx_xvor_v(v32u8 _1, v32u8 _2){return __builtin_lasx_xvor_v(_1, _2);} +v32u8 __lasx_xvori_b(v32u8 _1){return __builtin_lasx_xvori_b(_1, 1);} +v32u8 __lasx_xvnor_v(v32u8 _1, v32u8 _2){return __builtin_lasx_xvnor_v(_1, _2);} +v32u8 __lasx_xvnori_b(v32u8 _1){return __builtin_lasx_xvnori_b(_1, 1);} +v32u8 __lasx_xvxor_v(v32u8 _1, v32u8 _2){return __builtin_lasx_xvxor_v(_1, _2);} +v32u8 __lasx_xvxori_b(v32u8 _1){return __builtin_lasx_xvxori_b(_1, 1);} +v32u8 __lasx_xvbitsel_v(v32u8 _1, v32u8 _2, v32u8 _3){return __builtin_lasx_xvbitsel_v(_1, _2, _3);} +v32u8 __lasx_xvbitseli_b(v32u8 _1, v32u8 _2){return __builtin_lasx_xvbitseli_b(_1, _2, 1);} +v32i8 __lasx_xvshuf4i_b(v32i8 _1){return __builtin_lasx_xvshuf4i_b(_1, 1);} +v16i16 __lasx_xvshuf4i_h(v16i16 _1){return __builtin_lasx_xvshuf4i_h(_1, 1);} +v8i32 __lasx_xvshuf4i_w(v8i32 _1){return __builtin_lasx_xvshuf4i_w(_1, 1);} +v32i8 __lasx_xvreplgr2vr_b(int _1){return __builtin_lasx_xvreplgr2vr_b(_1);} +v16i16 __lasx_xvreplgr2vr_h(int _1){return __builtin_lasx_xvreplgr2vr_h(_1);} +v8i32 __lasx_xvreplgr2vr_w(int _1){return __builtin_lasx_xvreplgr2vr_w(_1);} +v4i64 __lasx_xvreplgr2vr_d(int _1){return __builtin_lasx_xvreplgr2vr_d(_1);} +v32i8 __lasx_xvpcnt_b(v32i8 _1){return __builtin_lasx_xvpcnt_b(_1);} +v16i16 __lasx_xvpcnt_h(v16i16 _1){return __builtin_lasx_xvpcnt_h(_1);} +v8i32 __lasx_xvpcnt_w(v8i32 _1){return __builtin_lasx_xvpcnt_w(_1);} +v4i64 __lasx_xvpcnt_d(v4i64 _1){return __builtin_lasx_xvpcnt_d(_1);} +v32i8 __lasx_xvclo_b(v32i8 _1){return __builtin_lasx_xvclo_b(_1);} +v16i16 __lasx_xvclo_h(v16i16 _1){return __builtin_lasx_xvclo_h(_1);} +v8i32 __lasx_xvclo_w(v8i32 _1){return __builtin_lasx_xvclo_w(_1);} +v4i64 __lasx_xvclo_d(v4i64 _1){return __builtin_lasx_xvclo_d(_1);} +v32i8 __lasx_xvclz_b(v32i8 _1){return __builtin_lasx_xvclz_b(_1);} +v16i16 __lasx_xvclz_h(v16i16 _1){return __builtin_lasx_xvclz_h(_1);} +v8i32 __lasx_xvclz_w(v8i32 _1){return __builtin_lasx_xvclz_w(_1);} +v4i64 __lasx_xvclz_d(v4i64 _1){return __builtin_lasx_xvclz_d(_1);} +v8f32 __lasx_xvfadd_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfadd_s(_1, _2);} +v4f64 __lasx_xvfadd_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfadd_d(_1, _2);} +v8f32 __lasx_xvfsub_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfsub_s(_1, _2);} +v4f64 __lasx_xvfsub_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfsub_d(_1, _2);} +v8f32 __lasx_xvfmul_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfmul_s(_1, _2);} +v4f64 __lasx_xvfmul_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfmul_d(_1, _2);} +v8f32 __lasx_xvfdiv_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfdiv_s(_1, _2);} +v4f64 __lasx_xvfdiv_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfdiv_d(_1, _2);} +v16i16 __lasx_xvfcvt_h_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcvt_h_s(_1, _2);} +v8f32 __lasx_xvfcvt_s_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcvt_s_d(_1, _2);} +v8f32 __lasx_xvfmin_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfmin_s(_1, _2);} +v4f64 __lasx_xvfmin_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfmin_d(_1, _2);} +v8f32 __lasx_xvfmina_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfmina_s(_1, _2);} +v4f64 __lasx_xvfmina_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfmina_d(_1, _2);} +v8f32 __lasx_xvfmax_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfmax_s(_1, _2);} +v4f64 __lasx_xvfmax_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfmax_d(_1, _2);} +v8f32 __lasx_xvfmaxa_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfmaxa_s(_1, _2);} +v4f64 __lasx_xvfmaxa_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfmaxa_d(_1, _2);} +v8i32 __lasx_xvfclass_s(v8f32 _1){return __builtin_lasx_xvfclass_s(_1);} +v4i64 __lasx_xvfclass_d(v4f64 _1){return __builtin_lasx_xvfclass_d(_1);} +v8f32 __lasx_xvfsqrt_s(v8f32 _1){return __builtin_lasx_xvfsqrt_s(_1);} +v4f64 __lasx_xvfsqrt_d(v4f64 _1){return __builtin_lasx_xvfsqrt_d(_1);} +v8f32 __lasx_xvfrecip_s(v8f32 _1){return __builtin_lasx_xvfrecip_s(_1);} +v4f64 __lasx_xvfrecip_d(v4f64 _1){return __builtin_lasx_xvfrecip_d(_1);} +v8f32 __lasx_xvfrint_s(v8f32 _1){return __builtin_lasx_xvfrint_s(_1);} +v4f64 __lasx_xvfrint_d(v4f64 _1){return __builtin_lasx_xvfrint_d(_1);} +v8f32 __lasx_xvfrsqrt_s(v8f32 _1){return __builtin_lasx_xvfrsqrt_s(_1);} +v4f64 __lasx_xvfrsqrt_d(v4f64 _1){return __builtin_lasx_xvfrsqrt_d(_1);} +v8f32 __lasx_xvflogb_s(v8f32 _1){return __builtin_lasx_xvflogb_s(_1);} +v4f64 __lasx_xvflogb_d(v4f64 _1){return __builtin_lasx_xvflogb_d(_1);} +v8f32 __lasx_xvfcvth_s_h(v16i16 _1){return __builtin_lasx_xvfcvth_s_h(_1);} +v4f64 __lasx_xvfcvth_d_s(v8f32 _1){return __builtin_lasx_xvfcvth_d_s(_1);} +v8f32 __lasx_xvfcvtl_s_h(v16i16 _1){return __builtin_lasx_xvfcvtl_s_h(_1);} +v4f64 __lasx_xvfcvtl_d_s(v8f32 _1){return __builtin_lasx_xvfcvtl_d_s(_1);} +v8i32 __lasx_xvftint_w_s(v8f32 _1){return __builtin_lasx_xvftint_w_s(_1);} +v4i64 __lasx_xvftint_l_d(v4f64 _1){return __builtin_lasx_xvftint_l_d(_1);} +v8u32 __lasx_xvftint_wu_s(v8f32 _1){return __builtin_lasx_xvftint_wu_s(_1);} +v4u64 __lasx_xvftint_lu_d(v4f64 _1){return __builtin_lasx_xvftint_lu_d(_1);} +v8i32 __lasx_xvftintrz_w_s(v8f32 _1){return __builtin_lasx_xvftintrz_w_s(_1);} +v4i64 __lasx_xvftintrz_l_d(v4f64 _1){return __builtin_lasx_xvftintrz_l_d(_1);} +v8u32 __lasx_xvftintrz_wu_s(v8f32 _1){return __builtin_lasx_xvftintrz_wu_s(_1);} +v4u64 __lasx_xvftintrz_lu_d(v4f64 _1){return __builtin_lasx_xvftintrz_lu_d(_1);} +v8f32 __lasx_xvffint_s_w(v8i32 _1){return __builtin_lasx_xvffint_s_w(_1);} +v4f64 __lasx_xvffint_d_l(v4i64 _1){return __builtin_lasx_xvffint_d_l(_1);} +v8f32 __lasx_xvffint_s_wu(v8u32 _1){return __builtin_lasx_xvffint_s_wu(_1);} +v4f64 __lasx_xvffint_d_lu(v4u64 _1){return __builtin_lasx_xvffint_d_lu(_1);} +v32i8 __lasx_xvreplve_b(v32i8 _1, int _2){return __builtin_lasx_xvreplve_b(_1, _2);} +v16i16 __lasx_xvreplve_h(v16i16 _1, int _2){return __builtin_lasx_xvreplve_h(_1, _2);} +v8i32 __lasx_xvreplve_w(v8i32 _1, int _2){return __builtin_lasx_xvreplve_w(_1, _2);} +v4i64 __lasx_xvreplve_d(v4i64 _1, int _2){return __builtin_lasx_xvreplve_d(_1, _2);} +v8i32 __lasx_xvpermi_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvpermi_w(_1, _2, 1);} +v32u8 __lasx_xvandn_v(v32u8 _1, v32u8 _2){return __builtin_lasx_xvandn_v(_1, _2);} +v32i8 __lasx_xvneg_b(v32i8 _1){return __builtin_lasx_xvneg_b(_1);} +v16i16 __lasx_xvneg_h(v16i16 _1){return __builtin_lasx_xvneg_h(_1);} +v8i32 __lasx_xvneg_w(v8i32 _1){return __builtin_lasx_xvneg_w(_1);} +v4i64 __lasx_xvneg_d(v4i64 _1){return __builtin_lasx_xvneg_d(_1);} +v32i8 __lasx_xvmuh_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmuh_b(_1, _2);} +v16i16 __lasx_xvmuh_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmuh_h(_1, _2);} +v8i32 __lasx_xvmuh_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmuh_w(_1, _2);} +v4i64 __lasx_xvmuh_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmuh_d(_1, _2);} +v32u8 __lasx_xvmuh_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvmuh_bu(_1, _2);} +v16u16 __lasx_xvmuh_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvmuh_hu(_1, _2);} +v8u32 __lasx_xvmuh_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvmuh_wu(_1, _2);} +v4u64 __lasx_xvmuh_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvmuh_du(_1, _2);} +v16i16 __lasx_xvsllwil_h_b(v32i8 _1){return __builtin_lasx_xvsllwil_h_b(_1, 1);} +v8i32 __lasx_xvsllwil_w_h(v16i16 _1){return __builtin_lasx_xvsllwil_w_h(_1, 1);} +v4i64 __lasx_xvsllwil_d_w(v8i32 _1){return __builtin_lasx_xvsllwil_d_w(_1, 1);} +v16u16 __lasx_xvsllwil_hu_bu(v32u8 _1){return __builtin_lasx_xvsllwil_hu_bu(_1, 1);} +v8u32 __lasx_xvsllwil_wu_hu(v16u16 _1){return __builtin_lasx_xvsllwil_wu_hu(_1, 1);} +v4u64 __lasx_xvsllwil_du_wu(v8u32 _1){return __builtin_lasx_xvsllwil_du_wu(_1, 1);} +v32i8 __lasx_xvsran_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsran_b_h(_1, _2);} +v16i16 __lasx_xvsran_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsran_h_w(_1, _2);} +v8i32 __lasx_xvsran_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsran_w_d(_1, _2);} +v32i8 __lasx_xvssran_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssran_b_h(_1, _2);} +v16i16 __lasx_xvssran_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssran_h_w(_1, _2);} +v8i32 __lasx_xvssran_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssran_w_d(_1, _2);} +v32u8 __lasx_xvssran_bu_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvssran_bu_h(_1, _2);} +v16u16 __lasx_xvssran_hu_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvssran_hu_w(_1, _2);} +v8u32 __lasx_xvssran_wu_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvssran_wu_d(_1, _2);} +v32i8 __lasx_xvsrarn_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrarn_b_h(_1, _2);} +v16i16 __lasx_xvsrarn_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrarn_h_w(_1, _2);} +v8i32 __lasx_xvsrarn_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrarn_w_d(_1, _2);} +v32i8 __lasx_xvssrarn_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrarn_b_h(_1, _2);} +v16i16 __lasx_xvssrarn_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrarn_h_w(_1, _2);} +v8i32 __lasx_xvssrarn_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrarn_w_d(_1, _2);} +v32u8 __lasx_xvssrarn_bu_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvssrarn_bu_h(_1, _2);} +v16u16 __lasx_xvssrarn_hu_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvssrarn_hu_w(_1, _2);} +v8u32 __lasx_xvssrarn_wu_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvssrarn_wu_d(_1, _2);} +v32i8 __lasx_xvsrln_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrln_b_h(_1, _2);} +v16i16 __lasx_xvsrln_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrln_h_w(_1, _2);} +v8i32 __lasx_xvsrln_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrln_w_d(_1, _2);} +v32u8 __lasx_xvssrln_bu_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvssrln_bu_h(_1, _2);} +v16u16 __lasx_xvssrln_hu_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvssrln_hu_w(_1, _2);} +v8u32 __lasx_xvssrln_wu_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvssrln_wu_d(_1, _2);} +v32i8 __lasx_xvsrlrn_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrlrn_b_h(_1, _2);} +v16i16 __lasx_xvsrlrn_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrlrn_h_w(_1, _2);} +v8i32 __lasx_xvsrlrn_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrlrn_w_d(_1, _2);} +v32u8 __lasx_xvssrlrn_bu_h(v16u16 _1, v16u16 _2){return __builtin_lasx_xvssrlrn_bu_h(_1, _2);} +v16u16 __lasx_xvssrlrn_hu_w(v8u32 _1, v8u32 _2){return __builtin_lasx_xvssrlrn_hu_w(_1, _2);} +v8u32 __lasx_xvssrlrn_wu_d(v4u64 _1, v4u64 _2){return __builtin_lasx_xvssrlrn_wu_d(_1, _2);} +v32i8 __lasx_xvfrstpi_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvfrstpi_b(_1, _2, 1);} +v16i16 __lasx_xvfrstpi_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvfrstpi_h(_1, _2, 1);} +v32i8 __lasx_xvfrstp_b(v32i8 _1, v32i8 _2, v32i8 _3){return __builtin_lasx_xvfrstp_b(_1, _2, _3);} +v16i16 __lasx_xvfrstp_h(v16i16 _1, v16i16 _2, v16i16 _3){return __builtin_lasx_xvfrstp_h(_1, _2, _3);} +v4i64 __lasx_xvshuf4i_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvshuf4i_d(_1, _2, 1);} +v32i8 __lasx_xvbsrl_v(v32i8 _1){return __builtin_lasx_xvbsrl_v(_1, 1);} +v32i8 __lasx_xvbsll_v(v32i8 _1){return __builtin_lasx_xvbsll_v(_1, 1);} +v32i8 __lasx_xvextrins_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvextrins_b(_1, _2, 1);} +v16i16 __lasx_xvextrins_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvextrins_h(_1, _2, 1);} +v8i32 __lasx_xvextrins_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvextrins_w(_1, _2, 1);} +v4i64 __lasx_xvextrins_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvextrins_d(_1, _2, 1);} +v32i8 __lasx_xvmskltz_b(v32i8 _1){return __builtin_lasx_xvmskltz_b(_1);} +v16i16 __lasx_xvmskltz_h(v16i16 _1){return __builtin_lasx_xvmskltz_h(_1);} +v8i32 __lasx_xvmskltz_w(v8i32 _1){return __builtin_lasx_xvmskltz_w(_1);} +v4i64 __lasx_xvmskltz_d(v4i64 _1){return __builtin_lasx_xvmskltz_d(_1);} +v32i8 __lasx_xvsigncov_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsigncov_b(_1, _2);} +v16i16 __lasx_xvsigncov_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsigncov_h(_1, _2);} +v8i32 __lasx_xvsigncov_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsigncov_w(_1, _2);} +v4i64 __lasx_xvsigncov_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsigncov_d(_1, _2);} +v8f32 __lasx_xvfmadd_s(v8f32 _1, v8f32 _2, v8f32 _3){return __builtin_lasx_xvfmadd_s(_1, _2, _3);} +v4f64 __lasx_xvfmadd_d(v4f64 _1, v4f64 _2, v4f64 _3){return __builtin_lasx_xvfmadd_d(_1, _2, _3);} +v8f32 __lasx_xvfmsub_s(v8f32 _1, v8f32 _2, v8f32 _3){return __builtin_lasx_xvfmsub_s(_1, _2, _3);} +v4f64 __lasx_xvfmsub_d(v4f64 _1, v4f64 _2, v4f64 _3){return __builtin_lasx_xvfmsub_d(_1, _2, _3);} +v8f32 __lasx_xvfnmadd_s(v8f32 _1, v8f32 _2, v8f32 _3){return __builtin_lasx_xvfnmadd_s(_1, _2, _3);} +v4f64 __lasx_xvfnmadd_d(v4f64 _1, v4f64 _2, v4f64 _3){return __builtin_lasx_xvfnmadd_d(_1, _2, _3);} +v8f32 __lasx_xvfnmsub_s(v8f32 _1, v8f32 _2, v8f32 _3){return __builtin_lasx_xvfnmsub_s(_1, _2, _3);} +v4f64 __lasx_xvfnmsub_d(v4f64 _1, v4f64 _2, v4f64 _3){return __builtin_lasx_xvfnmsub_d(_1, _2, _3);} +v8i32 __lasx_xvftintrne_w_s(v8f32 _1){return __builtin_lasx_xvftintrne_w_s(_1);} +v4i64 __lasx_xvftintrne_l_d(v4f64 _1){return __builtin_lasx_xvftintrne_l_d(_1);} +v8i32 __lasx_xvftintrp_w_s(v8f32 _1){return __builtin_lasx_xvftintrp_w_s(_1);} +v4i64 __lasx_xvftintrp_l_d(v4f64 _1){return __builtin_lasx_xvftintrp_l_d(_1);} +v8i32 __lasx_xvftintrm_w_s(v8f32 _1){return __builtin_lasx_xvftintrm_w_s(_1);} +v4i64 __lasx_xvftintrm_l_d(v4f64 _1){return __builtin_lasx_xvftintrm_l_d(_1);} +v8i32 __lasx_xvftint_w_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvftint_w_d(_1, _2);} +v8f32 __lasx_xvffint_s_l(v4i64 _1, v4i64 _2){return __builtin_lasx_xvffint_s_l(_1, _2);} +v8i32 __lasx_xvftintrz_w_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvftintrz_w_d(_1, _2);} +v8i32 __lasx_xvftintrp_w_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvftintrp_w_d(_1, _2);} +v8i32 __lasx_xvftintrm_w_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvftintrm_w_d(_1, _2);} +v8i32 __lasx_xvftintrne_w_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvftintrne_w_d(_1, _2);} +v4i64 __lasx_xvftinth_l_s(v8f32 _1){return __builtin_lasx_xvftinth_l_s(_1);} +v4i64 __lasx_xvftintl_l_s(v8f32 _1){return __builtin_lasx_xvftintl_l_s(_1);} +v4f64 __lasx_xvffinth_d_w(v8i32 _1){return __builtin_lasx_xvffinth_d_w(_1);} +v4f64 __lasx_xvffintl_d_w(v8i32 _1){return __builtin_lasx_xvffintl_d_w(_1);} +v4i64 __lasx_xvftintrzh_l_s(v8f32 _1){return __builtin_lasx_xvftintrzh_l_s(_1);} +v4i64 __lasx_xvftintrzl_l_s(v8f32 _1){return __builtin_lasx_xvftintrzl_l_s(_1);} +v4i64 __lasx_xvftintrph_l_s(v8f32 _1){return __builtin_lasx_xvftintrph_l_s(_1);} +v4i64 __lasx_xvftintrpl_l_s(v8f32 _1){return __builtin_lasx_xvftintrpl_l_s(_1);} +v4i64 __lasx_xvftintrmh_l_s(v8f32 _1){return __builtin_lasx_xvftintrmh_l_s(_1);} +v4i64 __lasx_xvftintrml_l_s(v8f32 _1){return __builtin_lasx_xvftintrml_l_s(_1);} +v4i64 __lasx_xvftintrneh_l_s(v8f32 _1){return __builtin_lasx_xvftintrneh_l_s(_1);} +v4i64 __lasx_xvftintrnel_l_s(v8f32 _1){return __builtin_lasx_xvftintrnel_l_s(_1);} +v8f32 __lasx_xvfrintrne_s(v8f32 _1){return __builtin_lasx_xvfrintrne_s(_1);} +v4f64 __lasx_xvfrintrne_d(v4f64 _1){return __builtin_lasx_xvfrintrne_d(_1);} +v8f32 __lasx_xvfrintrz_s(v8f32 _1){return __builtin_lasx_xvfrintrz_s(_1);} +v4f64 __lasx_xvfrintrz_d(v4f64 _1){return __builtin_lasx_xvfrintrz_d(_1);} +v8f32 __lasx_xvfrintrp_s(v8f32 _1){return __builtin_lasx_xvfrintrp_s(_1);} +v4f64 __lasx_xvfrintrp_d(v4f64 _1){return __builtin_lasx_xvfrintrp_d(_1);} +v8f32 __lasx_xvfrintrm_s(v8f32 _1){return __builtin_lasx_xvfrintrm_s(_1);} +v4f64 __lasx_xvfrintrm_d(v4f64 _1){return __builtin_lasx_xvfrintrm_d(_1);} +v32i8 __lasx_xvld(void * _1){return __builtin_lasx_xvld(_1, 1);} +void __lasx_xvst(v32i8 _1, void * _2){return __builtin_lasx_xvst(_1, _2, 1);} +void __lasx_xvstelm_b(v32i8 _1, void * _2){return __builtin_lasx_xvstelm_b(_1, _2, 1, 1);} +void __lasx_xvstelm_h(v16i16 _1, void * _2){return __builtin_lasx_xvstelm_h(_1, _2, 2, 1);} +void __lasx_xvstelm_w(v8i32 _1, void * _2){return __builtin_lasx_xvstelm_w(_1, _2, 4, 1);} +void __lasx_xvstelm_d(v4i64 _1, void * _2){return __builtin_lasx_xvstelm_d(_1, _2, 8, 1);} +v8i32 __lasx_xvinsve0_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvinsve0_w(_1, _2, 1);} +v4i64 __lasx_xvinsve0_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvinsve0_d(_1, _2, 1);} +v8i32 __lasx_xvpickve_w(v8i32 _1){return __builtin_lasx_xvpickve_w(_1, 1);} +v4i64 __lasx_xvpickve_d(v4i64 _1){return __builtin_lasx_xvpickve_d(_1, 1);} +v32i8 __lasx_xvssrlrn_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrlrn_b_h(_1, _2);} +v16i16 __lasx_xvssrlrn_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrlrn_h_w(_1, _2);} +v8i32 __lasx_xvssrlrn_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrlrn_w_d(_1, _2);} +v32i8 __lasx_xvssrln_b_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrln_b_h(_1, _2);} +v16i16 __lasx_xvssrln_h_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrln_h_w(_1, _2);} +v8i32 __lasx_xvssrln_w_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrln_w_d(_1, _2);} +v32i8 __lasx_xvorn_v(v32i8 _1, v32i8 _2){return __builtin_lasx_xvorn_v(_1, _2);} +v4i64 __lasx_xvldi(){return __builtin_lasx_xvldi(1);} +v32i8 __lasx_xvldx(void * _1){return __builtin_lasx_xvldx(_1, 1);} +void __lasx_xvstx(v32i8 _1, void * _2){return __builtin_lasx_xvstx(_1, _2, 1);} +v4u64 __lasx_xvextl_qu_du(v4u64 _1){return __builtin_lasx_xvextl_qu_du(_1);} +v8i32 __lasx_xvinsgr2vr_w(v8i32 _1){return __builtin_lasx_xvinsgr2vr_w(_1, 1, 1);} +v4i64 __lasx_xvinsgr2vr_d(v4i64 _1){return __builtin_lasx_xvinsgr2vr_d(_1, 1, 1);} +v32i8 __lasx_xvreplve0_b(v32i8 _1){return __builtin_lasx_xvreplve0_b(_1);} +v16i16 __lasx_xvreplve0_h(v16i16 _1){return __builtin_lasx_xvreplve0_h(_1);} +v8i32 __lasx_xvreplve0_w(v8i32 _1){return __builtin_lasx_xvreplve0_w(_1);} +v4i64 __lasx_xvreplve0_d(v4i64 _1){return __builtin_lasx_xvreplve0_d(_1);} +v32i8 __lasx_xvreplve0_q(v32i8 _1){return __builtin_lasx_xvreplve0_q(_1);} +v16i16 __lasx_vext2xv_h_b(v32i8 _1){return __builtin_lasx_vext2xv_h_b(_1);} +v8i32 __lasx_vext2xv_w_h(v16i16 _1){return __builtin_lasx_vext2xv_w_h(_1);} +v4i64 __lasx_vext2xv_d_w(v8i32 _1){return __builtin_lasx_vext2xv_d_w(_1);} +v8i32 __lasx_vext2xv_w_b(v32i8 _1){return __builtin_lasx_vext2xv_w_b(_1);} +v4i64 __lasx_vext2xv_d_h(v16i16 _1){return __builtin_lasx_vext2xv_d_h(_1);} +v4i64 __lasx_vext2xv_d_b(v32i8 _1){return __builtin_lasx_vext2xv_d_b(_1);} +v16i16 __lasx_vext2xv_hu_bu(v32i8 _1){return __builtin_lasx_vext2xv_hu_bu(_1);} +v8i32 __lasx_vext2xv_wu_hu(v16i16 _1){return __builtin_lasx_vext2xv_wu_hu(_1);} +v4i64 __lasx_vext2xv_du_wu(v8i32 _1){return __builtin_lasx_vext2xv_du_wu(_1);} +v8i32 __lasx_vext2xv_wu_bu(v32i8 _1){return __builtin_lasx_vext2xv_wu_bu(_1);} +v4i64 __lasx_vext2xv_du_hu(v16i16 _1){return __builtin_lasx_vext2xv_du_hu(_1);} +v4i64 __lasx_vext2xv_du_bu(v32i8 _1){return __builtin_lasx_vext2xv_du_bu(_1);} +v32i8 __lasx_xvpermi_q(v32i8 _1, v32i8 _2){return __builtin_lasx_xvpermi_q(_1, _2, 1);} +v4i64 __lasx_xvpermi_d(v4i64 _1){return __builtin_lasx_xvpermi_d(_1, 1);} +v8i32 __lasx_xvperm_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvperm_w(_1, _2);} +v32i8 __lasx_xvldrepl_b(void * _1){return __builtin_lasx_xvldrepl_b(_1, 1);} +v16i16 __lasx_xvldrepl_h(void * _1){return __builtin_lasx_xvldrepl_h(_1, 2);} +v8i32 __lasx_xvldrepl_w(void * _1){return __builtin_lasx_xvldrepl_w(_1, 4);} +v4i64 __lasx_xvldrepl_d(void * _1){return __builtin_lasx_xvldrepl_d(_1, 8);} +int __lasx_xvpickve2gr_w(v8i32 _1){return __builtin_lasx_xvpickve2gr_w(_1, 1);} +unsigned int __lasx_xvpickve2gr_wu(v8i32 _1){return __builtin_lasx_xvpickve2gr_wu(_1, 1);} +long __lasx_xvpickve2gr_d(v4i64 _1){return __builtin_lasx_xvpickve2gr_d(_1, 1);} +unsigned long int __lasx_xvpickve2gr_du(v4i64 _1){return __builtin_lasx_xvpickve2gr_du(_1, 1);} +v4i64 __lasx_xvaddwev_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvaddwev_q_d(_1, _2);} +v4i64 __lasx_xvaddwev_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvaddwev_d_w(_1, _2);} +v8i32 __lasx_xvaddwev_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvaddwev_w_h(_1, _2);} +v16i16 __lasx_xvaddwev_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvaddwev_h_b(_1, _2);} +v4i64 __lasx_xvaddwev_q_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvaddwev_q_du(_1, _2);} +v4i64 __lasx_xvaddwev_d_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvaddwev_d_wu(_1, _2);} +v8i32 __lasx_xvaddwev_w_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvaddwev_w_hu(_1, _2);} +v16i16 __lasx_xvaddwev_h_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvaddwev_h_bu(_1, _2);} +v4i64 __lasx_xvsubwev_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsubwev_q_d(_1, _2);} +v4i64 __lasx_xvsubwev_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsubwev_d_w(_1, _2);} +v8i32 __lasx_xvsubwev_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsubwev_w_h(_1, _2);} +v16i16 __lasx_xvsubwev_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsubwev_h_b(_1, _2);} +v4i64 __lasx_xvsubwev_q_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvsubwev_q_du(_1, _2);} +v4i64 __lasx_xvsubwev_d_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvsubwev_d_wu(_1, _2);} +v8i32 __lasx_xvsubwev_w_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvsubwev_w_hu(_1, _2);} +v16i16 __lasx_xvsubwev_h_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvsubwev_h_bu(_1, _2);} +v4i64 __lasx_xvmulwev_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmulwev_q_d(_1, _2);} +v4i64 __lasx_xvmulwev_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmulwev_d_w(_1, _2);} +v8i32 __lasx_xvmulwev_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmulwev_w_h(_1, _2);} +v16i16 __lasx_xvmulwev_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmulwev_h_b(_1, _2);} +v4i64 __lasx_xvmulwev_q_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvmulwev_q_du(_1, _2);} +v4i64 __lasx_xvmulwev_d_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvmulwev_d_wu(_1, _2);} +v8i32 __lasx_xvmulwev_w_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvmulwev_w_hu(_1, _2);} +v16i16 __lasx_xvmulwev_h_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvmulwev_h_bu(_1, _2);} +v4i64 __lasx_xvaddwod_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvaddwod_q_d(_1, _2);} +v4i64 __lasx_xvaddwod_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvaddwod_d_w(_1, _2);} +v8i32 __lasx_xvaddwod_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvaddwod_w_h(_1, _2);} +v16i16 __lasx_xvaddwod_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvaddwod_h_b(_1, _2);} +v4i64 __lasx_xvaddwod_q_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvaddwod_q_du(_1, _2);} +v4i64 __lasx_xvaddwod_d_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvaddwod_d_wu(_1, _2);} +v8i32 __lasx_xvaddwod_w_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvaddwod_w_hu(_1, _2);} +v16i16 __lasx_xvaddwod_h_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvaddwod_h_bu(_1, _2);} +v4i64 __lasx_xvsubwod_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsubwod_q_d(_1, _2);} +v4i64 __lasx_xvsubwod_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsubwod_d_w(_1, _2);} +v8i32 __lasx_xvsubwod_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsubwod_w_h(_1, _2);} +v16i16 __lasx_xvsubwod_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsubwod_h_b(_1, _2);} +v4i64 __lasx_xvsubwod_q_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvsubwod_q_du(_1, _2);} +v4i64 __lasx_xvsubwod_d_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvsubwod_d_wu(_1, _2);} +v8i32 __lasx_xvsubwod_w_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvsubwod_w_hu(_1, _2);} +v16i16 __lasx_xvsubwod_h_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvsubwod_h_bu(_1, _2);} +v4i64 __lasx_xvmulwod_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvmulwod_q_d(_1, _2);} +v4i64 __lasx_xvmulwod_d_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvmulwod_d_w(_1, _2);} +v8i32 __lasx_xvmulwod_w_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvmulwod_w_h(_1, _2);} +v16i16 __lasx_xvmulwod_h_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvmulwod_h_b(_1, _2);} +v4i64 __lasx_xvmulwod_q_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvmulwod_q_du(_1, _2);} +v4i64 __lasx_xvmulwod_d_wu(v8u32 _1, v8u32 _2){return __builtin_lasx_xvmulwod_d_wu(_1, _2);} +v8i32 __lasx_xvmulwod_w_hu(v16u16 _1, v16u16 _2){return __builtin_lasx_xvmulwod_w_hu(_1, _2);} +v16i16 __lasx_xvmulwod_h_bu(v32u8 _1, v32u8 _2){return __builtin_lasx_xvmulwod_h_bu(_1, _2);} +v4i64 __lasx_xvaddwev_d_wu_w(v8u32 _1, v8i32 _2){return __builtin_lasx_xvaddwev_d_wu_w(_1, _2);} +v8i32 __lasx_xvaddwev_w_hu_h(v16u16 _1, v16i16 _2){return __builtin_lasx_xvaddwev_w_hu_h(_1, _2);} +v16i16 __lasx_xvaddwev_h_bu_b(v32u8 _1, v32i8 _2){return __builtin_lasx_xvaddwev_h_bu_b(_1, _2);} +v4i64 __lasx_xvmulwev_d_wu_w(v8u32 _1, v8i32 _2){return __builtin_lasx_xvmulwev_d_wu_w(_1, _2);} +v8i32 __lasx_xvmulwev_w_hu_h(v16u16 _1, v16i16 _2){return __builtin_lasx_xvmulwev_w_hu_h(_1, _2);} +v16i16 __lasx_xvmulwev_h_bu_b(v32u8 _1, v32i8 _2){return __builtin_lasx_xvmulwev_h_bu_b(_1, _2);} +v4i64 __lasx_xvaddwod_d_wu_w(v8u32 _1, v8i32 _2){return __builtin_lasx_xvaddwod_d_wu_w(_1, _2);} +v8i32 __lasx_xvaddwod_w_hu_h(v16u16 _1, v16i16 _2){return __builtin_lasx_xvaddwod_w_hu_h(_1, _2);} +v16i16 __lasx_xvaddwod_h_bu_b(v32u8 _1, v32i8 _2){return __builtin_lasx_xvaddwod_h_bu_b(_1, _2);} +v4i64 __lasx_xvmulwod_d_wu_w(v8u32 _1, v8i32 _2){return __builtin_lasx_xvmulwod_d_wu_w(_1, _2);} +v8i32 __lasx_xvmulwod_w_hu_h(v16u16 _1, v16i16 _2){return __builtin_lasx_xvmulwod_w_hu_h(_1, _2);} +v16i16 __lasx_xvmulwod_h_bu_b(v32u8 _1, v32i8 _2){return __builtin_lasx_xvmulwod_h_bu_b(_1, _2);} +v4i64 __lasx_xvhaddw_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvhaddw_q_d(_1, _2);} +v4u64 __lasx_xvhaddw_qu_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvhaddw_qu_du(_1, _2);} +v4i64 __lasx_xvhsubw_q_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvhsubw_q_d(_1, _2);} +v4u64 __lasx_xvhsubw_qu_du(v4u64 _1, v4u64 _2){return __builtin_lasx_xvhsubw_qu_du(_1, _2);} +v4i64 __lasx_xvmaddwev_q_d(v4i64 _1, v4i64 _2, v4i64 _3){return __builtin_lasx_xvmaddwev_q_d(_1, _2, _3);} +v4i64 __lasx_xvmaddwev_d_w(v4i64 _1, v8i32 _2, v8i32 _3){return __builtin_lasx_xvmaddwev_d_w(_1, _2, _3);} +v8i32 __lasx_xvmaddwev_w_h(v8i32 _1, v16i16 _2, v16i16 _3){return __builtin_lasx_xvmaddwev_w_h(_1, _2, _3);} +v16i16 __lasx_xvmaddwev_h_b(v16i16 _1, v32i8 _2, v32i8 _3){return __builtin_lasx_xvmaddwev_h_b(_1, _2, _3);} +v4u64 __lasx_xvmaddwev_q_du(v4u64 _1, v4u64 _2, v4u64 _3){return __builtin_lasx_xvmaddwev_q_du(_1, _2, _3);} +v4u64 __lasx_xvmaddwev_d_wu(v4u64 _1, v8u32 _2, v8u32 _3){return __builtin_lasx_xvmaddwev_d_wu(_1, _2, _3);} +v8u32 __lasx_xvmaddwev_w_hu(v8u32 _1, v16u16 _2, v16u16 _3){return __builtin_lasx_xvmaddwev_w_hu(_1, _2, _3);} +v16u16 __lasx_xvmaddwev_h_bu(v16u16 _1, v32u8 _2, v32u8 _3){return __builtin_lasx_xvmaddwev_h_bu(_1, _2, _3);} +v4i64 __lasx_xvmaddwod_q_d(v4i64 _1, v4i64 _2, v4i64 _3){return __builtin_lasx_xvmaddwod_q_d(_1, _2, _3);} +v4i64 __lasx_xvmaddwod_d_w(v4i64 _1, v8i32 _2, v8i32 _3){return __builtin_lasx_xvmaddwod_d_w(_1, _2, _3);} +v8i32 __lasx_xvmaddwod_w_h(v8i32 _1, v16i16 _2, v16i16 _3){return __builtin_lasx_xvmaddwod_w_h(_1, _2, _3);} +v16i16 __lasx_xvmaddwod_h_b(v16i16 _1, v32i8 _2, v32i8 _3){return __builtin_lasx_xvmaddwod_h_b(_1, _2, _3);} +v4u64 __lasx_xvmaddwod_q_du(v4u64 _1, v4u64 _2, v4u64 _3){return __builtin_lasx_xvmaddwod_q_du(_1, _2, _3);} +v4u64 __lasx_xvmaddwod_d_wu(v4u64 _1, v8u32 _2, v8u32 _3){return __builtin_lasx_xvmaddwod_d_wu(_1, _2, _3);} +v8u32 __lasx_xvmaddwod_w_hu(v8u32 _1, v16u16 _2, v16u16 _3){return __builtin_lasx_xvmaddwod_w_hu(_1, _2, _3);} +v16u16 __lasx_xvmaddwod_h_bu(v16u16 _1, v32u8 _2, v32u8 _3){return __builtin_lasx_xvmaddwod_h_bu(_1, _2, _3);} +v4i64 __lasx_xvmaddwev_q_du_d(v4i64 _1, v4u64 _2, v4i64 _3){return __builtin_lasx_xvmaddwev_q_du_d(_1, _2, _3);} +v4i64 __lasx_xvmaddwev_d_wu_w(v4i64 _1, v8u32 _2, v8i32 _3){return __builtin_lasx_xvmaddwev_d_wu_w(_1, _2, _3);} +v8i32 __lasx_xvmaddwev_w_hu_h(v8i32 _1, v16u16 _2, v16i16 _3){return __builtin_lasx_xvmaddwev_w_hu_h(_1, _2, _3);} +v16i16 __lasx_xvmaddwev_h_bu_b(v16i16 _1, v32u8 _2, v32i8 _3){return __builtin_lasx_xvmaddwev_h_bu_b(_1, _2, _3);} +v4i64 __lasx_xvmaddwod_q_du_d(v4i64 _1, v4u64 _2, v4i64 _3){return __builtin_lasx_xvmaddwod_q_du_d(_1, _2, _3);} +v4i64 __lasx_xvmaddwod_d_wu_w(v4i64 _1, v8u32 _2, v8i32 _3){return __builtin_lasx_xvmaddwod_d_wu_w(_1, _2, _3);} +v8i32 __lasx_xvmaddwod_w_hu_h(v8i32 _1, v16u16 _2, v16i16 _3){return __builtin_lasx_xvmaddwod_w_hu_h(_1, _2, _3);} +v16i16 __lasx_xvmaddwod_h_bu_b(v16i16 _1, v32u8 _2, v32i8 _3){return __builtin_lasx_xvmaddwod_h_bu_b(_1, _2, _3);} +v32i8 __lasx_xvrotr_b(v32i8 _1, v32i8 _2){return __builtin_lasx_xvrotr_b(_1, _2);} +v16i16 __lasx_xvrotr_h(v16i16 _1, v16i16 _2){return __builtin_lasx_xvrotr_h(_1, _2);} +v8i32 __lasx_xvrotr_w(v8i32 _1, v8i32 _2){return __builtin_lasx_xvrotr_w(_1, _2);} +v4i64 __lasx_xvrotr_d(v4i64 _1, v4i64 _2){return __builtin_lasx_xvrotr_d(_1, _2);} +v4i64 __lasx_xvadd_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvadd_q(_1, _2);} +v4i64 __lasx_xvsub_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsub_q(_1, _2);} +v4i64 __lasx_xvaddwev_q_du_d(v4u64 _1, v4i64 _2){return __builtin_lasx_xvaddwev_q_du_d(_1, _2);} +v4i64 __lasx_xvaddwod_q_du_d(v4u64 _1, v4i64 _2){return __builtin_lasx_xvaddwod_q_du_d(_1, _2);} +v4i64 __lasx_xvmulwev_q_du_d(v4u64 _1, v4i64 _2){return __builtin_lasx_xvmulwev_q_du_d(_1, _2);} +v4i64 __lasx_xvmulwod_q_du_d(v4u64 _1, v4i64 _2){return __builtin_lasx_xvmulwod_q_du_d(_1, _2);} +v32i8 __lasx_xvmskgez_b(v32i8 _1){return __builtin_lasx_xvmskgez_b(_1);} +v32i8 __lasx_xvmsknz_b(v32i8 _1){return __builtin_lasx_xvmsknz_b(_1);} +v16i16 __lasx_xvexth_h_b(v32i8 _1){return __builtin_lasx_xvexth_h_b(_1);} +v8i32 __lasx_xvexth_w_h(v16i16 _1){return __builtin_lasx_xvexth_w_h(_1);} +v4i64 __lasx_xvexth_d_w(v8i32 _1){return __builtin_lasx_xvexth_d_w(_1);} +v4i64 __lasx_xvexth_q_d(v4i64 _1){return __builtin_lasx_xvexth_q_d(_1);} +v16u16 __lasx_xvexth_hu_bu(v32u8 _1){return __builtin_lasx_xvexth_hu_bu(_1);} +v8u32 __lasx_xvexth_wu_hu(v16u16 _1){return __builtin_lasx_xvexth_wu_hu(_1);} +v4u64 __lasx_xvexth_du_wu(v8u32 _1){return __builtin_lasx_xvexth_du_wu(_1);} +v4u64 __lasx_xvexth_qu_du(v4u64 _1){return __builtin_lasx_xvexth_qu_du(_1);} +v32i8 __lasx_xvrotri_b(v32i8 _1){return __builtin_lasx_xvrotri_b(_1, 1);} +v16i16 __lasx_xvrotri_h(v16i16 _1){return __builtin_lasx_xvrotri_h(_1, 1);} +v8i32 __lasx_xvrotri_w(v8i32 _1){return __builtin_lasx_xvrotri_w(_1, 1);} +v4i64 __lasx_xvrotri_d(v4i64 _1){return __builtin_lasx_xvrotri_d(_1, 1);} +v4i64 __lasx_xvextl_q_d(v4i64 _1){return __builtin_lasx_xvextl_q_d(_1);} +v32i8 __lasx_xvsrlni_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrlni_b_h(_1, _2, 1);} +v16i16 __lasx_xvsrlni_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrlni_h_w(_1, _2, 1);} +v8i32 __lasx_xvsrlni_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrlni_w_d(_1, _2, 1);} +v4i64 __lasx_xvsrlni_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrlni_d_q(_1, _2, 1);} +v32i8 __lasx_xvsrlrni_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrlrni_b_h(_1, _2, 1);} +v16i16 __lasx_xvsrlrni_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrlrni_h_w(_1, _2, 1);} +v8i32 __lasx_xvsrlrni_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrlrni_w_d(_1, _2, 1);} +v4i64 __lasx_xvsrlrni_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrlrni_d_q(_1, _2, 1);} +v32i8 __lasx_xvssrlni_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvssrlni_b_h(_1, _2, 1);} +v16i16 __lasx_xvssrlni_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrlni_h_w(_1, _2, 1);} +v8i32 __lasx_xvssrlni_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrlni_w_d(_1, _2, 1);} +v4i64 __lasx_xvssrlni_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrlni_d_q(_1, _2, 1);} +v32u8 __lasx_xvssrlni_bu_h(v32u8 _1, v32i8 _2){return __builtin_lasx_xvssrlni_bu_h(_1, _2, 1);} +v16u16 __lasx_xvssrlni_hu_w(v16u16 _1, v16i16 _2){return __builtin_lasx_xvssrlni_hu_w(_1, _2, 1);} +v8u32 __lasx_xvssrlni_wu_d(v8u32 _1, v8i32 _2){return __builtin_lasx_xvssrlni_wu_d(_1, _2, 1);} +v4u64 __lasx_xvssrlni_du_q(v4u64 _1, v4i64 _2){return __builtin_lasx_xvssrlni_du_q(_1, _2, 1);} +v32i8 __lasx_xvssrlrni_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvssrlrni_b_h(_1, _2, 1);} +v16i16 __lasx_xvssrlrni_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrlrni_h_w(_1, _2, 1);} +v8i32 __lasx_xvssrlrni_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrlrni_w_d(_1, _2, 1);} +v4i64 __lasx_xvssrlrni_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrlrni_d_q(_1, _2, 1);} +v32u8 __lasx_xvssrlrni_bu_h(v32u8 _1, v32i8 _2){return __builtin_lasx_xvssrlrni_bu_h(_1, _2, 1);} +v16u16 __lasx_xvssrlrni_hu_w(v16u16 _1, v16i16 _2){return __builtin_lasx_xvssrlrni_hu_w(_1, _2, 1);} +v8u32 __lasx_xvssrlrni_wu_d(v8u32 _1, v8i32 _2){return __builtin_lasx_xvssrlrni_wu_d(_1, _2, 1);} +v4u64 __lasx_xvssrlrni_du_q(v4u64 _1, v4i64 _2){return __builtin_lasx_xvssrlrni_du_q(_1, _2, 1);} +v32i8 __lasx_xvsrani_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrani_b_h(_1, _2, 1);} +v16i16 __lasx_xvsrani_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrani_h_w(_1, _2, 1);} +v8i32 __lasx_xvsrani_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrani_w_d(_1, _2, 1);} +v4i64 __lasx_xvsrani_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrani_d_q(_1, _2, 1);} +v32i8 __lasx_xvsrarni_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvsrarni_b_h(_1, _2, 1);} +v16i16 __lasx_xvsrarni_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvsrarni_h_w(_1, _2, 1);} +v8i32 __lasx_xvsrarni_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvsrarni_w_d(_1, _2, 1);} +v4i64 __lasx_xvsrarni_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvsrarni_d_q(_1, _2, 1);} +v32i8 __lasx_xvssrani_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvssrani_b_h(_1, _2, 1);} +v16i16 __lasx_xvssrani_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrani_h_w(_1, _2, 1);} +v8i32 __lasx_xvssrani_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrani_w_d(_1, _2, 1);} +v4i64 __lasx_xvssrani_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrani_d_q(_1, _2, 1);} +v32u8 __lasx_xvssrani_bu_h(v32u8 _1, v32i8 _2){return __builtin_lasx_xvssrani_bu_h(_1, _2, 1);} +v16u16 __lasx_xvssrani_hu_w(v16u16 _1, v16i16 _2){return __builtin_lasx_xvssrani_hu_w(_1, _2, 1);} +v8u32 __lasx_xvssrani_wu_d(v8u32 _1, v8i32 _2){return __builtin_lasx_xvssrani_wu_d(_1, _2, 1);} +v4u64 __lasx_xvssrani_du_q(v4u64 _1, v4i64 _2){return __builtin_lasx_xvssrani_du_q(_1, _2, 1);} +v32i8 __lasx_xvssrarni_b_h(v32i8 _1, v32i8 _2){return __builtin_lasx_xvssrarni_b_h(_1, _2, 1);} +v16i16 __lasx_xvssrarni_h_w(v16i16 _1, v16i16 _2){return __builtin_lasx_xvssrarni_h_w(_1, _2, 1);} +v8i32 __lasx_xvssrarni_w_d(v8i32 _1, v8i32 _2){return __builtin_lasx_xvssrarni_w_d(_1, _2, 1);} +v4i64 __lasx_xvssrarni_d_q(v4i64 _1, v4i64 _2){return __builtin_lasx_xvssrarni_d_q(_1, _2, 1);} +v32u8 __lasx_xvssrarni_bu_h(v32u8 _1, v32i8 _2){return __builtin_lasx_xvssrarni_bu_h(_1, _2, 1);} +v16u16 __lasx_xvssrarni_hu_w(v16u16 _1, v16i16 _2){return __builtin_lasx_xvssrarni_hu_w(_1, _2, 1);} +v8u32 __lasx_xvssrarni_wu_d(v8u32 _1, v8i32 _2){return __builtin_lasx_xvssrarni_wu_d(_1, _2, 1);} +v4u64 __lasx_xvssrarni_du_q(v4u64 _1, v4i64 _2){return __builtin_lasx_xvssrarni_du_q(_1, _2, 1);} +int __lasx_xbnz_b(v32u8 _1){return __builtin_lasx_xbnz_b(_1);} +int __lasx_xbnz_d(v4u64 _1){return __builtin_lasx_xbnz_d(_1);} +int __lasx_xbnz_h(v16u16 _1){return __builtin_lasx_xbnz_h(_1);} +int __lasx_xbnz_v(v32u8 _1){return __builtin_lasx_xbnz_v(_1);} +int __lasx_xbnz_w(v8u32 _1){return __builtin_lasx_xbnz_w(_1);} +int __lasx_xbz_b(v32u8 _1){return __builtin_lasx_xbz_b(_1);} +int __lasx_xbz_d(v4u64 _1){return __builtin_lasx_xbz_d(_1);} +int __lasx_xbz_h(v16u16 _1){return __builtin_lasx_xbz_h(_1);} +int __lasx_xbz_v(v32u8 _1){return __builtin_lasx_xbz_v(_1);} +int __lasx_xbz_w(v8u32 _1){return __builtin_lasx_xbz_w(_1);} +v4i64 __lasx_xvfcmp_caf_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_caf_d(_1, _2);} +v8i32 __lasx_xvfcmp_caf_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_caf_s(_1, _2);} +v4i64 __lasx_xvfcmp_ceq_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_ceq_d(_1, _2);} +v8i32 __lasx_xvfcmp_ceq_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_ceq_s(_1, _2);} +v4i64 __lasx_xvfcmp_cle_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cle_d(_1, _2);} +v8i32 __lasx_xvfcmp_cle_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cle_s(_1, _2);} +v4i64 __lasx_xvfcmp_clt_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_clt_d(_1, _2);} +v8i32 __lasx_xvfcmp_clt_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_clt_s(_1, _2);} +v4i64 __lasx_xvfcmp_cne_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cne_d(_1, _2);} +v8i32 __lasx_xvfcmp_cne_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cne_s(_1, _2);} +v4i64 __lasx_xvfcmp_cor_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cor_d(_1, _2);} +v8i32 __lasx_xvfcmp_cor_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cor_s(_1, _2);} +v4i64 __lasx_xvfcmp_cueq_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cueq_d(_1, _2);} +v8i32 __lasx_xvfcmp_cueq_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cueq_s(_1, _2);} +v4i64 __lasx_xvfcmp_cule_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cule_d(_1, _2);} +v8i32 __lasx_xvfcmp_cule_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cule_s(_1, _2);} +v4i64 __lasx_xvfcmp_cult_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cult_d(_1, _2);} +v8i32 __lasx_xvfcmp_cult_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cult_s(_1, _2);} +v4i64 __lasx_xvfcmp_cun_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cun_d(_1, _2);} +v4i64 __lasx_xvfcmp_cune_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_cune_d(_1, _2);} +v8i32 __lasx_xvfcmp_cune_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cune_s(_1, _2);} +v8i32 __lasx_xvfcmp_cun_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_cun_s(_1, _2);} +v4i64 __lasx_xvfcmp_saf_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_saf_d(_1, _2);} +v8i32 __lasx_xvfcmp_saf_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_saf_s(_1, _2);} +v4i64 __lasx_xvfcmp_seq_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_seq_d(_1, _2);} +v8i32 __lasx_xvfcmp_seq_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_seq_s(_1, _2);} +v4i64 __lasx_xvfcmp_sle_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sle_d(_1, _2);} +v8i32 __lasx_xvfcmp_sle_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sle_s(_1, _2);} +v4i64 __lasx_xvfcmp_slt_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_slt_d(_1, _2);} +v8i32 __lasx_xvfcmp_slt_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_slt_s(_1, _2);} +v4i64 __lasx_xvfcmp_sne_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sne_d(_1, _2);} +v8i32 __lasx_xvfcmp_sne_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sne_s(_1, _2);} +v4i64 __lasx_xvfcmp_sor_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sor_d(_1, _2);} +v8i32 __lasx_xvfcmp_sor_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sor_s(_1, _2);} +v4i64 __lasx_xvfcmp_sueq_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sueq_d(_1, _2);} +v8i32 __lasx_xvfcmp_sueq_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sueq_s(_1, _2);} +v4i64 __lasx_xvfcmp_sule_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sule_d(_1, _2);} +v8i32 __lasx_xvfcmp_sule_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sule_s(_1, _2);} +v4i64 __lasx_xvfcmp_sult_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sult_d(_1, _2);} +v8i32 __lasx_xvfcmp_sult_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sult_s(_1, _2);} +v4i64 __lasx_xvfcmp_sun_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sun_d(_1, _2);} +v4i64 __lasx_xvfcmp_sune_d(v4f64 _1, v4f64 _2){return __builtin_lasx_xvfcmp_sune_d(_1, _2);} +v8i32 __lasx_xvfcmp_sune_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sune_s(_1, _2);} +v8i32 __lasx_xvfcmp_sun_s(v8f32 _1, v8f32 _2){return __builtin_lasx_xvfcmp_sun_s(_1, _2);} +v4f64 __lasx_xvpickve_d_f(v4f64 _1){return __builtin_lasx_xvpickve_d_f(_1, 1);} +v8f32 __lasx_xvpickve_w_f(v8f32 _1){return __builtin_lasx_xvpickve_w_f(_1, 1);} +v32i8 __lasx_xvrepli_b(){return __builtin_lasx_xvrepli_b(1);} +v4i64 __lasx_xvrepli_d(){return __builtin_lasx_xvrepli_d(1);} +v16i16 __lasx_xvrepli_h(){return __builtin_lasx_xvrepli_h(1);} +v8i32 __lasx_xvrepli_w(){return __builtin_lasx_xvrepli_w(1);} From patchwork Wed Sep 13 03:40:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp839171vqx; Tue, 12 Sep 2023 21:03:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaAXR5UvDD4m1muvYTei9os/E9gx1Jw9aPQbOARqQp7H10clY6fKs3KZQM8SjwFWdfPXAb X-Received: by 2002:a17:906:7485:b0:9a1:b144:30f4 with SMTP id e5-20020a170906748500b009a1b14430f4mr2132359ejl.14.1694577838340; Tue, 12 Sep 2023 21:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577838; cv=none; d=google.com; s=arc-20160816; b=yiWFroW9U+E9+CAi6JnO6AX2f8euA1FMf/7jEq1BbNJlJWKFjvniPIGPJ4XW8FTg0U g9/pzp47wLVKR6Mn0BxdWV6yzNJx6JVYFPJwcjMIqfcuk8wQZjQ1iUrO3VJiFPY6balJ Am7LJOiZv4DMc86XWcvSYM9g9Mh7Uj4nmZFiQePEsWII+h2nCuCcPo08uvA+crK+W7VX fWHe0xyfQnNuCwqVLrzCoKztpx9Q9BasyCxVLyIHePtRwx44xCzDP/ArnSORFcnpXz/y Sgu1GaaXLfuNVqrnWKKQGxVMS5P1Px33H03JGCPGWy5DzTN176vcnFmTwEpkd/69BG2l JeaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=9ZzLPOue4LmXUvMROyMceBjgtwsx/HlvZUdRPkmP6IU=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=Hyj1qdWyrjnld6xAe2wI28qT9o3xqgGOQzOnbxA/xruF7zFWOWCtUcUZtNghRpdhVH zyVfrKW3qb6/mVEQk4L7F0PQunpWM7E6ndXozRnaH1M5M9VanDNVmdmeIABH7vMUZM9F XUAmpAlRBOa2HihMwMvMbj6492OO/hNPSwxWeMJPHiU7iTo8qBt55SJjo8We8b92IO5K e/UPFs13zmrrlCgqIPfwJpnFj/eXU6ZaGgoOMh2QVgfmbLbYc3s7HKIDqlV97/9zYCCt sz1pUjliUsJuHhRL5YNYkiD3BLwhf33JskaOwlwiV5t11gMNH4ruMFYxFdtaphV3zMHq G0zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sa14-20020a1709076d0e00b009ad88a9b937si3156514ejc.655.2023.09.12.21.03.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A54B73848369 for ; Wed, 13 Sep 2023 03:43:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id ED39738279BA for ; Wed, 13 Sep 2023 03:40:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED39738279BA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8CxtPA3LwFldDEmAA--.9519S3; Wed, 13 Sep 2023 11:40:39 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S7; Wed, 13 Sep 2023 11:40:38 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 13/22] LoongArch: Add tests for ASX xvldrepl/xvstelm instruction generation. Date: Wed, 13 Sep 2023 11:40:20 +0800 Message-Id: <20230913034026.7751-4-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S7 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBQgAAsQ X-Coremail-Antispam: 1Uk129KBj93XoW7Cr4fKFy7ur1rtrykuw48uFX_yoW8Ww4Dpw 47CrnxtF48XFZ7Grn7Ga45XF4YvFZ7GFW3u3y3A342kr4UX3sFq3Wktr42yFyDJayYyr1x Xrsxuw1jgF42qwbCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj6I8E 87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjc xG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVF xhVjvjDU0xZFpf9x07b0c_-UUUUU= X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893651673090354 X-GMAIL-MSGID: 1776893651673090354 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvldrepl.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvstelm.c: New test. --- .../loongarch/vector/lasx/lasx-xvldrepl.c | 16 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvstelm.c | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldrepl.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldrepl.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldrepl.c new file mode 100644 index 00000000000..10556795119 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvldrepl.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -mlasx" } */ +/* { dg-final { scan-assembler-times "xvldrepl.w" 2} } */ + +#define N 258 + +float a[N], b[N], c[N]; + +void +test () +{ + for (int i = 0; i < 256; i++) + { + a[i] = c[0] * b[i] + c[1]; + } +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c new file mode 100644 index 00000000000..1a7b0e86f8b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -mlasx" } */ +/* { dg-final { scan-assembler-times "xvstelm.w" 8} } */ + +#define LEN 256 + +float a[LEN], b[LEN], c[LEN]; + +void +test () +{ + for (int i = 0; i < LEN; i += 2) + a[i] = b[i] + c[i]; +} From patchwork Wed Sep 13 03:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138614 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp837305vqx; Tue, 12 Sep 2023 20:59:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0Cg+vjIrZptOkKsgvlnqQCtaHDeWCabLO4oiYFxvwRwOGrjGjsG9sOtY4OCC7TFfiIJ96 X-Received: by 2002:a17:906:9c1:b0:9a2:2635:daa8 with SMTP id r1-20020a17090609c100b009a22635daa8mr1074826eje.56.1694577544636; Tue, 12 Sep 2023 20:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577544; cv=none; d=google.com; s=arc-20160816; b=DkFmfLkK1QKRBSGFVhoHArxOTalcNY/n7uSg3iNqNkAW4J5x8PF3pVIq8yt3hHVlYh +KaKQvP8wfhuya5rQpHZElkojGKUdh+bJebDjKmtVVz9W/jTF2l20lshqEmZ+Bdn5CIv bbSRpRCXpTWbysxoxk7dMLMmYz0VWrf97gJr/14b6BiaS5m+TOwnx3OPSQhKuUDwZ7vV eztBV4ZdvYO0ZbV0KK9qbCpMgAvk38UYif24eD2O6SpmQ8MSmgNiW0HD6vMckVdotJV2 +PUHyCQat5Kw03I0pUeTr/Tqe7y5AsBqo+zmnb8C7/open1P1QUBKbKrqn5u3/CTr6lM 8dMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=1+Bao6gv0KdqBoAd2dmF9irDInHQvLk8NM4KRckEaU0=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=pFp9pm6sEOwj2QO8Iyx86Um1k63qmarMbqOb2jotJ/iwQYx6ai/TTFacOLb1BoGHu6 DEA5SQA8SoA9Bwgu0XkYODtsw9HWwK05IIiqLgmekq+q1JfxFqSiJf0SjPQlRdSfkq7m H3wXzHjF023dMaEBqNHXYBh2+NSI5ppe0m4W8BUm1nFL4O8GBdnJk0bXVG9+qDTcdwUe ZmlUAY33fDtAlgpZ3h0PZignjaLLOXOWh4OFfCDQt16kBtyAMG/YtUg65Iq/aJ15DGtL 5Dy+IcdY1UFrCgV3v+kSW/T5tlbj6cyrfpyJiZ+uRKvHmGLiIrFDdPyyIk7Fx7dgWxE/ gPrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s7-20020a170906c30700b0099cbc524430si10541749ejz.804.2023.09.12.20.59.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1B6C038314B0 for ; Wed, 13 Sep 2023 03:41:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 631EB382E74E for ; Wed, 13 Sep 2023 03:40:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 631EB382E74E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8Dxfes5LwFldzEmAA--.6221S3; Wed, 13 Sep 2023 11:40:41 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S8; Wed, 13 Sep 2023 11:40:40 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 14/22] LoongArch: Add tests for ASX vector floating-point operation instruction. Date: Wed, 13 Sep 2023 11:40:21 +0800 Message-Id: <20230913034026.7751-5-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S8 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBRAAAsW X-Coremail-Antispam: 1Uk129KBj93XoWrtFWDJryUArW3Xw4DJw1kp5X_XrWrJr1Dpr 1xJr13Kayvka1UtrWUtFW2grs0yr40ya4DXF17G3srua4kKF9xXr47ArWUArn5GF48ZF13 tFs8J3y8trWUGwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj6I8E 87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjc xG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVF xhVjvjDU0xZFpf9x07b0c_-UUUUU= X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893343039092662 X-GMAIL-MSGID: 1776893343039092662 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvfadd_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfadd_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfclass_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfclass_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvflogb_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvflogb_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfmadd_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfmadd_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfmax_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfmax_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_s.c: New test. --- .../loongarch/vector/lasx/lasx-xvfadd_d.c | 545 +++++++++++ .../loongarch/vector/lasx/lasx-xvfadd_s.c | 911 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvfclass_d.c | 152 +++ .../loongarch/vector/lasx/lasx-xvfclass_s.c | 95 ++ .../loongarch/vector/lasx/lasx-xvflogb_d.c | 86 ++ .../loongarch/vector/lasx/lasx-xvflogb_s.c | 115 +++ .../loongarch/vector/lasx/lasx-xvfmadd_d.c | 382 ++++++++ .../loongarch/vector/lasx/lasx-xvfmadd_s.c | 720 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvfmax_d.c | 230 +++++ .../loongarch/vector/lasx/lasx-xvfmax_s.c | 560 +++++++++++ .../loongarch/vector/lasx/lasx-xvfmaxa_d.c | 230 +++++ .../loongarch/vector/lasx/lasx-xvfmaxa_s.c | 506 ++++++++++ .../loongarch/vector/lasx/lasx-xvfsqrt_d.c | 482 +++++++++ .../loongarch/vector/lasx/lasx-xvfsqrt_s.c | 457 +++++++++ 14 files changed, 5471 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_s.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_d.c new file mode 100644 index 00000000000..657a19e5896 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_d.c @@ -0,0 +1,545 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffe06df0d7; + *((unsigned long *)&__m256d_op1[1]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffbe8b470f; + *((unsigned long *)&__m256d_result[3]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256d_result[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256d_result[1]) = 0x7ffffffffffff7ff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffbe8b470f; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x41d6600000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x41d6600000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0x41d6600000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0x41d6600000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7fffffffffffffff; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_op0[2]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_op0[1]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_op0[0]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_result[2]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_result[1]) = 0x00007fff00007fff; + *((unsigned long *)&__m256d_result[0]) = 0x00007fff00007fff; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256d_op0[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256d_op0[0]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000f000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000f000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256d_result[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256d_result[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256d_result[0]) = 0x7fffffffa2beb040; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000001c000000134; + *((unsigned long *)&__m256d_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256d_op0[1]) = 0x000001c000000134; + *((unsigned long *)&__m256d_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256d_op1[3]) = 0x000001c000000134; + *((unsigned long *)&__m256d_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256d_op1[1]) = 0x000001c000000134; + *((unsigned long *)&__m256d_op1[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256d_result[3]) = 0x0000038000000268; + *((unsigned long *)&__m256d_result[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256d_result[1]) = 0x0000038000000268; + *((unsigned long *)&__m256d_result[0]) = 0x7fff7fff7fff7fff; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000001010100; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000405; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000001010100; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000405; + *((unsigned long *)&__m256d_result[3]) = 0x0000000001010100; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000405; + *((unsigned long *)&__m256d_result[1]) = 0x0000000001010100; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000405; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000040; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op1[3]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256d_op1[1]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256d_result[3]) = 0x00000000ff890000; + *((unsigned long *)&__m256d_result[2]) = 0x00000000ff790000; + *((unsigned long *)&__m256d_result[1]) = 0x00000000ff890000; + *((unsigned long *)&__m256d_result[0]) = 0x00000000ff790000; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000000000006d; + *((unsigned long *)&__m256d_op0[2]) = 0x000000000010006d; + *((unsigned long *)&__m256d_op0[1]) = 0x000000000000006d; + *((unsigned long *)&__m256d_op0[0]) = 0x000000000010006d; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000080040; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000080040; + *((unsigned long *)&__m256d_result[3]) = 0x00000000000000ad; + *((unsigned long *)&__m256d_result[2]) = 0x00000000001800ad; + *((unsigned long *)&__m256d_result[1]) = 0x00000000000000ad; + *((unsigned long *)&__m256d_result[0]) = 0x00000000001800ad; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256d_op1[2]) = 0x2020000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256d_op1[0]) = 0x2020000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256d_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256d_result[0]) = 0x7fffffffffffffff; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffff8000; + __m256d_out = __lasx_xvfadd_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmul_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000400000001; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000400000001; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmul_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfmul_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000010100000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000010100000000; + *((unsigned long *)&__m256d_op1[3]) = 0x00008000003f0000; + *((unsigned long *)&__m256d_op1[2]) = 0x00390015003529c1; + *((unsigned long *)&__m256d_op1[1]) = 0x00008000003f0000; + *((unsigned long *)&__m256d_op1[0]) = 0x00390015003529c1; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmul_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xfe00000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfmul_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x00007ffe81fdfe03; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x80007ffe81fdfe03; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256d_op0[2]) = 0x41d8585858400000; + *((unsigned long *)&__m256d_op0[1]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256d_op0[0]) = 0x41d8585858400000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xff00d5007f00ffff; + *((unsigned long *)&__m256d_op1[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256d_op1[1]) = 0xff00d5007f00ffff; + *((unsigned long *)&__m256d_op1[0]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256d_result[3]) = 0x7f00d5007f00ffff; + *((unsigned long *)&__m256d_result[2]) = 0x7f00ffffff00ffff; + *((unsigned long *)&__m256d_result[1]) = 0x7f00d5007f00ffff; + *((unsigned long *)&__m256d_result[0]) = 0x7f00ffffff00ffff; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff00000002; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000002; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffff00000002; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffff00000002; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_result[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256d_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_result[0]) = 0x00ff00fe00ff00fe; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsub_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000005536aaaaac; + *((unsigned long *)&__m256d_op0[2]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256d_op0[1]) = 0x0000005536aaaaac; + *((unsigned long *)&__m256d_op0[0]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256d_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[2]) = 0x0002555400000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[0]) = 0x0002555400000000; + *((unsigned long *)&__m256d_result[3]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x3f2c678e38d1104c; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffe367cc82f8989a; + *((unsigned long *)&__m256d_op0[2]) = 0x4f90000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffc3aaa8d58f43c8; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256d_op1[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256d_op1[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0010000000100000; + *((unsigned long *)&__m256d_op0[2]) = 0x0010000000100000; + *((unsigned long *)&__m256d_op0[1]) = 0x0010000000100000; + *((unsigned long *)&__m256d_op0[0]) = 0x0010000000100000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000483800; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000483800; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x41cc5bb8a95fd1eb; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x41cc5bb8a95fd1eb; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfdiv_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_s.c new file mode 100644 index 00000000000..4002c4074c2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfadd_s.c @@ -0,0 +1,911 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0x00000001; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000002; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0x00000001; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000002; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0x00000001; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000002; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0x00000001; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000002; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x40b2bf4d; + *((int *)&__m256_op0[6]) = 0x30313031; + *((int *)&__m256_op0[5]) = 0x50005000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x40b2bf4d; + *((int *)&__m256_op0[2]) = 0x30313031; + *((int *)&__m256_op0[1]) = 0x50005000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x22be22be; + *((int *)&__m256_op1[5]) = 0x7fff7fff; + *((int *)&__m256_op1[4]) = 0xa2bea2be; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x22be22be; + *((int *)&__m256_op1[1]) = 0x7fff7fff; + *((int *)&__m256_op1[0]) = 0xa2bea2be; + *((int *)&__m256_result[7]) = 0x40b2bf4d; + *((int *)&__m256_result[6]) = 0x30313031; + *((int *)&__m256_result[5]) = 0x7fff7fff; + *((int *)&__m256_result[4]) = 0xa2bea2be; + *((int *)&__m256_result[3]) = 0x40b2bf4d; + *((int *)&__m256_result[2]) = 0x30313031; + *((int *)&__m256_result[1]) = 0x7fff7fff; + *((int *)&__m256_result[0]) = 0xa2bea2be; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00ff0000; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00ff0000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00ff0000; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00ff0000; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000008c; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000008c; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x0000008c; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x0000008c; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000118; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000118; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffff8000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffff8000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffff8000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffff8000; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffff0101; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffff0101; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffff0101; + *((int *)&__m256_result[4]) = 0x00000001; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffff0101; + *((int *)&__m256_result[0]) = 0x00000001; + __m256_out = __lasx_xvfadd_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x10101011; + *((int *)&__m256_op1[4]) = 0x10101011; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x11111112; + *((int *)&__m256_op1[0]) = 0x11111112; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00060000; + *((int *)&__m256_op0[6]) = 0x00040000; + *((int *)&__m256_op0[5]) = 0x00020000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00060000; + *((int *)&__m256_op0[2]) = 0x00040000; + *((int *)&__m256_op0[1]) = 0x00020000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00060000; + *((int *)&__m256_op1[6]) = 0x00040000; + *((int *)&__m256_op1[5]) = 0x00020000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00060000; + *((int *)&__m256_op1[2]) = 0x00040000; + *((int *)&__m256_op1[1]) = 0x00020000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x000000ff; + *((int *)&__m256_op0[4]) = 0x000000ff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x000000ff; + *((int *)&__m256_op0[0]) = 0x000000ff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000101; + *((int *)&__m256_op1[4]) = 0x00000101; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000101; + *((int *)&__m256_op1[0]) = 0x00000101; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmul_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffff001f; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x007fe268; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffff001f; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x007fe268; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0xffff001f; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x007fe268; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0xffff001f; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x007fe268; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0xffff001f; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0xffff001f; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x7f800000; + *((int *)&__m256_op1[6]) = 0x7f800000; + *((int *)&__m256_op1[5]) = 0x7f800000; + *((int *)&__m256_op1[4]) = 0x7f800000; + *((int *)&__m256_op1[3]) = 0x7f800000; + *((int *)&__m256_op1[2]) = 0x7f800000; + *((int *)&__m256_op1[1]) = 0x7f800000; + *((int *)&__m256_op1[0]) = 0x7f800000; + *((int *)&__m256_result[7]) = 0xff800000; + *((int *)&__m256_result[6]) = 0xff800000; + *((int *)&__m256_result[5]) = 0xff800000; + *((int *)&__m256_result[4]) = 0xff800000; + *((int *)&__m256_result[3]) = 0xff800000; + *((int *)&__m256_result[2]) = 0xff800000; + *((int *)&__m256_result[1]) = 0xff800000; + *((int *)&__m256_result[0]) = 0xff800000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x02a54290; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x02a54290; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x02a54290; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x0154dc84; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x02a54290; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000089; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x82a54290; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x028aa700; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x82a54290; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x02a54287; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00004200; + *((int *)&__m256_op0[6]) = 0x80000000; + *((int *)&__m256_op0[5]) = 0x5fff5fff; + *((int *)&__m256_op0[4]) = 0x607f0000; + *((int *)&__m256_op0[3]) = 0x00004200; + *((int *)&__m256_op0[2]) = 0x80000000; + *((int *)&__m256_op0[1]) = 0x5fff5fff; + *((int *)&__m256_op0[0]) = 0x607f0000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00004200; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x5fff5fff; + *((int *)&__m256_result[4]) = 0x607f0000; + *((int *)&__m256_result[3]) = 0x00004200; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x5fff5fff; + *((int *)&__m256_result[0]) = 0x607f0000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00800080; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000202; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00800080; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000202; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00800080; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000202; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00800080; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000202; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xfffefffe; + *((int *)&__m256_op0[6]) = 0xfffefffe; + *((int *)&__m256_op0[5]) = 0xfffefffe; + *((int *)&__m256_op0[4]) = 0xfffefffe; + *((int *)&__m256_op0[3]) = 0xfffefffe; + *((int *)&__m256_op0[2]) = 0xfffefffe; + *((int *)&__m256_op0[1]) = 0xfffefffe; + *((int *)&__m256_op0[0]) = 0xfffefffe; + *((int *)&__m256_op1[7]) = 0x000023a3; + *((int *)&__m256_op1[6]) = 0x00003fff; + *((int *)&__m256_op1[5]) = 0x000023a3; + *((int *)&__m256_op1[4]) = 0x00003fef; + *((int *)&__m256_op1[3]) = 0x000023a3; + *((int *)&__m256_op1[2]) = 0x00003fff; + *((int *)&__m256_op1[1]) = 0x000023a3; + *((int *)&__m256_op1[0]) = 0x00003fef; + *((int *)&__m256_result[7]) = 0xfffefffe; + *((int *)&__m256_result[6]) = 0xfffefffe; + *((int *)&__m256_result[5]) = 0xfffefffe; + *((int *)&__m256_result[4]) = 0xfffefffe; + *((int *)&__m256_result[3]) = 0xfffefffe; + *((int *)&__m256_result[2]) = 0xfffefffe; + *((int *)&__m256_result[1]) = 0xfffefffe; + *((int *)&__m256_result[0]) = 0xfffefffe; + __m256_out = __lasx_xvfsub_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x002a542a; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x002a542a; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfdiv_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7fc00000; + *((int *)&__m256_result[4]) = 0x7fc00000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7fc00000; + *((int *)&__m256_result[0]) = 0x7fc00000; + __m256_out = __lasx_xvfdiv_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00fe00fe; + *((int *)&__m256_op0[6]) = 0x00fe00fe; + *((int *)&__m256_op0[5]) = 0x00fe00fe; + *((int *)&__m256_op0[4]) = 0x00fe00fe; + *((int *)&__m256_op0[3]) = 0x00fe00fe; + *((int *)&__m256_op0[2]) = 0x00fe00fe; + *((int *)&__m256_op0[1]) = 0x00fe00fe; + *((int *)&__m256_op0[0]) = 0x00fe00fe; + *((int *)&__m256_op1[7]) = 0x00fe00fe; + *((int *)&__m256_op1[6]) = 0x00fe00fe; + *((int *)&__m256_op1[5]) = 0x00fe00fe; + *((int *)&__m256_op1[4]) = 0x00fe00fe; + *((int *)&__m256_op1[3]) = 0x00fe00fe; + *((int *)&__m256_op1[2]) = 0x00fe00fe; + *((int *)&__m256_op1[1]) = 0x00fe00fe; + *((int *)&__m256_op1[0]) = 0x00fe00fe; + *((int *)&__m256_result[7]) = 0x3f800000; + *((int *)&__m256_result[6]) = 0x3f800000; + *((int *)&__m256_result[5]) = 0x3f800000; + *((int *)&__m256_result[4]) = 0x3f800000; + *((int *)&__m256_result[3]) = 0x3f800000; + *((int *)&__m256_result[2]) = 0x3f800000; + *((int *)&__m256_result[1]) = 0x3f800000; + *((int *)&__m256_result[0]) = 0x3f800000; + __m256_out = __lasx_xvfdiv_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7fc00000; + *((int *)&__m256_result[6]) = 0x7fc00000; + *((int *)&__m256_result[5]) = 0x7fc00000; + *((int *)&__m256_result[4]) = 0x7fc00000; + *((int *)&__m256_result[3]) = 0x7fc00000; + *((int *)&__m256_result[2]) = 0x7fc00000; + *((int *)&__m256_result[1]) = 0x7fc00000; + *((int *)&__m256_result[0]) = 0x7fc00000; + __m256_out = __lasx_xvfdiv_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x803f6004; + *((int *)&__m256_op0[4]) = 0x1f636003; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x803f6004; + *((int *)&__m256_op0[0]) = 0x1f636003; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x007f0107; + *((int *)&__m256_op1[4]) = 0x00c70106; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x007f0107; + *((int *)&__m256_op1[0]) = 0x00c70106; + *((int *)&__m256_result[7]) = 0x7fc00000; + *((int *)&__m256_result[6]) = 0x7fc00000; + *((int *)&__m256_result[5]) = 0xbeff7cfd; + *((int *)&__m256_result[4]) = 0x5e123f94; + *((int *)&__m256_result[3]) = 0x7fc00000; + *((int *)&__m256_result[2]) = 0x7fc00000; + *((int *)&__m256_result[1]) = 0xbeff7cfd; + *((int *)&__m256_result[0]) = 0x5e123f94; + __m256_out = __lasx_xvfdiv_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000008; + *((int *)&__m256_op0[6]) = 0x60601934; + *((int *)&__m256_op0[5]) = 0x00000008; + *((int *)&__m256_op0[4]) = 0x00200028; + *((int *)&__m256_op0[3]) = 0x00000008; + *((int *)&__m256_op0[2]) = 0x60601934; + *((int *)&__m256_op0[1]) = 0x00000008; + *((int *)&__m256_op0[0]) = 0x00200028; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfdiv_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_d.c new file mode 100644 index 00000000000..5d5b4c43c9c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_d.c @@ -0,0 +1,152 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +/* { dg-timeout 500 } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000017f0000017d; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000017f0000017f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000200; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op0[2]) = 0x0002000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op0[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256d_op0[2]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256d_op0[1]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256d_op0[0]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256d_op0[2]) = 0xff00000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256d_op0[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffff0001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000100; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000100; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000080; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000400000004000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000400000004000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000400000004000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvfclass_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_s.c new file mode 100644 index 00000000000..888e85b6ed2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfclass_s.c @@ -0,0 +1,95 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +/* { dg-timeout 500 } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + + *((int *)&__m256_op0[7]) = 0xfffffff8; + *((int *)&__m256_op0[6]) = 0xffffff08; + *((int *)&__m256_op0[5]) = 0x00ff00f8; + *((int *)&__m256_op0[4]) = 0x00ffcff8; + *((int *)&__m256_op0[3]) = 0xfffffff8; + *((int *)&__m256_op0[2]) = 0xffffff08; + *((int *)&__m256_op0[1]) = 0x00ff00f8; + *((int *)&__m256_op0[0]) = 0x00ffcff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000008000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000008000000080; + __m256i_out = __lasx_xvfclass_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvfclass_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000020000000200; + __m256i_out = __lasx_xvfclass_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x000000ff; + *((int *)&__m256_op0[4]) = 0x000000ff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x000000ff; + *((int *)&__m256_op0[0]) = 0x000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000000100; + __m256i_out = __lasx_xvfclass_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffffffb; + *((int *)&__m256_op0[6]) = 0xfffffffb; + *((int *)&__m256_op0[5]) = 0xfffffffb; + *((int *)&__m256_op0[4]) = 0xfffffffb; + *((int *)&__m256_op0[3]) = 0xfffffffb; + *((int *)&__m256_op0[2]) = 0xfffffffb; + *((int *)&__m256_op0[1]) = 0xfffffffb; + *((int *)&__m256_op0[0]) = 0xfffffffb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000002; + __m256i_out = __lasx_xvfclass_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_d.c new file mode 100644 index 00000000000..bba1a06f3d6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_d.c @@ -0,0 +1,86 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256d_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xc08f780000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256d_result[1]) = 0xc08f780000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvflogb_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvflogb_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvflogb_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvflogb_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvflogb_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvflogb_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_s.c new file mode 100644 index 00000000000..b641c733fa5 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvflogb_s.c @@ -0,0 +1,115 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvflogb_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x10101010; + *((int *)&__m256_op0[6]) = 0x10101012; + *((int *)&__m256_op0[5]) = 0x10101010; + *((int *)&__m256_op0[4]) = 0x10101012; + *((int *)&__m256_op0[3]) = 0x10101010; + *((int *)&__m256_op0[2]) = 0x10101093; + *((int *)&__m256_op0[1]) = 0x11111111; + *((int *)&__m256_op0[0]) = 0x11111113; + *((int *)&__m256_result[7]) = 0xc2be0000; + *((int *)&__m256_result[6]) = 0xc2be0000; + *((int *)&__m256_result[5]) = 0xc2be0000; + *((int *)&__m256_result[4]) = 0xc2be0000; + *((int *)&__m256_result[3]) = 0xc2be0000; + *((int *)&__m256_result[2]) = 0xc2be0000; + *((int *)&__m256_result[1]) = 0xc2ba0000; + *((int *)&__m256_result[0]) = 0xc2ba0000; + __m256_out = __lasx_xvflogb_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xff800000; + *((int *)&__m256_result[6]) = 0xff800000; + *((int *)&__m256_result[5]) = 0xff800000; + *((int *)&__m256_result[4]) = 0xff800000; + *((int *)&__m256_result[3]) = 0xff800000; + *((int *)&__m256_result[2]) = 0xff800000; + *((int *)&__m256_result[1]) = 0xff800000; + *((int *)&__m256_result[0]) = 0xff800000; + __m256_out = __lasx_xvflogb_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xff800000; + *((int *)&__m256_result[6]) = 0xff800000; + *((int *)&__m256_result[5]) = 0xff800000; + *((int *)&__m256_result[4]) = 0xff800000; + *((int *)&__m256_result[3]) = 0xff800000; + *((int *)&__m256_result[2]) = 0xff800000; + *((int *)&__m256_result[1]) = 0xff800000; + *((int *)&__m256_result[0]) = 0xff800000; + __m256_out = __lasx_xvflogb_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000087; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000087; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xff800000; + *((int *)&__m256_result[6]) = 0xff800000; + *((int *)&__m256_result[5]) = 0xc30e0000; + *((int *)&__m256_result[4]) = 0xff800000; + *((int *)&__m256_result[3]) = 0xff800000; + *((int *)&__m256_result[2]) = 0xff800000; + *((int *)&__m256_result[1]) = 0xc30e0000; + *((int *)&__m256_result[0]) = 0xff800000; + __m256_out = __lasx_xvflogb_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_d.c new file mode 100644 index 00000000000..c85c94bf674 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_d.c @@ -0,0 +1,382 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xe37affb42fc05f69; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x65fb66c81da8e5ba; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256d_op2[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256d_op2[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256d_op2[0]) = 0xe3aebaf4df958004; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256d_result[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256d_result[0]) = 0xe3aebaf4df958004; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256d_op0[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000f3280000dfff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0xfe02fe02fee5fe22; + *((unsigned long *)&__m256d_op1[0]) = 0xff49fe4200000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x00020001ffb6ffe0; + *((unsigned long *)&__m256d_op2[0]) = 0x0049004200000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256d_result[0]) = 0xbf28b0686066be60; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0xc5c5c5c5c5c5c5c5; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x2); + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00007f7f00000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000f1a40; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256d_op1[2]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256d_op1[1]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256d_op1[0]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256d_op2[3]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256d_op2[2]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256d_op2[1]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256d_op2[0]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256d_result[3]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256d_result[2]) = 0x0000aaaa0000aaaa; + *((unsigned long *)&__m256d_result[1]) = 0x0000aaaa00008bfe; + *((unsigned long *)&__m256d_result[0]) = 0x0000aaaa0000aaaa; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0202020202020202; + *((unsigned long *)&__m256d_op0[2]) = 0x0202810102020202; + *((unsigned long *)&__m256d_op0[1]) = 0x0202020202020202; + *((unsigned long *)&__m256d_op0[0]) = 0x0202810102020202; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x00007fff00000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x00007fff00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x00007fff00000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x00007fff00000000; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256d_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x000000000000ffff; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256d_op1[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256d_op1[0]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256d_op2[3]) = 0x0001000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000100010001; + *((unsigned long *)&__m256d_op2[1]) = 0x0001000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000100010001; + *((unsigned long *)&__m256d_result[3]) = 0x0001000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000100010001; + *((unsigned long *)&__m256d_result[1]) = 0x0001000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000100010001; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256d_op0[2]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256d_op0[1]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256d_op0[0]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffff000000; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00003fff00003fff; + *((unsigned long *)&__m256d_op0[2]) = 0x00003fff00003fff; + *((unsigned long *)&__m256d_op0[1]) = 0x00003fff00003fff; + *((unsigned long *)&__m256d_op0[0]) = 0x00003fff00003fff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[3]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256d_op2[2]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256d_op2[1]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256d_op2[0]) = 0xd3d3d3d3d3d3d3d3; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op0[2]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op0[1]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op0[0]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op1[3]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op1[2]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op1[1]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op1[0]) = 0x00000fff00000fff; + *((unsigned long *)&__m256d_op2[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_op2[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_op2[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_op2[0]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffff5f5c; + __m256d_out = __lasx_xvfmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000fff0e400; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000007380; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000f1c00; + *((unsigned long *)&__m256d_op2[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op2[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256d_op2[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op2[0]) = 0x00000000fff0e400; + *((unsigned long *)&__m256d_result[3]) = 0x80000000ffffffff; + *((unsigned long *)&__m256d_result[2]) = 0x80000000ffff8c80; + *((unsigned long *)&__m256d_result[1]) = 0x80000000ffffffff; + *((unsigned long *)&__m256d_result[0]) = 0x80000000fff0e400; + __m256d_out = __lasx_xvfmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000007; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000000001dc; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000001dc; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x00000000000001dc; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x00000000000001dc; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x80000000000001dc; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x80000000000001dc; + __m256d_out = __lasx_xvfmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0404000004040000; + *((unsigned long *)&__m256d_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op0[1]) = 0x0404000004040000; + *((unsigned long *)&__m256d_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256d_op1[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256d_op1[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256d_op1[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256d_op2[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256d_op2[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256d_op2[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256d_op2[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256d_result[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256d_result[2]) = 0x80003fc00000428a; + *((unsigned long *)&__m256d_result[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256d_result[0]) = 0x80003fc00000428a; + __m256d_out = __lasx_xvfmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000100000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op2[2]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op2[0]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256d_result[3]) = 0x8000000100000001; + *((unsigned long *)&__m256d_result[2]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256d_result[1]) = 0x8000000100000001; + *((unsigned long *)&__m256d_result[0]) = 0xffffb2f600006f48; + __m256d_out = __lasx_xvfmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_s.c new file mode 100644 index 00000000000..bde41dd5c03 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmadd_s.c @@ -0,0 +1,720 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xf328dfff; + *((int *)&__m256_op1[1]) = 0x6651bfff; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x0000ffff; + *((int *)&__m256_op2[6]) = 0x0000ff80; + *((int *)&__m256_op2[5]) = 0x00004686; + *((int *)&__m256_op2[4]) = 0x00007f79; + *((int *)&__m256_op2[3]) = 0x0000ffff; + *((int *)&__m256_op2[2]) = 0x0000ffff; + *((int *)&__m256_op2[1]) = 0x0000f328; + *((int *)&__m256_op2[0]) = 0x0000dfff; + *((int *)&__m256_result[7]) = 0x0000ffff; + *((int *)&__m256_result[6]) = 0x0000ff80; + *((int *)&__m256_result[5]) = 0x00004686; + *((int *)&__m256_result[4]) = 0x00007f79; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0x0000ffff; + *((int *)&__m256_result[1]) = 0x0000f328; + *((int *)&__m256_result[0]) = 0x0000dfff; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xfff10000; + *((int *)&__m256_op0[4]) = 0xfff10000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xfff10000; + *((int *)&__m256_op0[0]) = 0xfff10000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xfff10000; + *((int *)&__m256_result[4]) = 0xfff10000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xfff10000; + *((int *)&__m256_result[0]) = 0xfff10000; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x803f6004; + *((int *)&__m256_op2[4]) = 0x1f636003; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x803f6004; + *((int *)&__m256_op2[0]) = 0x1f636003; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x803f6004; + *((int *)&__m256_result[4]) = 0x1f636003; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x803f6004; + *((int *)&__m256_result[0]) = 0x1f636003; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffb3430a; + *((int *)&__m256_op0[4]) = 0x006ed8b8; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffb3430a; + *((int *)&__m256_op0[0]) = 0x006ed8b8; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x000001ff; + *((int *)&__m256_op1[4]) = 0x000003fe; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x000001ff; + *((int *)&__m256_op1[0]) = 0x000003fe; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x000000ff; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x000000ff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xfff3430a; + *((int *)&__m256_result[4]) = 0x000000ff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xfff3430a; + *((int *)&__m256_result[0]) = 0x000000ff; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xfffeb683; + *((int *)&__m256_op0[6]) = 0x9ffffd80; + *((int *)&__m256_op0[5]) = 0xfffe97c0; + *((int *)&__m256_op0[4]) = 0x20010001; + *((int *)&__m256_op0[3]) = 0xfffeb683; + *((int *)&__m256_op0[2]) = 0x9ffffd80; + *((int *)&__m256_op0[1]) = 0xfffe97c0; + *((int *)&__m256_op0[0]) = 0x20010001; + *((int *)&__m256_op1[7]) = 0x00009fff; + *((int *)&__m256_op1[6]) = 0x9ffffd80; + *((int *)&__m256_op1[5]) = 0x0000ffff; + *((int *)&__m256_op1[4]) = 0x20010001; + *((int *)&__m256_op1[3]) = 0x00009fff; + *((int *)&__m256_op1[2]) = 0x9ffffd80; + *((int *)&__m256_op1[1]) = 0x0000ffff; + *((int *)&__m256_op1[0]) = 0x20010001; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00002080; + *((int *)&__m256_op2[4]) = 0xdf5b41cf; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00002080; + *((int *)&__m256_op2[0]) = 0xdf5b41cf; + *((int *)&__m256_result[7]) = 0xfffeb683; + *((int *)&__m256_result[6]) = 0x007ffd80; + *((int *)&__m256_result[5]) = 0xfffe97c0; + *((int *)&__m256_result[4]) = 0xdf5b41cf; + *((int *)&__m256_result[3]) = 0xfffeb683; + *((int *)&__m256_result[2]) = 0x007ffd80; + *((int *)&__m256_result[1]) = 0xfffe97c0; + *((int *)&__m256_result[0]) = 0xdf5b41cf; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xfffeb664; + *((int *)&__m256_op1[6]) = 0x007ffd61; + *((int *)&__m256_op1[5]) = 0xfffe97a1; + *((int *)&__m256_op1[4]) = 0xdf5b41b0; + *((int *)&__m256_op1[3]) = 0xfffeb664; + *((int *)&__m256_op1[2]) = 0x007ffd61; + *((int *)&__m256_op1[1]) = 0xfffe97a1; + *((int *)&__m256_op1[0]) = 0xdf5b41b0; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x94d7fb52; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xfffeb664; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xfffe97a1; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xfffeb664; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xfffe97a1; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xb70036db; + *((int *)&__m256_op1[6]) = 0x12c4007e; + *((int *)&__m256_op1[5]) = 0xb7146213; + *((int *)&__m256_op1[4]) = 0xfc1e0049; + *((int *)&__m256_op1[3]) = 0x000000fe; + *((int *)&__m256_op1[2]) = 0xfe02fffe; + *((int *)&__m256_op1[1]) = 0xb71c413b; + *((int *)&__m256_op1[0]) = 0x199d04b5; + *((int *)&__m256_op2[7]) = 0xb70036db; + *((int *)&__m256_op2[6]) = 0x12c4007e; + *((int *)&__m256_op2[5]) = 0xb7146213; + *((int *)&__m256_op2[4]) = 0xfc1e0049; + *((int *)&__m256_op2[3]) = 0x000000fe; + *((int *)&__m256_op2[2]) = 0xfe02fffe; + *((int *)&__m256_op2[1]) = 0xb71c413b; + *((int *)&__m256_op2[0]) = 0x199d04b5; + *((int *)&__m256_result[7]) = 0x370036db; + *((int *)&__m256_result[6]) = 0x92c4007e; + *((int *)&__m256_result[5]) = 0x37146213; + *((int *)&__m256_result[4]) = 0x7c1e0049; + *((int *)&__m256_result[3]) = 0x800000fe; + *((int *)&__m256_result[2]) = 0x7e02fffe; + *((int *)&__m256_result[1]) = 0x371c413b; + *((int *)&__m256_result[0]) = 0x999d04b5; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x3f7f7f7e; + *((int *)&__m256_op1[4]) = 0xff800000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x3f7f7f7e; + *((int *)&__m256_op1[0]) = 0xff800000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x7fffffff; + *((int *)&__m256_op2[4]) = 0xff7fffff; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x7fffffff; + *((int *)&__m256_op2[0]) = 0xff7fffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x7fffffff; + *((int *)&__m256_result[4]) = 0x7fc00000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x7fffffff; + *((int *)&__m256_result[0]) = 0x7fc00000; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffafaf; + *((int *)&__m256_op0[4]) = 0xb3b3dc9d; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffafaf; + *((int *)&__m256_op0[0]) = 0xb3b3dc9d; + *((int *)&__m256_op1[7]) = 0x00020000; + *((int *)&__m256_op1[6]) = 0x00020000; + *((int *)&__m256_op1[5]) = 0x00220021; + *((int *)&__m256_op1[4]) = 0x004a007e; + *((int *)&__m256_op1[3]) = 0x00020000; + *((int *)&__m256_op1[2]) = 0x00020000; + *((int *)&__m256_op1[1]) = 0x00220021; + *((int *)&__m256_op1[0]) = 0x004a007e; + *((int *)&__m256_op2[7]) = 0x00000001; + *((int *)&__m256_op2[6]) = 0x00007f7f; + *((int *)&__m256_op2[5]) = 0x00000001; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000001; + *((int *)&__m256_op2[2]) = 0x00007f7f; + *((int *)&__m256_op2[1]) = 0x00000001; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000001; + *((int *)&__m256_result[6]) = 0x80007f7f; + *((int *)&__m256_result[5]) = 0xffffafaf; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000001; + *((int *)&__m256_result[2]) = 0x80007f7f; + *((int *)&__m256_result[1]) = 0xffffafaf; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0xffffffe5; + *((int *)&__m256_op2[6]) = 0xffffffe5; + *((int *)&__m256_op2[5]) = 0xffffffe5; + *((int *)&__m256_op2[4]) = 0xffffffe5; + *((int *)&__m256_op2[3]) = 0xffffffe5; + *((int *)&__m256_op2[2]) = 0xffffffe5; + *((int *)&__m256_op2[1]) = 0xffffffe5; + *((int *)&__m256_op2[0]) = 0xffffffe5; + *((int *)&__m256_result[7]) = 0xffffffe5; + *((int *)&__m256_result[6]) = 0xffffffe5; + *((int *)&__m256_result[5]) = 0xffffffe5; + *((int *)&__m256_result[4]) = 0xffffffe5; + *((int *)&__m256_result[3]) = 0xffffffe5; + *((int *)&__m256_result[2]) = 0xffffffe5; + *((int *)&__m256_result[1]) = 0xffffffe5; + *((int *)&__m256_result[0]) = 0xffffffe5; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xbfffffff; + *((int *)&__m256_op0[6]) = 0xffff8000; + *((int *)&__m256_op0[5]) = 0xbfff8000; + *((int *)&__m256_op0[4]) = 0x80000000; + *((int *)&__m256_op0[3]) = 0xbfffffff; + *((int *)&__m256_op0[2]) = 0xffff8000; + *((int *)&__m256_op0[1]) = 0xbfff8000; + *((int *)&__m256_op0[0]) = 0x80000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0xffff8000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0xffff8000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x02020102; + *((int *)&__m256_op1[6]) = 0x02020102; + *((int *)&__m256_op1[5]) = 0x02020102; + *((int *)&__m256_op1[4]) = 0x02020102; + *((int *)&__m256_op1[3]) = 0x02020102; + *((int *)&__m256_op1[2]) = 0x02020102; + *((int *)&__m256_op1[1]) = 0x02020102; + *((int *)&__m256_op1[0]) = 0x02020102; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000008; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000008; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000008; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000008; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000008; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000008; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000008; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000008; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000001; + *((int *)&__m256_op2[4]) = 0x00000001; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000001; + *((int *)&__m256_op2[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x80000001; + *((int *)&__m256_result[4]) = 0x80000001; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x80000001; + *((int *)&__m256_result[0]) = 0x80000001; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000040; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000040; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x40404040; + *((int *)&__m256_op2[6]) = 0x40404040; + *((int *)&__m256_op2[5]) = 0x40404040; + *((int *)&__m256_op2[4]) = 0x40404040; + *((int *)&__m256_op2[3]) = 0x40404040; + *((int *)&__m256_op2[2]) = 0x40404040; + *((int *)&__m256_op2[1]) = 0x40404040; + *((int *)&__m256_op2[0]) = 0x40404040; + *((int *)&__m256_result[7]) = 0xc0404040; + *((int *)&__m256_result[6]) = 0xc0404040; + *((int *)&__m256_result[5]) = 0xc0404040; + *((int *)&__m256_result[4]) = 0xc0404040; + *((int *)&__m256_result[3]) = 0xc0404040; + *((int *)&__m256_result[2]) = 0xc0404040; + *((int *)&__m256_result[1]) = 0xc0404040; + *((int *)&__m256_result[0]) = 0xc0404040; + __m256_out = __lasx_xvfmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_d.c new file mode 100644 index 00000000000..207ba167f31 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_d.c @@ -0,0 +1,230 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmax_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256d_op0[2]) = 0x0000008000000080; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000200000002; + *((unsigned long *)&__m256d_op0[0]) = 0x0000008000000080; + *((unsigned long *)&__m256d_op1[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256d_op1[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256d_op1[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256d_op1[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256d_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256d_result[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256d_result[1]) = 0x0000000200000002; + *((unsigned long *)&__m256d_result[0]) = 0x45c5c5c545c5c5c5; + __m256d_out = __lasx_xvfmax_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000004290; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000002a96ba; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000004290; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000002a96ba; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000083f95466; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0101010100005400; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000004290; + *((unsigned long *)&__m256d_result[2]) = 0x0000000083f95466; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000004290; + *((unsigned long *)&__m256d_result[0]) = 0x0101010100005400; + __m256d_out = __lasx_xvfmax_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmax_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmax_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0101000101010001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0101000101010001; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0101000101010001; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0101000101010001; + __m256d_out = __lasx_xvfmax_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0001000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000100010001; + *((unsigned long *)&__m256d_op1[1]) = 0x0001000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000100010001; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0200000202000002; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0200000202000002; + *((unsigned long *)&__m256d_op1[3]) = 0x0101000101010001; + *((unsigned long *)&__m256d_op1[2]) = 0x0101000101010001; + *((unsigned long *)&__m256d_op1[1]) = 0x0101000101010001; + *((unsigned long *)&__m256d_op1[0]) = 0x0101000101010001; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0101000101010001; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0101000101010001; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256d_op1[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256d_op1[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256d_op1[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmin_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_s.c new file mode 100644 index 00000000000..9b7703231db --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmax_s.c @@ -0,0 +1,560 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00010101; + *((int *)&__m256_op1[6]) = 0x01010101; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00010100; + *((int *)&__m256_op1[1]) = 0x00010000; + *((int *)&__m256_op1[0]) = 0x01000100; + *((int *)&__m256_result[7]) = 0x00010101; + *((int *)&__m256_result[6]) = 0x01010101; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00010100; + *((int *)&__m256_result[1]) = 0x00010000; + *((int *)&__m256_result[0]) = 0x01000100; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x59800000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x59800000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x59800000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x59800000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00010001; + *((int *)&__m256_op1[6]) = 0x00010001; + *((int *)&__m256_op1[5]) = 0x00010001; + *((int *)&__m256_op1[4]) = 0x00010001; + *((int *)&__m256_op1[3]) = 0x00010001; + *((int *)&__m256_op1[2]) = 0x00010001; + *((int *)&__m256_op1[1]) = 0x00010001; + *((int *)&__m256_op1[0]) = 0x00010001; + *((int *)&__m256_result[7]) = 0x00010001; + *((int *)&__m256_result[6]) = 0x00010001; + *((int *)&__m256_result[5]) = 0x00010001; + *((int *)&__m256_result[4]) = 0x00010001; + *((int *)&__m256_result[3]) = 0x00010001; + *((int *)&__m256_result[2]) = 0x00010001; + *((int *)&__m256_result[1]) = 0x00010001; + *((int *)&__m256_result[0]) = 0x00010001; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x7fefffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x7fefffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x000000ff; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x000000ff; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00003fe0; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00003fe0; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00003fe0; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00003fe0; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x0000000e; + *((int *)&__m256_op1[6]) = 0x0000000e; + *((int *)&__m256_op1[5]) = 0x0000000e; + *((int *)&__m256_op1[4]) = 0x0000000e; + *((int *)&__m256_op1[3]) = 0x0000000e; + *((int *)&__m256_op1[2]) = 0x0000000e; + *((int *)&__m256_op1[1]) = 0x0000000e; + *((int *)&__m256_op1[0]) = 0x0000000e; + *((int *)&__m256_result[7]) = 0x0000000e; + *((int *)&__m256_result[6]) = 0x0000000e; + *((int *)&__m256_result[5]) = 0x0000000e; + *((int *)&__m256_result[4]) = 0x0000000e; + *((int *)&__m256_result[3]) = 0x0000000e; + *((int *)&__m256_result[2]) = 0x0000000e; + *((int *)&__m256_result[1]) = 0x0000000e; + *((int *)&__m256_result[0]) = 0x0000000e; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffdbbbcf; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffb8579f; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffdbbbcf; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffb8579f; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0xfff8579f; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0xfff8579f; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x40404040; + *((int *)&__m256_op1[6]) = 0x40404040; + *((int *)&__m256_op1[5]) = 0x40404040; + *((int *)&__m256_op1[4]) = 0x40404040; + *((int *)&__m256_op1[3]) = 0x40404040; + *((int *)&__m256_op1[2]) = 0x40404040; + *((int *)&__m256_op1[1]) = 0x40404040; + *((int *)&__m256_op1[0]) = 0x40404040; + *((int *)&__m256_result[7]) = 0x40404040; + *((int *)&__m256_result[6]) = 0x40404040; + *((int *)&__m256_result[5]) = 0x40404040; + *((int *)&__m256_result[4]) = 0x40404040; + *((int *)&__m256_result[3]) = 0x40404040; + *((int *)&__m256_result[2]) = 0x40404040; + *((int *)&__m256_result[1]) = 0x40404040; + *((int *)&__m256_result[0]) = 0x40404040; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x0000006d; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0010006d; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x0000006d; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0010006d; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00080040; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00080040; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00080040; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00080040; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00080040; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x0010006d; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00080040; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x0010006d; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x000002ff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x000002ff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x000002ff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x000002ff; + __m256_out = __lasx_xvfmax_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x7ff90000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x1ff60000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xfffffffe; + *((int *)&__m256_op1[4]) = 0x00000001; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xfffffffe; + *((int *)&__m256_op1[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000001; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000001; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x0218ff78; + *((int *)&__m256_op1[6]) = 0xfc38fc38; + *((int *)&__m256_op1[5]) = 0xfc000000; + *((int *)&__m256_op1[4]) = 0x00000048; + *((int *)&__m256_op1[3]) = 0x0218ff78; + *((int *)&__m256_op1[2]) = 0xfc38fc38; + *((int *)&__m256_op1[1]) = 0xfc000000; + *((int *)&__m256_op1[0]) = 0x00000048; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0xfc38fc38; + *((int *)&__m256_result[5]) = 0xfc000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0xfc38fc38; + *((int *)&__m256_result[1]) = 0xfc000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x000000f0; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x000000f0; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x000000f0; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x000000f0; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffe7; + *((int *)&__m256_op0[6]) = 0xffffffe7; + *((int *)&__m256_op0[5]) = 0xffffffe7; + *((int *)&__m256_op0[4]) = 0xffffffe7; + *((int *)&__m256_op0[3]) = 0xffffffe7; + *((int *)&__m256_op0[2]) = 0xffffffe7; + *((int *)&__m256_op0[1]) = 0xffffffe7; + *((int *)&__m256_op0[0]) = 0xffffffe7; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmin_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_d.c new file mode 100644 index 00000000000..96bbb942dba --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_d.c @@ -0,0 +1,230 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x000000040000fff8; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffff8001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000018; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000018; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000018; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000018; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0002000000020000; + *((unsigned long *)&__m256d_op0[2]) = 0x0002000000010000; + *((unsigned long *)&__m256d_op0[1]) = 0x0002000000020000; + *((unsigned long *)&__m256d_op0[0]) = 0x0002000000010000; + *((unsigned long *)&__m256d_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0002000000020000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0002000000020000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000001; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmaxa_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000008000000080; + *((unsigned long *)&__m256d_op1[2]) = 0x0000008000000080; + *((unsigned long *)&__m256d_op1[1]) = 0x0000008000000080; + *((unsigned long *)&__m256d_op1[0]) = 0x0000008000000080; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_op1[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_op1[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_op1[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op0[2]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op0[0]) = 0xffffb2f600006f48; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x00000000000000ff; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_op0[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_op1[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_result[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7efefefe80ffffff; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0087ff87f807ff87; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0087ff87f807ff87; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfmina_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_s.c new file mode 100644 index 00000000000..c73a8a74aff --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfmaxa_s.c @@ -0,0 +1,506 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00005555; + *((int *)&__m256_op1[6]) = 0x00005555; + *((int *)&__m256_op1[5]) = 0x000307ff; + *((int *)&__m256_op1[4]) = 0xfe72e815; + *((int *)&__m256_op1[3]) = 0x00005555; + *((int *)&__m256_op1[2]) = 0x00005555; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000015; + *((int *)&__m256_result[7]) = 0x00005555; + *((int *)&__m256_result[6]) = 0x00005555; + *((int *)&__m256_result[5]) = 0x000307ff; + *((int *)&__m256_result[4]) = 0xfe72e815; + *((int *)&__m256_result[3]) = 0x00005555; + *((int *)&__m256_result[2]) = 0x00005555; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000015; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00ff00ff; + *((int *)&__m256_op0[6]) = 0x00ff00ff; + *((int *)&__m256_op0[5]) = 0x00ff00ff; + *((int *)&__m256_op0[4]) = 0x000c0000; + *((int *)&__m256_op0[3]) = 0x00ff00ff; + *((int *)&__m256_op0[2]) = 0x00ff00ff; + *((int *)&__m256_op0[1]) = 0x00ff00ff; + *((int *)&__m256_op0[0]) = 0x00040000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00ff00ff; + *((int *)&__m256_result[6]) = 0x00ff00ff; + *((int *)&__m256_result[5]) = 0x00ff00ff; + *((int *)&__m256_result[4]) = 0x000c0000; + *((int *)&__m256_result[3]) = 0x00ff00ff; + *((int *)&__m256_result[2]) = 0x00ff00ff; + *((int *)&__m256_result[1]) = 0x00ff00ff; + *((int *)&__m256_result[0]) = 0x00040000; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x000007ff; + *((int *)&__m256_op0[6]) = 0x000007ff; + *((int *)&__m256_op0[5]) = 0x000007ff; + *((int *)&__m256_op0[4]) = 0xfffff800; + *((int *)&__m256_op0[3]) = 0x000007ff; + *((int *)&__m256_op0[2]) = 0x000007ff; + *((int *)&__m256_op0[1]) = 0x000007ff; + *((int *)&__m256_op0[0]) = 0xfffff800; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x000007ff; + *((int *)&__m256_result[6]) = 0x000007ff; + *((int *)&__m256_result[5]) = 0x000007ff; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x000007ff; + *((int *)&__m256_result[2]) = 0x000007ff; + *((int *)&__m256_result[1]) = 0x000007ff; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x001f00e0; + *((int *)&__m256_op0[4]) = 0x1f1f1fff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x001f00e0; + *((int *)&__m256_op0[0]) = 0x1f1f1fff; + *((int *)&__m256_op1[7]) = 0x80000000; + *((int *)&__m256_op1[6]) = 0x80000000; + *((int *)&__m256_op1[5]) = 0x80000000; + *((int *)&__m256_op1[4]) = 0xff800000; + *((int *)&__m256_op1[3]) = 0x80000000; + *((int *)&__m256_op1[2]) = 0x80000000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0xff800000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000001; + *((int *)&__m256_result[5]) = 0x001f00e0; + *((int *)&__m256_result[4]) = 0xff800000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000001; + *((int *)&__m256_result[1]) = 0x001f00e0; + *((int *)&__m256_result[0]) = 0xff800000; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000001; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000001; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00009fff; + *((int *)&__m256_op0[6]) = 0x00002001; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x00009fff; + *((int *)&__m256_op0[2]) = 0x00002001; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0xfffeb683; + *((int *)&__m256_op1[6]) = 0x9ffffd80; + *((int *)&__m256_op1[5]) = 0xfffe97c0; + *((int *)&__m256_op1[4]) = 0x20010001; + *((int *)&__m256_op1[3]) = 0xfffeb683; + *((int *)&__m256_op1[2]) = 0x9ffffd80; + *((int *)&__m256_op1[1]) = 0xfffe97c0; + *((int *)&__m256_op1[0]) = 0x20010001; + *((int *)&__m256_result[7]) = 0x00009fff; + *((int *)&__m256_result[6]) = 0x9ffffd80; + *((int *)&__m256_result[5]) = 0x0000ffff; + *((int *)&__m256_result[4]) = 0x20010001; + *((int *)&__m256_result[3]) = 0x00009fff; + *((int *)&__m256_result[2]) = 0x9ffffd80; + *((int *)&__m256_result[1]) = 0x0000ffff; + *((int *)&__m256_result[0]) = 0x20010001; + __m256_out = __lasx_xvfmaxa_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000170; + *((int *)&__m256_op0[6]) = 0x00000080; + *((int *)&__m256_op0[5]) = 0xc0650055; + *((int *)&__m256_op0[4]) = 0x0055ffab; + *((int *)&__m256_op0[3]) = 0x00000170; + *((int *)&__m256_op0[2]) = 0x00000080; + *((int *)&__m256_op0[1]) = 0xc0650055; + *((int *)&__m256_op0[0]) = 0x0055ffab; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffff0000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffff0000; + *((int *)&__m256_op1[7]) = 0xfffefffe; + *((int *)&__m256_op1[6]) = 0xfffefffe; + *((int *)&__m256_op1[5]) = 0xfffefffe; + *((int *)&__m256_op1[4]) = 0xfffefffe; + *((int *)&__m256_op1[3]) = 0xfffefffe; + *((int *)&__m256_op1[2]) = 0xfffefffe; + *((int *)&__m256_op1[1]) = 0xfffefffe; + *((int *)&__m256_op1[0]) = 0xfffefffe; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0xffff0000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0xffff0000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00fe01f0; + *((int *)&__m256_op0[6]) = 0x00010000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00c40086; + *((int *)&__m256_op0[3]) = 0x00fe01f0; + *((int *)&__m256_op0[2]) = 0x00010000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00c40086; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x82a54290; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x028aa700; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x82a54290; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x02a54287; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00010000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00c40086; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00010000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00c40086; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x02a54290; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0154dc84; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x02a54290; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000089; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x02a54290; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x0154dc84; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x02a54290; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000089; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x02a54290; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x0154dc84; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x02a54290; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000089; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x04000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x04000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00100000; + *((int *)&__m256_op0[6]) = 0x00100000; + *((int *)&__m256_op0[5]) = 0x00100000; + *((int *)&__m256_op0[4]) = 0x00100000; + *((int *)&__m256_op0[3]) = 0x00100000; + *((int *)&__m256_op0[2]) = 0x00100000; + *((int *)&__m256_op0[1]) = 0x00100000; + *((int *)&__m256_op0[0]) = 0x00100000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000010; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000010; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000080; + *((int *)&__m256_op0[6]) = 0x00000080; + *((int *)&__m256_op0[5]) = 0x00000080; + *((int *)&__m256_op0[4]) = 0x00000080; + *((int *)&__m256_op0[3]) = 0x00000080; + *((int *)&__m256_op0[2]) = 0x00000080; + *((int *)&__m256_op0[1]) = 0x00000080; + *((int *)&__m256_op0[0]) = 0x00000080; + *((int *)&__m256_op1[7]) = 0x00000001; + *((int *)&__m256_op1[6]) = 0x00000001; + *((int *)&__m256_op1[5]) = 0x00000001; + *((int *)&__m256_op1[4]) = 0x00000001; + *((int *)&__m256_op1[3]) = 0x00000001; + *((int *)&__m256_op1[2]) = 0x00000001; + *((int *)&__m256_op1[1]) = 0x00000001; + *((int *)&__m256_op1[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x00000001; + *((int *)&__m256_result[6]) = 0x00000001; + *((int *)&__m256_result[5]) = 0x00000001; + *((int *)&__m256_result[4]) = 0x00000001; + *((int *)&__m256_result[3]) = 0x00000001; + *((int *)&__m256_result[2]) = 0x00000001; + *((int *)&__m256_result[1]) = 0x00000001; + *((int *)&__m256_result[0]) = 0x00000001; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfmina_s (__m256_op0, __m256_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_d.c new file mode 100644 index 00000000000..18d5c51de02 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_d.c @@ -0,0 +1,482 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x1e1800001e180000; + *((unsigned long *)&__m256d_op0[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x1e1800001e180000; + *((unsigned long *)&__m256d_op0[0]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x2f03988e2052463e; + *((unsigned long *)&__m256d_result[2]) = 0x2f03988e1409212e; + *((unsigned long *)&__m256d_result[1]) = 0x2f03988e2052463e; + *((unsigned long *)&__m256d_result[0]) = 0x2f03988e1409212e; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256d_op0[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256d_op0[0]) = 0xff874dc687870000; + *((unsigned long *)&__m256d_result[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000100000018; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000100000018; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x1f60000000c00000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x1f60000000c00000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0003030300000300; + *((unsigned long *)&__m256d_op0[2]) = 0x0003030300000300; + *((unsigned long *)&__m256d_op0[1]) = 0x0003030300000100; + *((unsigned long *)&__m256d_op0[0]) = 0x0003030300000100; + *((unsigned long *)&__m256d_result[3]) = 0x1febc46085090ea0; + *((unsigned long *)&__m256d_result[2]) = 0x1febc46085090ea0; + *((unsigned long *)&__m256d_result[1]) = 0x1febc46085090567; + *((unsigned long *)&__m256d_result[0]) = 0x1febc46085090567; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000007f007f007f; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000007f007f007f; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x1f9689fdb16cabbd; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x1f9689fdb16cabbd; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffff0000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000010000000100; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000010000000100; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x1fa0000000080000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffff8000; + __m256d_out = __lasx_xvfsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffff00000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0209fefb08140000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256d_result[3]) = 0x6100000800060005; + *((unsigned long *)&__m256d_result[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x5ff00007fff9fff3; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x555555553f800000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x555555553f800000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x353bb67af686ad9b; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x353bb67af686ad9b; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000001f0000001f; + *((unsigned long *)&__m256d_op0[0]) = 0x0000001f0000ffff; + *((unsigned long *)&__m256d_result[3]) = 0x60000007fffe0001; + *((unsigned long *)&__m256d_result[2]) = 0x60000007fffe0001; + *((unsigned long *)&__m256d_result[1]) = 0x6056fd4e7926d5c0; + *((unsigned long *)&__m256d_result[0]) = 0x6056fd4e1a4616c4; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00001bfa000000f9; + *((unsigned long *)&__m256d_op0[2]) = 0x000000f900004040; + *((unsigned long *)&__m256d_op0[1]) = 0x00001bfa000000f9; + *((unsigned long *)&__m256d_op0[0]) = 0x000000f900004040; + *((unsigned long *)&__m256d_result[3]) = 0x60183329ceb52cf0; + *((unsigned long *)&__m256d_result[2]) = 0x6040392cdaf9b3ff; + *((unsigned long *)&__m256d_result[1]) = 0x60183329ceb52cf0; + *((unsigned long *)&__m256d_result[0]) = 0x6040392cdaf9b3ff; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x3de00103153ff5fb; + *((unsigned long *)&__m256d_op0[2]) = 0xbffffffe80000000; + *((unsigned long *)&__m256d_op0[1]) = 0x3de00103153ff5fb; + *((unsigned long *)&__m256d_op0[0]) = 0xbffffffe80000000; + *((unsigned long *)&__m256d_result[3]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256d_result[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256d_result[0]) = 0x7ff8000000000000; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256d_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256d_result[3]) = 0x606a20bd700e59a3; + *((unsigned long *)&__m256d_result[2]) = 0x6066a09e66c5f1bb; + *((unsigned long *)&__m256d_result[1]) = 0x606a20bd700e59a3; + *((unsigned long *)&__m256d_result[0]) = 0x6066a09e66c5f1bb; + __m256d_out = __lasx_xvfrsqrt_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x03fc03fc03f803f8; + *((unsigned long *)&__m256d_op0[2]) = 0x03fc03fc03f803f8; + *((unsigned long *)&__m256d_op0[1]) = 0x03fc03fc03f803f8; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256d_result[2]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256d_result[1]) = 0x7be2468acf15f39c; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256d_op0[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000089; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op0[2]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256d_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op0[0]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xaf0489001bd4c0c3; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xaf0489001bd4c0c3; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000a00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000fffff614; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000a00000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000fffff614; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000001e0000001e; + *((unsigned long *)&__m256d_op0[2]) = 0x0000001e0000001e; + *((unsigned long *)&__m256d_op0[1]) = 0x0000001e0000001e; + *((unsigned long *)&__m256d_op0[0]) = 0x0000001e0000001e; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xff80000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xff80000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8060000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8060000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfrecip_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_s.c new file mode 100644 index 00000000000..27df4a27daf --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfsqrt_s.c @@ -0,0 +1,457 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000ff80; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x60b53246; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x60b5054d; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x0060005a; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x0060005a; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0x5f13ccf5; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0x5f13ccf5; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000002; + *((int *)&__m256_op0[4]) = 0x00000008; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000002; + *((int *)&__m256_op0[0]) = 0x00000008; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x64800000; + *((int *)&__m256_result[4]) = 0x64000000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x64800000; + *((int *)&__m256_result[0]) = 0x64000000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x000000bd; + *((int *)&__m256_op0[4]) = 0xfef907bc; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x000000bd; + *((int *)&__m256_op0[0]) = 0xfef907bc; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x62d2acee; + *((int *)&__m256_result[4]) = 0x7fc00000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x62d2acee; + *((int *)&__m256_result[0]) = 0x7fc00000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x04e8296f; + *((int *)&__m256_op0[6]) = 0x18181818; + *((int *)&__m256_op0[5]) = 0x132feea9; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x04e8296f; + *((int *)&__m256_op0[2]) = 0x18181818; + *((int *)&__m256_op0[1]) = 0x132feea9; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x5cbe15f2; + *((int *)&__m256_result[6]) = 0x53261036; + *((int *)&__m256_result[5]) = 0x559a674d; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x5cbe15f2; + *((int *)&__m256_result[2]) = 0x53261036; + *((int *)&__m256_result[1]) = 0x559a674d; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrsqrt_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x000000ff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ff00; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xfc003802; + *((int *)&__m256_op0[6]) = 0xfc000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xfc00fc00; + *((int *)&__m256_op0[3]) = 0xfc003802; + *((int *)&__m256_op0[2]) = 0xfc000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xfc00fc00; + *((int *)&__m256_result[7]) = 0x82ff902d; + *((int *)&__m256_result[6]) = 0x83000000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x82fe0bd9; + *((int *)&__m256_result[3]) = 0x82ff902d; + *((int *)&__m256_result[2]) = 0x83000000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x82fe0bd9; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7f800000; + *((int *)&__m256_result[4]) = 0x7f800000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7f800000; + *((int *)&__m256_result[0]) = 0x7f800000; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xfd02fd02; + *((int *)&__m256_op0[6]) = 0xfd02fd02; + *((int *)&__m256_op0[5]) = 0xfd02fd02; + *((int *)&__m256_op0[4]) = 0xfd02fd02; + *((int *)&__m256_op0[3]) = 0xfd02fd02; + *((int *)&__m256_op0[2]) = 0xfd02fd02; + *((int *)&__m256_op0[1]) = 0xfd02fd02; + *((int *)&__m256_op0[0]) = 0xfd02fd02; + *((int *)&__m256_result[7]) = 0x81fa28e4; + *((int *)&__m256_result[6]) = 0x81fa28e4; + *((int *)&__m256_result[5]) = 0x81fa28e4; + *((int *)&__m256_result[4]) = 0x81fa28e4; + *((int *)&__m256_result[3]) = 0x81fa28e4; + *((int *)&__m256_result[2]) = 0x81fa28e4; + *((int *)&__m256_result[1]) = 0x81fa28e4; + *((int *)&__m256_result[0]) = 0x81fa28e4; + __m256_out = __lasx_xvfrecip_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} From patchwork Wed Sep 13 03:40:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp838887vqx; Tue, 12 Sep 2023 21:03:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFO97BbwhOLT/KqZsbbhP1P4v5sv8+wu3x7zhW/7V9W6reUI9/D5IIb/LNZKlRWTTJte46e X-Received: by 2002:a19:ca43:0:b0:4ff:aeef:b582 with SMTP id h3-20020a19ca43000000b004ffaeefb582mr989577lfj.66.1694577787072; Tue, 12 Sep 2023 21:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577787; cv=none; d=google.com; s=arc-20160816; b=SK0WeVIzNrSsvm38EK0xPjHG09uM//mR1ef9JfiuhV+n2O5/HRqUcPlZe8mCHqEcx4 s0rbWk6l1oWktADfCN1UcNzrsXApEggksVgqyTm9eVJU+AXVjP8N9ihk9LC803sD9syX cYp4b/ZHF84vThfb6C3DJu/mAdnjMhVQ2py6a9sgedoIKo5dJq7MKB6W10x1rQqUXy2E oHpue5dk2aBMUtGJYpk+qBA43xJP7ss28ll4IKDh0+mifC77qQy1dr48xz9l8UN/zFxP vLggPjp1lR0JhBFIToiHZ/Gxpx5mSDIXzRh034Cdx6EgWDcJp24iWnNj6X7rIomvU7Hy rFbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=AQNsbOFDLravSgJpYcR168anKt71Brfu3QUWfFnW3bA=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=CNX38V8oK5v4JlJfeEwg67QEB3HxkO2r9ybA/5Ne9a8RPmOeTk4/0ua+Nq+mw78eaX mcjiET7EE717DxDOgd/0l69LANRFivpsty55myRWDyxwY/mWHP3KGi1aLwiGMNlIc9an VGqssOV5a0xs9qbFCzeG0l1gdXRrxiJJ06uVAbWX+y74sJa4Wnqt9PlwFhCd9yvwo0R5 MTFWmEewozFUfB9U1KjPsYgtrROJD4DrfsGNClIZ4VHBrdrFZFj07ChOCnDnaYv3cN71 yrMXXLNrWxoCX4x2fiIMMwjmRp3HDjlsVapZHxmkYxt5k5RgTnkXLBOGNKCVBR/aVE// wWkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id z20-20020aa7c654000000b005236978cabesi10171551edr.684.2023.09.12.21.03.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1327398641A for ; Wed, 13 Sep 2023 03:42:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id DFAB0382E76D for ; Wed, 13 Sep 2023 03:40:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DFAB0382E76D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8Bx5fA7LwFlejEmAA--.9009S3; Wed, 13 Sep 2023 11:40:43 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S9; Wed, 13 Sep 2023 11:40:42 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 15/22] LoongArch: Add tests for ASX vector floating-point conversion instruction. Date: Wed, 13 Sep 2023 11:40:22 +0800 Message-Id: <20230913034026.7751-6-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S9 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBRgAAsU X-Coremail-Antispam: 1Uk129KBj93XoW7Gw48Xr4DJrWfJFy8Kw4rp5X_Wr4xJFWrpr 1xJr13GayIkayUtrWUtFWaqrs0yr40ya4DJF17G3sru3WkKF9Iqr47ArWUAr1kGF48ZF13 tFZ8Jw48trW5GwcCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj6I8E 87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjc xG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVF xhVjvjDU0xZFpf9x07b0c_-UUUUU= X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893597562065468 X-GMAIL-MSGID: 1776893597562065468 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvfcvt.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcvth.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvffint-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvffint-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvffinth.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfrint_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfrint_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvftint-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvftint-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvftint-3.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvftintl.c: New test. --- .../loongarch/vector/lasx/lasx-xvfcvt.c | 528 ++++++ .../loongarch/vector/lasx/lasx-xvfcvth.c | 485 +++++ .../loongarch/vector/lasx/lasx-xvffint-1.c | 375 ++++ .../loongarch/vector/lasx/lasx-xvffint-2.c | 246 +++ .../loongarch/vector/lasx/lasx-xvffinth.c | 262 +++ .../loongarch/vector/lasx/lasx-xvfrint_d.c | 429 +++++ .../loongarch/vector/lasx/lasx-xvfrint_s.c | 723 ++++++++ .../loongarch/vector/lasx/lasx-xvftint-1.c | 471 +++++ .../loongarch/vector/lasx/lasx-xvftint-2.c | 1565 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvftint-3.c | 511 ++++++ .../loongarch/vector/lasx/lasx-xvftintl.c | 1580 +++++++++++++++++ 11 files changed, 7175 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvt.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvth.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffinth.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-3.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftintl.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvt.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvt.c new file mode 100644 index 00000000000..116399a7c25 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvt.c @@ -0,0 +1,528 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000003; + *((int *)&__m256_op1[6]) = 0x0000000c; + *((int *)&__m256_op1[5]) = 0x00000011; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000005; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000008; + *((int *)&__m256_op1[0]) = 0x00000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x6d6d6d6d; + *((int *)&__m256_op0[6]) = 0x6d6d6d6d; + *((int *)&__m256_op0[5]) = 0x6d6d6d6d; + *((int *)&__m256_op0[4]) = 0x6d6d6d6d; + *((int *)&__m256_op0[3]) = 0x6d6d6d6d; + *((int *)&__m256_op0[2]) = 0x6d6d6d6d; + *((int *)&__m256_op0[1]) = 0x6d6d6d6d; + *((int *)&__m256_op0[0]) = 0x6d6d6d6d; + *((int *)&__m256_op1[7]) = 0x6d6d6d6d; + *((int *)&__m256_op1[6]) = 0x6d6d6d6d; + *((int *)&__m256_op1[5]) = 0x6d6d6d6d; + *((int *)&__m256_op1[4]) = 0x6d6d6d6d; + *((int *)&__m256_op1[3]) = 0x6d6d6d6d; + *((int *)&__m256_op1[2]) = 0x6d6d6d6d; + *((int *)&__m256_op1[1]) = 0x6d6d6d6d; + *((int *)&__m256_op1[0]) = 0x6d6d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_result[0]) = 0x7c007c007c007c00; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00020000; + *((int *)&__m256_op1[6]) = 0x00020000; + *((int *)&__m256_op1[5]) = 0x00020000; + *((int *)&__m256_op1[4]) = 0x00010000; + *((int *)&__m256_op1[3]) = 0x00020000; + *((int *)&__m256_op1[2]) = 0x00020000; + *((int *)&__m256_op1[1]) = 0x00020000; + *((int *)&__m256_op1[0]) = 0x00010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x71717171; + *((int *)&__m256_op1[6]) = 0x71010101; + *((int *)&__m256_op1[5]) = 0x8e8e8e8e; + *((int *)&__m256_op1[4]) = 0x8f00ffff; + *((int *)&__m256_op1[3]) = 0x71717171; + *((int *)&__m256_op1[2]) = 0x71010101; + *((int *)&__m256_op1[1]) = 0x8e8e8e8e; + *((int *)&__m256_op1[0]) = 0x8f00ffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7c007c0080008000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7c007c0080008000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xfff10000; + *((int *)&__m256_op0[4]) = 0xfff10000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xfff10000; + *((int *)&__m256_op0[0]) = 0xfff10000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xfff10000; + *((int *)&__m256_op1[4]) = 0xfff10000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xfff10000; + *((int *)&__m256_op1[0]) = 0xfff10000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff88ff88; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00040000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00040000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xff00ff00; + *((int *)&__m256_op0[6]) = 0x3f003f00; + *((int *)&__m256_op0[5]) = 0xff0101fd; + *((int *)&__m256_op0[4]) = 0x00010100; + *((int *)&__m256_op0[3]) = 0xff00ff00; + *((int *)&__m256_op0[2]) = 0x3f003f00; + *((int *)&__m256_op0[1]) = 0xff0101fd; + *((int *)&__m256_op0[0]) = 0x00010100; + *((int *)&__m256_op1[7]) = 0x01ffff43; + *((int *)&__m256_op1[6]) = 0x00fffeff; + *((int *)&__m256_op1[5]) = 0xfe0000bc; + *((int *)&__m256_op1[4]) = 0xff000100; + *((int *)&__m256_op1[3]) = 0x01ffff43; + *((int *)&__m256_op1[2]) = 0x00fffeff; + *((int *)&__m256_op1[1]) = 0xfe0000bc; + *((int *)&__m256_op1[0]) = 0xff000100; + *((unsigned long *)&__m256i_result[3]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fc00fc00; + *((unsigned long *)&__m256i_result[1]) = 0xfc003802fc000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fc00fc00; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcvt_h_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0cc08723ff900001; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xcc9b89f2f6cef440; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xfffffff8; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xff800000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xfffffff8; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0xff800000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xff800000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256d_op1[2]) = 0xff800000ff800000; + *((unsigned long *)&__m256d_op1[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256d_op1[0]) = 0xff800000ff800000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xff800000; + *((int *)&__m256_result[4]) = 0xff800000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xff800000; + *((int *)&__m256_result[0]) = 0xff800000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xf7f8f7f8f800f800; + *((unsigned long *)&__m256d_op1[2]) = 0x00003f784000ff80; + *((unsigned long *)&__m256d_op1[1]) = 0xf7f8f7f84000fff9; + *((unsigned long *)&__m256d_op1[0]) = 0x00003f784000ff80; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xff800000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xff800000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000555500005555; + *((unsigned long *)&__m256d_op0[2]) = 0x0000555500005555; + *((unsigned long *)&__m256d_op0[1]) = 0x0000555500005555; + *((unsigned long *)&__m256d_op0[0]) = 0x0000555500005555; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffb6804cb9; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffb7bbdec0; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffb680489b; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffb7bc02a0; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xfffffffd; + *((int *)&__m256_result[4]) = 0xfffffffd; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xfffffffd; + *((int *)&__m256_result[0]) = 0xfffffffd; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010202020203; + *((unsigned long *)&__m256d_op1[2]) = 0x0101010201010102; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010202020203; + *((unsigned long *)&__m256d_op1[0]) = 0x0101010201010102; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256d_op1[2]) = 0x3fff3fff3fff3fc4; + *((unsigned long *)&__m256d_op1[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256d_op1[0]) = 0x3fff3fff3fff3fc4; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x3ff9fffa; + *((int *)&__m256_result[4]) = 0x3ff9fffa; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x3ff9fffa; + *((int *)&__m256_result[0]) = 0x3ff9fffa; + __m256_out = __lasx_xvfcvt_s_d (__m256d_op0, __m256d_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvth.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvth.c new file mode 100644 index 00000000000..001ce1c69f6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvth.c @@ -0,0 +1,485 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x0000aaaa; + *((int *)&__m256_op0[6]) = 0x00008bfe; + *((int *)&__m256_op0[5]) = 0x0000aaaa; + *((int *)&__m256_op0[4]) = 0x0000aaaa; + *((int *)&__m256_op0[3]) = 0x0000aaaa; + *((int *)&__m256_op0[2]) = 0x00008bfe; + *((int *)&__m256_op0[1]) = 0x0000aaaa; + *((int *)&__m256_op0[0]) = 0x0000aaaa; + *((unsigned long *)&__m256d_result[3]) = 0x3795554000000000; + *((unsigned long *)&__m256d_result[2]) = 0x37917fc000000000; + *((unsigned long *)&__m256d_result[1]) = 0x3795554000000000; + *((unsigned long *)&__m256d_result[0]) = 0x37917fc000000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0404010008080808; + *((unsigned long *)&__m256i_op0[2]) = 0x0408010008080808; + *((unsigned long *)&__m256i_op0[1]) = 0x0404010008080808; + *((unsigned long *)&__m256i_op0[0]) = 0x0408010008080808; + *((int *)&__m256_result[7]) = 0x38808000; + *((int *)&__m256_result[6]) = 0x37800000; + *((int *)&__m256_result[5]) = 0x39010000; + *((int *)&__m256_result[4]) = 0x39010000; + *((int *)&__m256_result[3]) = 0x38808000; + *((int *)&__m256_result[2]) = 0x37800000; + *((int *)&__m256_result[1]) = 0x39010000; + *((int *)&__m256_result[0]) = 0x39010000; + __m256_out = __lasx_xvfcvth_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvth_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvth_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x000100010001fffe; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x000100010001fffe; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfcvth_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvth_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00020006; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00020006; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00020006; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00020006; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x37b0003000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x37b0003000000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0xfffffff0; + *((int *)&__m256_op0[6]) = 0xfffffff0; + *((int *)&__m256_op0[5]) = 0xfffffff0; + *((int *)&__m256_op0[4]) = 0xfffffff0; + *((int *)&__m256_op0[3]) = 0xfffffff0; + *((int *)&__m256_op0[2]) = 0xfffffff0; + *((int *)&__m256_op0[1]) = 0xfffffff0; + *((int *)&__m256_op0[0]) = 0xfffffff0; + *((unsigned long *)&__m256d_result[3]) = 0xfffffffe00000000; + *((unsigned long *)&__m256d_result[2]) = 0xfffffffe00000000; + *((unsigned long *)&__m256d_result[1]) = 0xfffffffe00000000; + *((unsigned long *)&__m256d_result[0]) = 0xfffffffe00000000; + __m256d_out = __lasx_xvfcvth_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0xf000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xf001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0xf000000000000000; + *((int *)&__m256_result[7]) = 0xc6000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xc6000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc080ffff0049ffd2; + *((unsigned long *)&__m256i_op0[2]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffeffb9ff9d; + *((unsigned long *)&__m256i_op0[0]) = 0x00010000002fff9e; + *((int *)&__m256_result[7]) = 0x34000000; + *((int *)&__m256_result[6]) = 0xfff00000; + *((int *)&__m256_result[5]) = 0xfff6e000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x33800000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x363c0000; + *((int *)&__m256_result[0]) = 0xfff3c000; + __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x80000000; + *((int *)&__m256_op0[6]) = 0x80000000; + *((int *)&__m256_op0[5]) = 0x80000000; + *((int *)&__m256_op0[4]) = 0xff800000; + *((int *)&__m256_op0[3]) = 0x80000000; + *((int *)&__m256_op0[2]) = 0x80000000; + *((int *)&__m256_op0[1]) = 0x80000000; + *((int *)&__m256_op0[0]) = 0xff800000; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op0[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_op0[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op0[0]) = 0xc1d75053f0000000; + *((int *)&__m256_result[7]) = 0xc03ae000; + *((int *)&__m256_result[6]) = 0x420a6000; + *((int *)&__m256_result[5]) = 0xc6000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xc03ae000; + *((int *)&__m256_result[2]) = 0x420a6000; + *((int *)&__m256_result[1]) = 0xc6000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x03802fc000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x03802fc000000000; + *((int *)&__m256_result[7]) = 0x38600000; + *((int *)&__m256_result[6]) = 0x3df80000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x38600000; + *((int *)&__m256_result[2]) = 0x3df80000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-1.c new file mode 100644 index 00000000000..dd04fd788b1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-1.c @@ -0,0 +1,375 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xbff0000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001700080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001700080; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x4177000800000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x4177000800000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_result[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xc1f0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xc1f0000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op0[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op0[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op0[0]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256d_result[3]) = 0x437fe01fe01fe020; + *((unsigned long *)&__m256d_result[2]) = 0x437fe01fe01fe020; + *((unsigned long *)&__m256d_result[1]) = 0x437fe01fe01fe020; + *((unsigned long *)&__m256d_result[0]) = 0x437fe01fe01fe020; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op0[2]) = 0x132feea900000000; + *((unsigned long *)&__m256i_op0[1]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op0[0]) = 0x132feea900000000; + *((unsigned long *)&__m256d_result[3]) = 0x4393a0a5bc606060; + *((unsigned long *)&__m256d_result[2]) = 0x43b32feea9000000; + *((unsigned long *)&__m256d_result[1]) = 0x4393a0a5bc606060; + *((unsigned long *)&__m256d_result[0]) = 0x43b32feea9000000; + __m256d_out = __lasx_xvffint_d_l (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_op0[2]) = 0xc5c085372cfabfba; + *((unsigned long *)&__m256i_op0[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_op0[0]) = 0x0658f2dc0eb21e3c; + *((int *)&__m256_result[7]) = 0x4e5cba76; + *((int *)&__m256_result[6]) = 0xcdbaaa78; + *((int *)&__m256_result[5]) = 0xce68fdeb; + *((int *)&__m256_result[4]) = 0x4e33eaff; + *((int *)&__m256_result[3]) = 0x4e45cc2d; + *((int *)&__m256_result[2]) = 0xcda41b30; + *((int *)&__m256_result[1]) = 0x4ccb1e5c; + *((int *)&__m256_result[0]) = 0x4d6b21e4; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000008000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x4efffe00; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x47000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x4efffe00; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x47000000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff00; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x477f0000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x477f0000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010001000030000; + *((unsigned long *)&__m256i_op0[2]) = 0x0010001000030000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010001000030000; + *((unsigned long *)&__m256i_op0[0]) = 0x0010001000030000; + *((int *)&__m256_result[7]) = 0x49800080; + *((int *)&__m256_result[6]) = 0x48400000; + *((int *)&__m256_result[5]) = 0x49800080; + *((int *)&__m256_result[4]) = 0x48400000; + *((int *)&__m256_result[3]) = 0x49800080; + *((int *)&__m256_result[2]) = 0x48400000; + *((int *)&__m256_result[1]) = 0x49800080; + *((int *)&__m256_result[0]) = 0x48400000; + __m256_out = __lasx_xvffint_s_w (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_l (__m256i_op0, __m256i_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x4f800000; + __m256_out = __lasx_xvffint_s_l (__m256i_op0, __m256i_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc74180000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff884580000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0xbf800000; + *((int *)&__m256_result[6]) = 0xbf800000; + *((int *)&__m256_result[5]) = 0xd662fa00; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xbf800000; + *((int *)&__m256_result[2]) = 0xbf800000; + *((int *)&__m256_result[1]) = 0xd6ef7500; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_l (__m256i_op0, __m256i_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_l (__m256i_op0, __m256i_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000005000000020; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000005000000020; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00040000; + *((int *)&__m256_result[7]) = 0xdf000000; + *((int *)&__m256_result[6]) = 0x52a00000; + *((int *)&__m256_result[5]) = 0x5b7f00ff; + *((int *)&__m256_result[4]) = 0x5b7f00ff; + *((int *)&__m256_result[3]) = 0xdf000000; + *((int *)&__m256_result[2]) = 0x52a00000; + *((int *)&__m256_result[1]) = 0x5b7f00ff; + *((int *)&__m256_result[0]) = 0x5b7f00ff; + __m256_out = __lasx_xvffint_s_l (__m256i_op0, __m256i_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[2]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[1]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[0]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x5d20a0a1; + *((int *)&__m256_result[6]) = 0x5d20a0a1; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x5d20a0a1; + *((int *)&__m256_result[2]) = 0x5d20a0a1; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_l (__m256i_op0, __m256i_op1); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-2.c new file mode 100644 index 00000000000..3e2b15507ac --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffint-2.c @@ -0,0 +1,246 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0101000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x4370100000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x4370100000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256d_result[3]) = 0x43c0101010101010; + *((unsigned long *)&__m256d_result[2]) = 0x43c0101010101032; + *((unsigned long *)&__m256d_result[1]) = 0x43c0101010101010; + *((unsigned long *)&__m256d_result[0]) = 0x43c0101010101032; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40efffe09fa88260; + *((unsigned long *)&__m256i_op0[2]) = 0x6b07ca8e013fbf01; + *((unsigned long *)&__m256i_op0[1]) = 0x40efffe09fa7e358; + *((unsigned long *)&__m256i_op0[0]) = 0x80ce32be3e827f00; + *((unsigned long *)&__m256d_result[3]) = 0x43d03bfff827ea21; + *((unsigned long *)&__m256d_result[2]) = 0x43dac1f2a3804ff0; + *((unsigned long *)&__m256d_result[1]) = 0x43d03bfff827e9f9; + *((unsigned long *)&__m256d_result[0]) = 0x43e019c657c7d050; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0x43f0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x43f0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x43f0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x43f0000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256d_result[3]) = 0x41f0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x41f0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x41f0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x41f0000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[0]) = 0x0202010202020102; + *((unsigned long *)&__m256d_result[3]) = 0x4380100810101008; + *((unsigned long *)&__m256d_result[2]) = 0x4380100810101008; + *((unsigned long *)&__m256d_result[1]) = 0x4380100810101008; + *((unsigned long *)&__m256d_result[0]) = 0x4380100810101008; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x41f0000000000000; + __m256d_out = __lasx_xvffint_d_lu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffbf7f00007fff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffe651ffffbfff; + *((int *)&__m256_result[7]) = 0x4f800000; + *((int *)&__m256_result[6]) = 0x4f800000; + *((int *)&__m256_result[5]) = 0x4f7fffbf; + *((int *)&__m256_result[4]) = 0x46fffe00; + *((int *)&__m256_result[3]) = 0x4f800000; + *((int *)&__m256_result[2]) = 0x4f800000; + *((int *)&__m256_result[1]) = 0x4f7fffe6; + *((int *)&__m256_result[0]) = 0x4f7fffc0; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((int *)&__m256_result[7]) = 0x4b808080; + *((int *)&__m256_result[6]) = 0x4b808080; + *((int *)&__m256_result[5]) = 0x4f800000; + *((int *)&__m256_result[4]) = 0x4f7fffff; + *((int *)&__m256_result[3]) = 0x4b808080; + *((int *)&__m256_result[2]) = 0x4b808080; + *((int *)&__m256_result[1]) = 0x4f800000; + *((int *)&__m256_result[0]) = 0x4f800000; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x41000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x41000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x41000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x41000000; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000020; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x42800000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x42000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x42800000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x42000000; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvffint_s_wu (__m256i_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffinth.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffinth.c new file mode 100644 index 00000000000..e310ff5ee11 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvffinth.c @@ -0,0 +1,262 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0e2d5626ff75cdbc; + *((unsigned long *)&__m256i_op0[2]) = 0x5db4b156e2002a78; + *((unsigned long *)&__m256i_op0[1]) = 0xeeffbeb03ba3e6b0; + *((unsigned long *)&__m256i_op0[0]) = 0x0c16e25eb28d27ea; + *((unsigned long *)&__m256d_result[3]) = 0x41ac5aac4c000000; + *((unsigned long *)&__m256d_result[2]) = 0xc161464880000000; + *((unsigned long *)&__m256d_result[1]) = 0xc1b1004150000000; + *((unsigned long *)&__m256d_result[0]) = 0x41cdd1f358000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000006f0000007f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000006f0000007f; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op0[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op0[1]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op0[0]) = 0xe161616161614e60; + *((unsigned long *)&__m256d_result[3]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256d_result[2]) = 0x41d8585858400000; + *((unsigned long *)&__m256d_result[1]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256d_result[0]) = 0x41d8585858400000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff00000000; + *((unsigned long *)&__m256d_result[3]) = 0x41dfffc000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x41dfffdfffc00000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000007f3a40; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffb79fb74; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffb79fb74; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256d_result[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xc192181230000000; + *((unsigned long *)&__m256d_result[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xc192181230000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xbff0000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ffffffff00; + *((unsigned long *)&__m256d_result[3]) = 0x40efffe000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x40efffe000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x41dffc0000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x41dffc0000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256d_result[3]) = 0xc039000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xc039000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xc039000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xc039000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffinth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5980000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x41d6600000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x41d6600000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256d_result[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256d_result[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256d_result[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256d_result[0]) = 0xc1d75053f0000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000001f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000001f; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x403f000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x403f000000000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00f7000000f70006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00f7000000f70006; + *((unsigned long *)&__m256d_result[3]) = 0x416ee00000000000; + *((unsigned long *)&__m256d_result[2]) = 0x416ee000c0000000; + *((unsigned long *)&__m256d_result[1]) = 0x416ee00000000000; + *((unsigned long *)&__m256d_result[0]) = 0x416ee000c0000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff000000000080; + *((unsigned long *)&__m256d_result[3]) = 0x416fe00000000000; + *((unsigned long *)&__m256d_result[2]) = 0x4060000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x416fe00000000000; + *((unsigned long *)&__m256d_result[0]) = 0x4060000000000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x41cfe01dde000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x41cfe01dde000000; + __m256d_out = __lasx_xvffintl_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_d.c new file mode 100644 index 00000000000..4babf163898 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_d.c @@ -0,0 +1,429 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +/* { dg-timeout 500 } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrint_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x0); + *((unsigned long *)&__m256d_op0[3]) = 0xfffefffe00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xfffefffefffefffd; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfffefffe00000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfffefffefffefffd; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrint_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000008050501; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000008050501; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrint_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfrint_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrint_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_result[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_result[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_result[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_result[0]) = 0xfffffffffffffff8; + __m256d_out = __lasx_xvfrint_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000080008001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000080008001; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x7c00000880008000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7c00000880008000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256d_op0[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256d_op0[1]) = 0x6018000000000cd1; + *((unsigned long *)&__m256d_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256d_result[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256d_result[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256d_result[1]) = 0x6018000000000cd1; + *((unsigned long *)&__m256d_result[0]) = 0x6040190d00000000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256d_op0[2]) = 0x408480007fff0000; + *((unsigned long *)&__m256d_op0[1]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256d_op0[0]) = 0x408480007fff0000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x4084800000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x4084800000000000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_op0[2]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_op0[1]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_op0[0]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_result[3]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_result[2]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_result[1]) = 0xffff0001ffff0001; + *((unsigned long *)&__m256d_result[0]) = 0xffff0001ffff0001; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x3fffbfff80000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00004000007f8000; + *((unsigned long *)&__m256d_op0[1]) = 0x3fffbfff80000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00004000007f8000; + *((unsigned long *)&__m256d_result[3]) = 0x4000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x4000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrne_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ffff00010000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x3ff0000000000000; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xfffffefe00000000; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000100da000100fd; + *((unsigned long *)&__m256d_op0[2]) = 0x0001ffe20001fefd; + *((unsigned long *)&__m256d_op0[1]) = 0x0001009a000100fd; + *((unsigned long *)&__m256d_op0[0]) = 0x0001ff640001fefd; + *((unsigned long *)&__m256d_result[3]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x3ff0000000000000; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256d_op0[2]) = 0x01fc03fc01fc03fc; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256d_op0[0]) = 0x01fc03fc01fc03fc; + *((unsigned long *)&__m256d_result[3]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256d_result[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfffffffffffffffc; + *((unsigned long *)&__m256d_result[0]) = 0x3ff0000000000000; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0218ff78fc38fc38; + *((unsigned long *)&__m256d_op0[2]) = 0xfc00000000000048; + *((unsigned long *)&__m256d_op0[1]) = 0x0218ff78fc38fc38; + *((unsigned long *)&__m256d_op0[0]) = 0xfc00000000000048; + *((unsigned long *)&__m256d_result[3]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfc00000000000048; + *((unsigned long *)&__m256d_result[1]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfc00000000000048; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_result[3]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_result[2]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_result[1]) = 0xfffffff0fffffff0; + *((unsigned long *)&__m256d_result[0]) = 0xfffffff0fffffff0; + __m256d_out = __lasx_xvfrintrp_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x017e017e01dd61de; + *((unsigned long *)&__m256d_op0[2]) = 0x5d637d043bc4fc43; + *((unsigned long *)&__m256d_op0[1]) = 0x01dcc2dce31bc35d; + *((unsigned long *)&__m256d_op0[0]) = 0x5e041d245b85fc43; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x5d637d043bc4fc43; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x5e041d245b85fc43; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_op0[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_op0[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_op0[0]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_result[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_result[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_result[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256d_result[0]) = 0x7c007c007c007c00; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x5); + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrm_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000800000098; + *((unsigned long *)&__m256d_op0[2]) = 0x000000040000ffca; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000800000098; + *((unsigned long *)&__m256d_op0[0]) = 0x000000040000ff79; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x7ff0000000000000; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000781; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000001ffe2000; + *((unsigned long *)&__m256d_op0[2]) = 0x001fe020001fe020; + *((unsigned long *)&__m256d_op0[1]) = 0x000000001ffe2000; + *((unsigned long *)&__m256d_op0[0]) = 0x001fe020001fe020; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000; + __m256d_out = __lasx_xvfrintrz_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_s.c new file mode 100644 index 00000000000..9f2fa674776 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrint_s.c @@ -0,0 +1,723 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +/* { dg-timeout 500 } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffff5f5c; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffff605a; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffff5f5c; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffff605a; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffff5f5c; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffff605a; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffff5f5c; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffff605a; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xc5c5c5c4; + *((int *)&__m256_op0[6]) = 0xc5c5c5c4; + *((int *)&__m256_op0[5]) = 0x45c5c5c5; + *((int *)&__m256_op0[4]) = 0x45c5c5c5; + *((int *)&__m256_op0[3]) = 0xc5c5c5c4; + *((int *)&__m256_op0[2]) = 0xc5c5c5c4; + *((int *)&__m256_op0[1]) = 0x45c5c5c5; + *((int *)&__m256_op0[0]) = 0x45c5c5c5; + *((int *)&__m256_result[7]) = 0xc5c5c800; + *((int *)&__m256_result[6]) = 0xc5c5c800; + *((int *)&__m256_result[5]) = 0x45c5c800; + *((int *)&__m256_result[4]) = 0x45c5c800; + *((int *)&__m256_result[3]) = 0xc5c5c800; + *((int *)&__m256_result[2]) = 0xc5c5c800; + *((int *)&__m256_result[1]) = 0x45c5c800; + *((int *)&__m256_result[0]) = 0x45c5c800; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffff6f20; + *((int *)&__m256_op0[5]) = 0x0000781e; + *((int *)&__m256_op0[4]) = 0x0000f221; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffff6f20; + *((int *)&__m256_op0[1]) = 0x0000781e; + *((int *)&__m256_op0[0]) = 0x0000f221; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0xffff6f20; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0xffff6f20; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffffb3b4; + *((int *)&__m256_op0[5]) = 0xfffffff5; + *((int *)&__m256_op0[4]) = 0xffff4738; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffffb3b4; + *((int *)&__m256_op0[1]) = 0xfffffff5; + *((int *)&__m256_op0[0]) = 0xffff4738; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0xffffb3b4; + *((int *)&__m256_result[5]) = 0xfffffff5; + *((int *)&__m256_result[4]) = 0xffff4738; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0xffffb3b4; + *((int *)&__m256_result[1]) = 0xfffffff5; + *((int *)&__m256_result[0]) = 0xffff4738; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00ff0000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00ff0000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00ff0000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00ff0000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00003fea; + *((int *)&__m256_op0[6]) = 0x00013feb; + *((int *)&__m256_op0[5]) = 0x00003fe9; + *((int *)&__m256_op0[4]) = 0x00014022; + *((int *)&__m256_op0[3]) = 0x00003fea; + *((int *)&__m256_op0[2]) = 0x00013feb; + *((int *)&__m256_op0[1]) = 0x00003fe9; + *((int *)&__m256_op0[0]) = 0x00014022; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrint_s (__m256_op0); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x01010101; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x01010101; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x01010101; + *((int *)&__m256_op0[2]) = 0x01010101; + *((int *)&__m256_op0[1]) = 0x01010101; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x01010101; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x01010101; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x01010101; + *((int *)&__m256_op0[2]) = 0x01010101; + *((int *)&__m256_op0[1]) = 0x01010101; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrne_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x55555555; + *((int *)&__m256_op0[6]) = 0x36aaaaac; + *((int *)&__m256_op0[5]) = 0x55555555; + *((int *)&__m256_op0[4]) = 0xaaaaaaac; + *((int *)&__m256_op0[3]) = 0x55555555; + *((int *)&__m256_op0[2]) = 0x36aaaaac; + *((int *)&__m256_op0[1]) = 0x55555555; + *((int *)&__m256_op0[0]) = 0xaaaaaaac; + *((int *)&__m256_result[7]) = 0x55555555; + *((int *)&__m256_result[6]) = 0x3f800000; + *((int *)&__m256_result[5]) = 0x55555555; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x55555555; + *((int *)&__m256_result[2]) = 0x3f800000; + *((int *)&__m256_result[1]) = 0x55555555; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffc741; + *((int *)&__m256_op0[6]) = 0x8a023680; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffff8845; + *((int *)&__m256_op0[2]) = 0xbb954b00; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffc741; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xffff8845; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00200101; + *((int *)&__m256_op0[6]) = 0x01610000; + *((int *)&__m256_op0[5]) = 0x00612000; + *((int *)&__m256_op0[4]) = 0x00610000; + *((int *)&__m256_op0[3]) = 0x00200101; + *((int *)&__m256_op0[2]) = 0x01610000; + *((int *)&__m256_op0[1]) = 0x00612000; + *((int *)&__m256_op0[0]) = 0x00610000; + *((int *)&__m256_result[7]) = 0x3f800000; + *((int *)&__m256_result[6]) = 0x3f800000; + *((int *)&__m256_result[5]) = 0x3f800000; + *((int *)&__m256_result[4]) = 0x3f800000; + *((int *)&__m256_result[3]) = 0x3f800000; + *((int *)&__m256_result[2]) = 0x3f800000; + *((int *)&__m256_result[1]) = 0x3f800000; + *((int *)&__m256_result[0]) = 0x3f800000; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xfefefefe; + *((int *)&__m256_op0[4]) = 0x01010101; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xfefefefe; + *((int *)&__m256_op0[0]) = 0x01010101; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xfefefefe; + *((int *)&__m256_result[4]) = 0x3f800000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xfefefefe; + *((int *)&__m256_result[0]) = 0x3f800000; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x1c1c1c1c; + *((int *)&__m256_op0[6]) = 0x1c1c1c1c; + *((int *)&__m256_op0[5]) = 0xfffffffe; + *((int *)&__m256_op0[4]) = 0xffffff00; + *((int *)&__m256_op0[3]) = 0x1c1c1c1c; + *((int *)&__m256_op0[2]) = 0x1c1c1c1c; + *((int *)&__m256_op0[1]) = 0xfffffffe; + *((int *)&__m256_op0[0]) = 0xffffff00; + *((int *)&__m256_result[7]) = 0x3f800000; + *((int *)&__m256_result[6]) = 0x3f800000; + *((int *)&__m256_result[5]) = 0xfffffffe; + *((int *)&__m256_result[4]) = 0xffffff00; + *((int *)&__m256_result[3]) = 0x3f800000; + *((int *)&__m256_result[2]) = 0x3f800000; + *((int *)&__m256_result[1]) = 0xfffffffe; + *((int *)&__m256_result[0]) = 0xffffff00; + __m256_out = __lasx_xvfrintrp_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000008; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00080000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x5d20a0a1; + *((int *)&__m256_op0[6]) = 0x5d20a0a1; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x5d20a0a1; + *((int *)&__m256_op0[2]) = 0x5d20a0a1; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x5d20a0a1; + *((int *)&__m256_result[6]) = 0x5d20a0a1; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x5d20a0a1; + *((int *)&__m256_result[2]) = 0x5d20a0a1; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x001d001d; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x001d001d; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000033; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000033; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrm_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000300; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000303; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xfffffffe; + *((int *)&__m256_op0[5]) = 0xfffffffe; + *((int *)&__m256_op0[4]) = 0xfffffefc; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xfffffffe; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xfffffffe; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xfffffffe; + *((int *)&__m256_result[5]) = 0xfffffffe; + *((int *)&__m256_result[4]) = 0xfffffefc; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xfffffffe; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xfffffffe; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x0001c4e8; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x0001c4e8; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x00000000; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0x00000000; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x00000000; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0x00000000; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x80000000; + *((int *)&__m256_op0[6]) = 0x80000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x80000000; + *((int *)&__m256_op0[2]) = 0x80000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xf5fffc00; + *((int *)&__m256_op0[6]) = 0xfc000000; + *((int *)&__m256_op0[5]) = 0xf5fffc00; + *((int *)&__m256_op0[4]) = 0xfc000000; + *((int *)&__m256_op0[3]) = 0xf5fffc00; + *((int *)&__m256_op0[2]) = 0xfc000000; + *((int *)&__m256_op0[1]) = 0xf5fffc00; + *((int *)&__m256_op0[0]) = 0xfc000000; + *((int *)&__m256_result[7]) = 0xf5fffc00; + *((int *)&__m256_result[6]) = 0xfc000000; + *((int *)&__m256_result[5]) = 0xf5fffc00; + *((int *)&__m256_result[4]) = 0xfc000000; + *((int *)&__m256_result[3]) = 0xf5fffc00; + *((int *)&__m256_result[2]) = 0xfc000000; + *((int *)&__m256_result[1]) = 0xf5fffc00; + *((int *)&__m256_result[0]) = 0xfc000000; + __m256_out = __lasx_xvfrintrz_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-1.c new file mode 100644 index 00000000000..c75468d42ee --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-1.c @@ -0,0 +1,471 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffcb423a587053; + *((unsigned long *)&__m256d_op0[2]) = 0x6d46f43e71141b81; + *((unsigned long *)&__m256d_op0[1]) = 0xffffcb423a584528; + *((unsigned long *)&__m256d_op0[0]) = 0x9bdf36c8d78158a1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x386000003df80000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x386000003df80000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x555555553f800000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x555555553f800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x43f0000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x43f0000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x43f0000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x43f0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffc03b1fc5e050; + *((unsigned long *)&__m256d_op0[2]) = 0x6a9e3fa2603a2000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffc03b1fc5e050; + *((unsigned long *)&__m256d_op0[0]) = 0x6a9e3fa2603a2000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7f70000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x7f70000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x7f70000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x7f70000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00007f8000007f80; + *((unsigned long *)&__m256d_op0[2]) = 0x00007f8000007f80; + *((unsigned long *)&__m256d_op0[1]) = 0x00007f8000007f80; + *((unsigned long *)&__m256d_op0[0]) = 0x00007f8000007f80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x555555553f800000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x555555553f800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000001c9880; + *((unsigned long *)&__m256d_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000001c9880; + *((unsigned long *)&__m256d_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x1828f0e09bad7249; + *((unsigned long *)&__m256d_op0[2]) = 0x07ffc1b723953cec; + *((unsigned long *)&__m256d_op0[1]) = 0x61f2e9b333aab104; + *((unsigned long *)&__m256d_op0[0]) = 0x6bf742aa0d7856a0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00ffffff1e9e9e9e; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff9e9eb09e; + *((unsigned long *)&__m256d_op0[1]) = 0x00ffffff1e9e9e9e; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff9e9eb09e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_l_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-2.c new file mode 100644 index 00000000000..ad72f7596bc --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-2.c @@ -0,0 +1,1565 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x0000ffff; + *((int *)&__m256_op0[6]) = 0xc0008001; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0xc0008001; + *((int *)&__m256_op0[3]) = 0x0000ffff; + *((int *)&__m256_op0[2]) = 0xc0008001; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0xc0008001; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffffffe; + __m256i_out = __lasx_xvftint_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x3f3f3f3c; + *((int *)&__m256_op0[5]) = 0xc6c6c6c6; + *((int *)&__m256_op0[4]) = 0x8787878a; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x3f3f3f3c; + *((int *)&__m256_op0[1]) = 0x8787878a; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0xffff9c9d00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x1f0fdf7f; + *((int *)&__m256_op0[6]) = 0x3e3b31d4; + *((int *)&__m256_op0[5]) = 0x7ff80000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x1f0fdf7f; + *((int *)&__m256_op0[2]) = 0x3e3b31d4; + *((int *)&__m256_op0[1]) = 0x7ff80000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000200000003; + *((unsigned long *)&__m256d_op1[2]) = 0x0000ffff00010002; + *((unsigned long *)&__m256d_op1[1]) = 0x0080000200000003; + *((unsigned long *)&__m256d_op1[0]) = 0x0000ffff00010002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x55555555; + *((int *)&__m256_op0[5]) = 0x00000001; + *((int *)&__m256_op0[4]) = 0x00000004; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x55555555; + *((int *)&__m256_op0[1]) = 0x00000001; + *((int *)&__m256_op0[0]) = 0x00000004; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x00ff00ffff0000ff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x00ff00ffff0000ff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256d_op0[2]) = 0x7fe363637fe36364; + *((unsigned long *)&__m256d_op0[1]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256d_op0[0]) = 0x7fe363637fe36364; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffffffffff5; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000007; + *((unsigned long *)&__m256d_op0[2]) = 0x000000020000000b; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000007; + *((unsigned long *)&__m256d_op0[0]) = 0x000000020000000a; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000000000000000a; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000000000000a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000505; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x40000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x40000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256d_op1[2]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256d_op1[1]) = 0x108659e46485f7e1; + *((unsigned long *)&__m256d_op1[0]) = 0x4df5b1a3ed5e02c1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffffff; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000004; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000004040104; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffd1108199; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000714910f9; + *((unsigned long *)&__m256d_op1[3]) = 0x000000030000000c; + *((unsigned long *)&__m256d_op1[2]) = 0x0000001100000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000500000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000800000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffff7e; + *((int *)&__m256_op0[4]) = 0xffffff46; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffff7e; + *((int *)&__m256_op0[0]) = 0xffffff46; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffe5ffffffe5; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000001000000010; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000001000000010; + *((unsigned long *)&__m256d_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffff7fffffff; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x00000001ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x00000001ffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x00000001ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256d_op0[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000180007fe8; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffffff; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000000007c8; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000000007c8; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000001fe01fe; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000ff0100; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000001fe01fe; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000ff0100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0fffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x0fffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x0fffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x0fffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x000000010000685e; + *((unsigned long *)&__m256d_op1[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256d_op1[1]) = 0x000000010000685e; + *((unsigned long *)&__m256d_op1[0]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000800000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000800000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfd12fd12; + *((int *)&__m256_op0[6]) = 0xfd12fd12; + *((int *)&__m256_op0[5]) = 0xfd12fd12; + *((int *)&__m256_op0[4]) = 0xfd12fd12; + *((int *)&__m256_op0[3]) = 0xfd12fd12; + *((int *)&__m256_op0[2]) = 0xfd12fd12; + *((int *)&__m256_op0[1]) = 0xfd12fd12; + *((int *)&__m256_op0[0]) = 0xfd12fd12; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvftintrne_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x000a000a000a000a; + *((unsigned long *)&__m256d_op1[2]) = 0x000a000a000a000a; + *((unsigned long *)&__m256d_op1[1]) = 0x000a000a000a000a; + *((unsigned long *)&__m256d_op1[0]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrne_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffe4ffe6; + *((int *)&__m256_op0[6]) = 0xffe5ffe6; + *((int *)&__m256_op0[5]) = 0xffe4ffe6; + *((int *)&__m256_op0[4]) = 0xffe5ffe6; + *((int *)&__m256_op0[3]) = 0xffe4ffe6; + *((int *)&__m256_op0[2]) = 0xffe5ffe6; + *((int *)&__m256_op0[1]) = 0xffe4ffe6; + *((int *)&__m256_op0[0]) = 0xffe5ffe6; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000001; + *((int *)&__m256_op0[4]) = 0x00010102; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x80008000; + *((int *)&__m256_op0[6]) = 0x80008000; + *((int *)&__m256_op0[5]) = 0x80008000; + *((int *)&__m256_op0[4]) = 0x80008000; + *((int *)&__m256_op0[3]) = 0x80008000; + *((int *)&__m256_op0[2]) = 0x80008000; + *((int *)&__m256_op0[1]) = 0x80008000; + *((int *)&__m256_op0[0]) = 0x80008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x10000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x10000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00ff00ff; + *((int *)&__m256_op0[6]) = 0x00ff00ff; + *((int *)&__m256_op0[5]) = 0x00ff00ff; + *((int *)&__m256_op0[4]) = 0x00ff00ff; + *((int *)&__m256_op0[3]) = 0x00ff00ff; + *((int *)&__m256_op0[2]) = 0x00ff00ff; + *((int *)&__m256_op0[1]) = 0x00ff00ff; + *((int *)&__m256_op0[0]) = 0x00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvftintrp_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0010001000100010; + *((unsigned long *)&__m256d_op1[2]) = 0x0010001000107878; + *((unsigned long *)&__m256d_op1[1]) = 0x0010001000100010; + *((unsigned long *)&__m256d_op1[0]) = 0x0010001000107878; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0040000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0040000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0040000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0040000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0005000500050005; + *((unsigned long *)&__m256d_op0[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_op0[1]) = 0x0005000500050005; + *((unsigned long *)&__m256d_op0[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_op1[3]) = 0x00003fea00013fec; + *((unsigned long *)&__m256d_op1[2]) = 0x00003fe50001c013; + *((unsigned long *)&__m256d_op1[1]) = 0x00003fea00013fec; + *((unsigned long *)&__m256d_op1[0]) = 0x00003fe50001c013; + *((unsigned long *)&__m256i_result[3]) = 0x0000000180000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000180000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvftintrp_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffff000000010000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000095120000; + *((unsigned long *)&__m256d_op0[1]) = 0xc9da000063f50000; + *((unsigned long *)&__m256d_op0[0]) = 0xc7387fff6bbfffff; + *((unsigned long *)&__m256d_op1[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256d_op1[1]) = 0x4001000100020000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffefffe; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xfffefffe; + *((int *)&__m256_op0[2]) = 0xfffefffd; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0707feb6; + *((int *)&__m256_op0[6]) = 0x0707b7d0; + *((int *)&__m256_op0[5]) = 0x45baa7ef; + *((int *)&__m256_op0[4]) = 0x6a95a985; + *((int *)&__m256_op0[3]) = 0x0707feb6; + *((int *)&__m256_op0[2]) = 0x0707b7d0; + *((int *)&__m256_op0[1]) = 0x45baa7ef; + *((int *)&__m256_op0[0]) = 0x6a95a985; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000017547fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000017547fffffff; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x6d6d6d6d; + *((int *)&__m256_op0[6]) = 0x6d6d6d6d; + *((int *)&__m256_op0[5]) = 0x6d6d6d6d; + *((int *)&__m256_op0[4]) = 0x6d6d6d6d; + *((int *)&__m256_op0[3]) = 0x6d6d6d6d; + *((int *)&__m256_op0[2]) = 0x6d6d6d6d; + *((int *)&__m256_op0[1]) = 0x6d6d6d6d; + *((int *)&__m256_op0[0]) = 0x6d6d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffff7fffffff; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256d_op0[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256d_op0[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256d_op0[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256d_op1[3]) = 0x00000000c0000005; + *((unsigned long *)&__m256d_op1[2]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256d_op1[1]) = 0x00000000c0000005; + *((unsigned long *)&__m256d_op1[0]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x00000000ffe36780; + *((unsigned long *)&__m256d_op1[2]) = 0x8000000100000001; + *((unsigned long *)&__m256d_op1[1]) = 0x00000000ffe36780; + *((unsigned long *)&__m256d_op1[0]) = 0x8000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xfff10000; + *((int *)&__m256_op0[4]) = 0xfff10000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xfff10000; + *((int *)&__m256_op0[0]) = 0xfff10000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xfdfcfda8; + *((int *)&__m256_op0[5]) = 0x0000e282; + *((int *)&__m256_op0[4]) = 0x1d20ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xfdfcfda8; + *((int *)&__m256_op0[1]) = 0x0000e282; + *((int *)&__m256_op0[0]) = 0x1d20ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0080000000800000; + *((unsigned long *)&__m256d_op1[2]) = 0x0080000000800000; + *((unsigned long *)&__m256d_op1[1]) = 0x0080000000800000; + *((unsigned long *)&__m256d_op1[0]) = 0x0080000000800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x1fa0000000080000; + *((unsigned long *)&__m256d_op1[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256d_op1[1]) = 0x1fa0000000080000; + *((unsigned long *)&__m256d_op1[0]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256d_op0[2]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256d_op0[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256d_op0[0]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256d_op1[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256d_op1[2]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256d_op1[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256d_op1[0]) = 0xff00ff007f007f00; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0002fffc; + *((unsigned long *)&__m256d_op0[2]) = 0xffff0000fffd0003; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0002fffc; + *((unsigned long *)&__m256d_op0[0]) = 0xffff0000fffd0003; + *((unsigned long *)&__m256d_op1[3]) = 0x003f020001400200; + *((unsigned long *)&__m256d_op1[2]) = 0x003f00ff003f00c4; + *((unsigned long *)&__m256d_op1[1]) = 0x003f020001400200; + *((unsigned long *)&__m256d_op1[0]) = 0x003f00ff003f00c4; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrm_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffff0ffff0000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffff0ffff0000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[2]) = 0x3ff1808001020101; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[0]) = 0x3ff1808001020101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x002e2100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x34000000fff00000; + *((unsigned long *)&__m256d_op0[2]) = 0xfff6e00000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x3380000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x363c0000fff3c000; + *((unsigned long *)&__m256d_op1[3]) = 0x000000030000000c; + *((unsigned long *)&__m256d_op1[2]) = 0x0000001100000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000500000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000800000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xa5a5a5a5a5a5a5a5; + *((unsigned long *)&__m256d_op1[2]) = 0xa5a5a5a5a5a5a5ff; + *((unsigned long *)&__m256d_op1[1]) = 0xa5a5a5a5a5a5a5a5; + *((unsigned long *)&__m256d_op1[0]) = 0xa5a5a5a5a5a5a5ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x55555555; + *((int *)&__m256_op0[6]) = 0x55555555; + *((int *)&__m256_op0[5]) = 0x5d5d5d5d; + *((int *)&__m256_op0[4]) = 0x5d555d55; + *((int *)&__m256_op0[3]) = 0x55555555; + *((int *)&__m256_op0[2]) = 0x55555555; + *((int *)&__m256_op0[1]) = 0x5d5ca2a3; + *((int *)&__m256_op0[0]) = 0x5d54aaab; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffff7fffffff; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0b085bfc00000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0b004bc000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0b085bfc00000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0b004bc000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffeeffaf; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000011; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffeeffaf; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000011; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00ff00ff; + *((int *)&__m256_op0[6]) = 0x00ff00ff; + *((int *)&__m256_op0[5]) = 0x00ff00ff; + *((int *)&__m256_op0[4]) = 0x00ff00ff; + *((int *)&__m256_op0[3]) = 0x00ff00ff; + *((int *)&__m256_op0[2]) = 0x00ff00ff; + *((int *)&__m256_op0[1]) = 0x00ff00ff; + *((int *)&__m256_op0[0]) = 0x00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x001d001d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256d_op0[2]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256d_op0[1]) = 0x01ff0020ff1f001f; + *((unsigned long *)&__m256d_op0[0]) = 0x7fe1ffe0ffe1ffe0; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x81fa28e4; + *((int *)&__m256_op0[6]) = 0x81fa28e4; + *((int *)&__m256_op0[5]) = 0x81fa28e4; + *((int *)&__m256_op0[4]) = 0x81fa28e4; + *((int *)&__m256_op0[3]) = 0x81fa28e4; + *((int *)&__m256_op0[2]) = 0x81fa28e4; + *((int *)&__m256_op0[1]) = 0x81fa28e4; + *((int *)&__m256_op0[0]) = 0x81fa28e4; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_w_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-3.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-3.c new file mode 100644 index 00000000000..19db4e192d2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftint-3.c @@ -0,0 +1,511 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffefffe; + *((int *)&__m256_op0[6]) = 0xfffefffe; + *((int *)&__m256_op0[5]) = 0xfffefffe; + *((int *)&__m256_op0[4]) = 0xfffefffe; + *((int *)&__m256_op0[3]) = 0xfffefffe; + *((int *)&__m256_op0[2]) = 0xfffefffe; + *((int *)&__m256_op0[1]) = 0xfffefffe; + *((int *)&__m256_op0[0]) = 0xfffefffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000200; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000200; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000200; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000200; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffffff1; + *((int *)&__m256_op0[6]) = 0xfffffff1; + *((int *)&__m256_op0[5]) = 0xfffffff1; + *((int *)&__m256_op0[4]) = 0xfffffff1; + *((int *)&__m256_op0[3]) = 0xfffffff1; + *((int *)&__m256_op0[2]) = 0xfffffff1; + *((int *)&__m256_op0[1]) = 0xfffffff1; + *((int *)&__m256_op0[0]) = 0xfffffff1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x43ef8787; + *((int *)&__m256_op0[4]) = 0x8000ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x43ef8787; + *((int *)&__m256_op0[0]) = 0x8000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000001df00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000001df00000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0x00030005; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0x00030005; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7ff80000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x7ff80000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x7ff80000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x7ff80000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000002; + *((int *)&__m256_op0[6]) = 0x00000002; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000002; + *((int *)&__m256_op0[2]) = 0x00000002; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7ff00000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x7ff00000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x7ff00000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x7ff00000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00016e00; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00016e00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_wu_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000004000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftint_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x38a966b301f41ffd; + *((unsigned long *)&__m256d_op0[2]) = 0x5f6108ee13ff0000; + *((unsigned long *)&__m256d_op0[1]) = 0xf41a56e8d10201f6; + *((unsigned long *)&__m256d_op0[0]) = 0x683b8b34f1020001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000003868686a20; + *((unsigned long *)&__m256d_op0[2]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256d_op0[1]) = 0x0000003868686a20; + *((unsigned long *)&__m256d_op0[0]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256d_op0[2]) = 0xc2c2c2c2c2c29cc0; + *((unsigned long *)&__m256d_op0[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256d_op0[0]) = 0xc2c2c2c2c2c29cc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000007a00f8; + *((unsigned long *)&__m256d_op0[2]) = 0x00ff00ff01640092; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000007a00f8; + *((unsigned long *)&__m256d_op0[0]) = 0x00ff00ff01640092; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000007fff80fe; + *((unsigned long *)&__m256d_op0[2]) = 0x000000007fff80fe; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff80007ffe; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ff007fff80fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000781; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000408080c111414; + *((unsigned long *)&__m256d_op0[2]) = 0x000408080c111414; + *((unsigned long *)&__m256d_op0[1]) = 0x000408080c111414; + *((unsigned long *)&__m256d_op0[0]) = 0x000408080c111414; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000008e8c000; + *((unsigned long *)&__m256d_op0[2]) = 0x000000000fffc000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000008e8c000; + *((unsigned long *)&__m256d_op0[0]) = 0x000000000fffc000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrz_lu_d (__m256d_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftintl.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftintl.c new file mode 100644 index 00000000000..b0fdf7e0b7d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvftintl.c @@ -0,0 +1,1580 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0xc58a0a0a; + *((int *)&__m256_op0[6]) = 0x07070706; + *((int *)&__m256_op0[5]) = 0x006b60e4; + *((int *)&__m256_op0[4]) = 0x180b0023; + *((int *)&__m256_op0[3]) = 0x1b39153f; + *((int *)&__m256_op0[2]) = 0x334b966a; + *((int *)&__m256_op0[1]) = 0xf1d75d79; + *((int *)&__m256_op0[0]) = 0xefcac002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x40404040; + *((int *)&__m256_op0[6]) = 0x40404040; + *((int *)&__m256_op0[5]) = 0x40404040; + *((int *)&__m256_op0[4]) = 0x40404040; + *((int *)&__m256_op0[3]) = 0x40404040; + *((int *)&__m256_op0[2]) = 0x40404040; + *((int *)&__m256_op0[1]) = 0x40404040; + *((int *)&__m256_op0[0]) = 0x40404040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000003; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00080000; + *((int *)&__m256_op0[4]) = 0x00000010; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00080000; + *((int *)&__m256_op0[0]) = 0x00000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x40f69fe6; + *((int *)&__m256_op0[6]) = 0x3c26f4f5; + *((int *)&__m256_op0[5]) = 0x7ff7ffff; + *((int *)&__m256_op0[4]) = 0x00000007; + *((int *)&__m256_op0[3]) = 0x40f69fe6; + *((int *)&__m256_op0[2]) = 0x3c26f4f5; + *((int *)&__m256_op0[1]) = 0x7ff7ffff; + *((int *)&__m256_op0[0]) = 0x00000007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00060000; + *((int *)&__m256_op0[6]) = 0x00040000; + *((int *)&__m256_op0[5]) = 0x00020000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00060000; + *((int *)&__m256_op0[2]) = 0x00040000; + *((int *)&__m256_op0[1]) = 0x00020000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffff0000; + *((int *)&__m256_op0[4]) = 0xffff0000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffff0000; + *((int *)&__m256_op0[0]) = 0xffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x55550000; + *((int *)&__m256_op0[6]) = 0x55550000; + *((int *)&__m256_op0[5]) = 0x55550000; + *((int *)&__m256_op0[4]) = 0x55550000; + *((int *)&__m256_op0[3]) = 0x55550000; + *((int *)&__m256_op0[2]) = 0x55550000; + *((int *)&__m256_op0[1]) = 0x55550000; + *((int *)&__m256_op0[0]) = 0x55550000; + *((unsigned long *)&__m256i_result[3]) = 0x00000d5000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000d5000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000d5000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000d5000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x007f8080; + *((int *)&__m256_op0[6]) = 0x007f007f; + *((int *)&__m256_op0[5]) = 0x007f8080; + *((int *)&__m256_op0[4]) = 0x007f007f; + *((int *)&__m256_op0[3]) = 0x007f8080; + *((int *)&__m256_op0[2]) = 0x007f007f; + *((int *)&__m256_op0[1]) = 0x007f8080; + *((int *)&__m256_op0[0]) = 0x007f007f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x08e8c000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0fffc000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x08e8c000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0fffc000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftinth_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000002; + *((int *)&__m256_op0[4]) = 0x00000008; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000002; + *((int *)&__m256_op0[0]) = 0x00000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7f1d7f7f; + *((int *)&__m256_op0[6]) = 0x7f1d7f3b; + *((int *)&__m256_op0[5]) = 0x02020102; + *((int *)&__m256_op0[4]) = 0x02020102; + *((int *)&__m256_op0[3]) = 0x7f1d7f7f; + *((int *)&__m256_op0[2]) = 0x7f1d7f3b; + *((int *)&__m256_op0[1]) = 0x02020102; + *((int *)&__m256_op0[0]) = 0x02020102; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrnel_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000102; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x39ffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x39ffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x80000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x80000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x80000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x80000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x000055ff; + *((int *)&__m256_op0[6]) = 0x01f90ab5; + *((int *)&__m256_op0[5]) = 0xaa95eaff; + *((int *)&__m256_op0[4]) = 0xfec6e01f; + *((int *)&__m256_op0[3]) = 0x000055ff; + *((int *)&__m256_op0[2]) = 0x01f90ab5; + *((int *)&__m256_op0[1]) = 0xaa95eaff; + *((int *)&__m256_op0[0]) = 0xfec6e01f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffeb683; + *((int *)&__m256_op0[6]) = 0x9ffffd80; + *((int *)&__m256_op0[5]) = 0xfffe97c0; + *((int *)&__m256_op0[4]) = 0x20010001; + *((int *)&__m256_op0[3]) = 0xfffeb683; + *((int *)&__m256_op0[2]) = 0x9ffffd80; + *((int *)&__m256_op0[1]) = 0xfffe97c0; + *((int *)&__m256_op0[0]) = 0x20010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvftintrpl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x000000ff; + *((int *)&__m256_op0[6]) = 0x000000f8; + *((int *)&__m256_op0[5]) = 0xbc8ff0ff; + *((int *)&__m256_op0[4]) = 0xffffcff8; + *((int *)&__m256_op0[3]) = 0x000000ff; + *((int *)&__m256_op0[2]) = 0x000000f8; + *((int *)&__m256_op0[1]) = 0xbc8ff0ff; + *((int *)&__m256_op0[0]) = 0xffffcff8; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x00000001; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x00000001; + *((int *)&__m256_op0[0]) = 0x00000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7fe37fe3; + *((int *)&__m256_op0[6]) = 0x001d001d; + *((int *)&__m256_op0[5]) = 0x7fff7fff; + *((int *)&__m256_op0[4]) = 0x7fff0000; + *((int *)&__m256_op0[3]) = 0x7fe37fe3; + *((int *)&__m256_op0[2]) = 0x001d001d; + *((int *)&__m256_op0[1]) = 0x7fff7fff; + *((int *)&__m256_op0[0]) = 0x7fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000010; + *((int *)&__m256_op0[6]) = 0x00000010; + *((int *)&__m256_op0[5]) = 0x00000010; + *((int *)&__m256_op0[4]) = 0x00000010; + *((int *)&__m256_op0[3]) = 0x00000010; + *((int *)&__m256_op0[2]) = 0x00000010; + *((int *)&__m256_op0[1]) = 0x00000010; + *((int *)&__m256_op0[0]) = 0x00000010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrml_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x8b141414; + *((int *)&__m256_op0[4]) = 0x0e0e0e0e; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x36722a7e; + *((int *)&__m256_op0[0]) = 0x66972cd6; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x6a9e3f9a; + *((int *)&__m256_op0[4]) = 0x603a2001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x6a9e3f9a; + *((int *)&__m256_op0[0]) = 0x603a2001; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000fafe; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000fafe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzl_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00fffefe; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xfffffffc; + *((int *)&__m256_op0[4]) = 0x5556aaa8; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xfffffffc; + *((int *)&__m256_op0[0]) = 0x5556aaa8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffcc80; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x7dfdff4b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x002a5429; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x002a5429; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x77777777; + *((int *)&__m256_op0[6]) = 0xf7777777; + *((int *)&__m256_op0[5]) = 0xf7777777; + *((int *)&__m256_op0[4]) = 0x77777777; + *((int *)&__m256_op0[3]) = 0x77777777; + *((int *)&__m256_op0[2]) = 0xf7777777; + *((int *)&__m256_op0[1]) = 0xf7777777; + *((int *)&__m256_op0[0]) = 0x77777777; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000009; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000009; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000009; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x010c7fbc; + *((int *)&__m256_op0[6]) = 0x7e1c7e1c; + *((int *)&__m256_op0[5]) = 0xfe000000; + *((int *)&__m256_op0[4]) = 0x00000024; + *((int *)&__m256_op0[3]) = 0x010c7fbc; + *((int *)&__m256_op0[2]) = 0x7e1c7e1c; + *((int *)&__m256_op0[1]) = 0xfe000000; + *((int *)&__m256_op0[0]) = 0x00000024; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffffe20; + *((int *)&__m256_op0[6]) = 0x001dfe1f; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xfffffe20; + *((int *)&__m256_op0[2]) = 0x001dfe1f; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffe1; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffe1; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffe1; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffe1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000040; + *((int *)&__m256_op0[6]) = 0x00000020; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000040; + *((int *)&__m256_op0[2]) = 0x00000020; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrneh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xfefefeff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xff295329; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xfefefeff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xff295329; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xff00ffff; + *((int *)&__m256_op0[6]) = 0xff00ffff; + *((int *)&__m256_op0[5]) = 0xff00ffff; + *((int *)&__m256_op0[4]) = 0xff00ffff; + *((int *)&__m256_op0[3]) = 0xff00ffff; + *((int *)&__m256_op0[2]) = 0xff00ffff; + *((int *)&__m256_op0[1]) = 0xff00ffff; + *((int *)&__m256_op0[0]) = 0xff00ffff; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7fefffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x7fefffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x02020102; + *((int *)&__m256_op0[6]) = 0x02020102; + *((int *)&__m256_op0[5]) = 0x02020102; + *((int *)&__m256_op0[4]) = 0x02020102; + *((int *)&__m256_op0[3]) = 0x02020102; + *((int *)&__m256_op0[2]) = 0x02020102; + *((int *)&__m256_op0[1]) = 0x02020102; + *((int *)&__m256_op0[0]) = 0x02020102; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvftintrph_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x515f93f0; + *((int *)&__m256_op0[6]) = 0x23600fb9; + *((int *)&__m256_op0[5]) = 0x948b39e0; + *((int *)&__m256_op0[4]) = 0xb7405f6f; + *((int *)&__m256_op0[3]) = 0x48ef0878; + *((int *)&__m256_op0[2]) = 0x00007c83; + *((int *)&__m256_op0[1]) = 0x78af877c; + *((int *)&__m256_op0[0]) = 0x7d7f86f9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000df93f0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000077843; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x17171717; + *((int *)&__m256_op0[6]) = 0x17171717; + *((int *)&__m256_op0[5]) = 0x000607f7; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x17171717; + *((int *)&__m256_op0[2]) = 0x17171717; + *((int *)&__m256_op0[1]) = 0x000607f7; + *((int *)&__m256_op0[0]) = 0x00000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00ff00ff; + *((int *)&__m256_op0[6]) = 0x00ff00ff; + *((int *)&__m256_op0[5]) = 0x00ff00ff; + *((int *)&__m256_op0[4]) = 0x017e01fe; + *((int *)&__m256_op0[3]) = 0x017e00ff; + *((int *)&__m256_op0[2]) = 0x017e00ff; + *((int *)&__m256_op0[1]) = 0x00ff00ff; + *((int *)&__m256_op0[0]) = 0x017e01fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfefefefe; + *((int *)&__m256_op0[6]) = 0xfefefefe; + *((int *)&__m256_op0[5]) = 0xfe8bfe0e; + *((int *)&__m256_op0[4]) = 0xfe8bfe12; + *((int *)&__m256_op0[3]) = 0xfefefefe; + *((int *)&__m256_op0[2]) = 0xfefefefe; + *((int *)&__m256_op0[1]) = 0xfe8bfe0e; + *((int *)&__m256_op0[0]) = 0xfe8bfe12; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x71717171; + *((int *)&__m256_op0[6]) = 0x71010101; + *((int *)&__m256_op0[5]) = 0x8e8e8e8e; + *((int *)&__m256_op0[4]) = 0x8f00ffff; + *((int *)&__m256_op0[3]) = 0x71717171; + *((int *)&__m256_op0[2]) = 0x71010101; + *((int *)&__m256_op0[1]) = 0x8e8e8e8e; + *((int *)&__m256_op0[0]) = 0x8f00ffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00060000; + *((int *)&__m256_op0[6]) = 0x00040000; + *((int *)&__m256_op0[5]) = 0x00020000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00060000; + *((int *)&__m256_op0[2]) = 0x00040000; + *((int *)&__m256_op0[1]) = 0x00020000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xff1cff1c; + *((int *)&__m256_op0[6]) = 0xff1cff1c; + *((int *)&__m256_op0[5]) = 0xff1cff1c; + *((int *)&__m256_op0[4]) = 0xff1cff1c; + *((int *)&__m256_op0[3]) = 0xff1cff1c; + *((int *)&__m256_op0[2]) = 0xff1cff1c; + *((int *)&__m256_op0[1]) = 0xff1cff1c; + *((int *)&__m256_op0[0]) = 0xff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x000fffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x000fffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrmh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00002262; + *((int *)&__m256_op0[6]) = 0x00005111; + *((int *)&__m256_op0[5]) = 0x0000165e; + *((int *)&__m256_op0[4]) = 0x0000480d; + *((int *)&__m256_op0[3]) = 0x00002262; + *((int *)&__m256_op0[2]) = 0x00005111; + *((int *)&__m256_op0[1]) = 0x0000165e; + *((int *)&__m256_op0[0]) = 0x0000480d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00040004; + *((int *)&__m256_op0[6]) = 0x00040004; + *((int *)&__m256_op0[5]) = 0x00040005; + *((int *)&__m256_op0[4]) = 0x00040005; + *((int *)&__m256_op0[3]) = 0x00040004; + *((int *)&__m256_op0[2]) = 0x00040004; + *((int *)&__m256_op0[1]) = 0x00040005; + *((int *)&__m256_op0[0]) = 0x00040005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvftintrzh_l_s (__m256_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:40:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138629 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp841038vqx; Tue, 12 Sep 2023 21:09:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeb5H6z7pdgB1t1r3NxV7ciWvWvVAB2ycMr5q+nAaZFTw7jr20s7b4JUcn91ptYiU8dCAi X-Received: by 2002:a05:651c:21b:b0:2b9:ba02:436c with SMTP id y27-20020a05651c021b00b002b9ba02436cmr1254281ljn.28.1694578173450; Tue, 12 Sep 2023 21:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694578173; cv=none; d=google.com; s=arc-20160816; b=LHKZXc00/0tTl9ICPU0qppeuhKSkAJPCKHNpCc71Bbf58w1Z6jDgGfvXY96Ebpiy1P k7ZBHfH/SnNLW4sjQL9rRAAkf2Bs+VLUPSsEipHdy0k2EI/edfCUFlVZ9/czeTeJhIxl 976qIsyB4R3GhgmCXea6asAJ6BhBpVsm8ggiHVe8PdDk0qY/5jde3lyAurHC+3rm8w7c oAy/yjYMXL6+PV4mVEN73gIj4kvbZqApLntHzt/QjoZm5vxxwo83/CRcPxoTbS2lbBSJ HrP49BUqjyDjEtJD2SxCDHDAmUSktnCISmucxOrAn9EFFD3P8DINbvajNxA7E2BZfPHa lysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=vKOwFpa7oNEbbDg6NJcu9bMSHVmSOnpwWWZELK/Ltbg=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=DzWBZONsEOSmHfcZxpL85XNq5MIPvNShvW46Nwk7x1GkUupn5WNEvpfdcbuLNqET2f +vAkScpr6ajqEDj7Z62Drb8uLj1AeXe6ZKeeEipHKSgRE+BWrm8HK4/yiOxdJKpzS8Iv I/tfyN7PNufUNntHGmnD7EKuavd1MHCzkfHkxZZsLvz6B8AsB4j+tE+cfXoW/vom9jSo GFIlpJ5zACKRoH8GK62AmJQHQ0lMRbRyA2zRtqtnF+WyOsOwrEfWwIT3VHdbUHchb08/ XBTE/gA5B8M2XqjTCwNxJIcRL6HWSs+Y92AFqLxapwhjJQIk4PH9OocW4NBO4fXu0b4j oPcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fx18-20020a170906b75200b00993a37afc87si9858067ejb.919.2023.09.12.21.09.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 400843838A40 for ; Wed, 13 Sep 2023 03:45:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id DEBBC3836F39 for ; Wed, 13 Sep 2023 03:40:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DEBBC3836F39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxJvE9LwFlfjEmAA--.8780S3; Wed, 13 Sep 2023 11:40:45 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S10; Wed, 13 Sep 2023 11:40:44 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 16/22] LoongArch: Add tests for ASX vector comparison and selection instruction. Date: Wed, 13 Sep 2023 11:40:23 +0800 Message-Id: <20230913034026.7751-7-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S10 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBSAAAsa X-Coremail-Antispam: 1Uk129KBj93XoW7GFy3WF47AFyDtr13Cr1xp5X_XFy7Cr47pr 17Jr1fG3yI9ayUKryUJFyaqrWUAr4qyasrJF17K3sru3WkKFn0qF17A3yDAw1DJFyjvF13 tFZ8Jr40qr45GwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj6I8E 87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjc xG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVF xhVjvjDU0xZFpf9x07b0c_-UUUUU= X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776894002684667446 X-GMAIL-MSGID: 1776894002684667446 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvseq.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvseqi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsle-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsle-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslei-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslei-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslt-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslt-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslti-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvslti-2.c: New test. --- .../loongarch/vector/lasx/lasx-xvseq.c | 650 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvseqi.c | 449 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsle-1.c | 575 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvsle-2.c | 590 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvslei-1.c | 515 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvslei-2.c | 438 ++++++++++++ .../loongarch/vector/lasx/lasx-xvslt-1.c | 455 ++++++++++++ .../loongarch/vector/lasx/lasx-xvslt-2.c | 620 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvslti-1.c | 548 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvslti-2.c | 416 +++++++++++ 10 files changed, 5256 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseq.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseqi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-2.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseq.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseq.c new file mode 100644 index 00000000000..2a42386ced5 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseq.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100020001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0xffff000000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000095120000; + *((unsigned long *)&__m256i_op1[1]) = 0xc9da000063f50000; + *((unsigned long *)&__m256i_op1[0]) = 0xc7387fff6bbfffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f0000007f000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7f0000007f000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_op1[2]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_op1[1]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_op1[0]) = 0x1555156a1555156a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6100000800060005; + *((unsigned long *)&__m256i_op0[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5ff00007fff9fff3; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0209fefb08140000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_result[3]) = 0x00ffff00ff000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcf800fffcf800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op0[0]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff00fffffff0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00fffffff0; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op0[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op0[1]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op0[0]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000005be55bd2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffcc8000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007dfdff4b; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_result[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ff00ff00; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ffffff00; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ff00ff00; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4ffc3f783fc040c0; + *((unsigned long *)&__m256i_op0[2]) = 0x3fc03f803fc040c0; + *((unsigned long *)&__m256i_op0[1]) = 0x4ffc3f783fc040c0; + *((unsigned long *)&__m256i_op0[0]) = 0x3fc03f803fc040c0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffee0000004c0000; + *((unsigned long *)&__m256i_op0[2]) = 0xff050000ff3c0000; + *((unsigned long *)&__m256i_op0[1]) = 0x00f9000000780000; + *((unsigned long *)&__m256i_op0[0]) = 0xffa80000ff310000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256i_op1[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256i_op1[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256i_op1[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[2]) = 0xff000000ff000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ff000000ff00; + *((unsigned long *)&__m256i_result[0]) = 0xff000000ff000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op1[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op1[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000077fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x003f60041f636003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000005500000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0001005500020000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000005500000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0001005500020000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffefff7f00100080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffefff7f00100080; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff01fb0408; + *((unsigned long *)&__m256i_op1[2]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff01fb0408; + *((unsigned long *)&__m256i_op1[0]) = 0xf2b180c9fc1fefdc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffff00ffffffff; + __m256i_out = __lasx_xvseq_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001fffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x001fffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0080000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000501ffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000701ffffce; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000501ffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000701ffffce; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000260a378; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000d02317; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000260a378; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000d02317; + *((unsigned long *)&__m256i_op1[3]) = 0x003f020001400200; + *((unsigned long *)&__m256i_op1[2]) = 0x003f00ff003f00c4; + *((unsigned long *)&__m256i_op1[1]) = 0x003f020001400200; + *((unsigned long *)&__m256i_op1[0]) = 0x003f00ff003f00c4; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseq_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseqi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseqi.c new file mode 100644 index 00000000000..5478d19c14b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvseqi.c @@ -0,0 +1,449 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffdfe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffdfe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_d (__m256i_op0, -9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x009200f200840080; + *((unsigned long *)&__m256i_op0[2]) = 0x009200f200840080; + *((unsigned long *)&__m256i_op0[1]) = 0x00b200b300800080; + *((unsigned long *)&__m256i_op0[0]) = 0x00b200b300800080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, 14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_d (__m256i_op0, 14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_d (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x00197d3200197d56; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x00197d3200197d56; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, -10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_h (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000bdfef907bc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000bdfef907bc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_d (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_b (__m256i_op0, -15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_d (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_d (__m256i_op0, 14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x800fffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000000c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000000c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvseqi_w (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-1.c new file mode 100644 index 00000000000..ed752df0096 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-1.c @@ -0,0 +1,575 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000460086; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000007f0079; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000f30028; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000df00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xbf28b0686066be60; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffff00ffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff00ff00; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ffffff00ff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00ffffffffffffff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1b1a191c1b1a19; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op0[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op0[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op0[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff00ff00ffff00; + *((unsigned long *)&__m256i_result[2]) = 0xff000000ff00ff00; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffff00ffff; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000ff00ff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xff00ffffff00ffff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff0000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffbfffa0ffffff80; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff0000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffbfffa0ffffff80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xbfffa004fffd8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xbfffa004fffd8000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ffff0000ff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ffff0000ff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op0[2]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0a0a000000000a0a; + *((unsigned long *)&__m256i_op0[0]) = 0x0a0a0a0a00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffee; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffee; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op1[3]) = 0xffdfff80ffdfff80; + *((unsigned long *)&__m256i_op1[2]) = 0xffdfff80ffdfff80; + *((unsigned long *)&__m256i_op1[1]) = 0xffdfff80ffdfff80; + *((unsigned long *)&__m256i_op1[0]) = 0xffdfff80ffdfff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff00; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff00ffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xff00ffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00ffffffffffffff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff010100000001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff010100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffffffffffff; + __m256i_out = __lasx_xvsle_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[2]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[1]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op0[0]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[3]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[2]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[1]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_op1[0]) = 0x0a0a0a0a7f0a0a0a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_op0[2]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_op0[1]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_op0[0]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2aaaaa85aaaaaa85; + *((unsigned long *)&__m256i_op1[2]) = 0x2aaa48f4aaaa48f4; + *((unsigned long *)&__m256i_op1[1]) = 0x2aaaaa85aaaaaa85; + *((unsigned long *)&__m256i_op1[0]) = 0x2aaa48f4aaaa48f4; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvsle_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000900000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000900000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000083f95466; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010100005400; + *((unsigned long *)&__m256i_op1[3]) = 0x007f00f8ff7fff80; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fff6a9d8; + *((unsigned long *)&__m256i_op1[1]) = 0x007f00f8ff7fff80; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fff6a9d8; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fe0100000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fe0100000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x00197d3200197d56; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x00197d3200197d56; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fff000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ffe0001fffe0001; + *((unsigned long *)&__m256i_op0[2]) = 0x7ffe0001fffeffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000fdfdfe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00f7000000f70007; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00f7000000f70007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff01fffe00000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[1]) = 0xff01fffe00000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[3]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op1[2]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op1[1]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op1[0]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000002d; + *((unsigned long *)&__m256i_op0[2]) = 0xc02dc02dc02dc02d; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000002d; + *((unsigned long *)&__m256i_op0[0]) = 0xc02dc02dc02dc02d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-2.c new file mode 100644 index 00000000000..bc98b41aff9 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsle-2.c @@ -0,0 +1,590 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0010000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op1[2]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op1[0]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000001ffe2000; + *((unsigned long *)&__m256i_op0[2]) = 0x001fe020001fe020; + *((unsigned long *)&__m256i_op0[1]) = 0x000000001ffe2000; + *((unsigned long *)&__m256i_op0[0]) = 0x001fe020001fe020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvsle_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000017e; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdf00000052a00000; + *((unsigned long *)&__m256i_op0[2]) = 0x5b7f00ff5b7f00ff; + *((unsigned long *)&__m256i_op0[1]) = 0xdf00000052a00000; + *((unsigned long *)&__m256i_op0[0]) = 0x5b7f00ff5b7f00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8011ffae800c000c; + *((unsigned long *)&__m256i_op0[2]) = 0x00baff050083ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x80b900b980380038; + *((unsigned long *)&__m256i_op0[0]) = 0x0017ffa8008eff31; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[3]) = 0xffff0000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff0008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff0008; + *((unsigned long *)&__m256i_op1[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[2]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op1[0]) = 0x0808080808080808; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000003ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000003ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfa15fa15fa15fa14; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x05ea05ea05ea05ec; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000017e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000feb60000b7d0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000feb60000c7eb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000feb60000b7d0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000feb60000c7eb; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff010ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff010ff0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb683007ffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c0df5b41cf; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb683007ffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c0df5b41cf; + *((unsigned long *)&__m256i_op1[3]) = 0x0001497c98ea4fca; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0001497c98ea4fca; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000401000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010102; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010201010204; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010102; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010102; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00020421d7d41124; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00020421d7d41124; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000180007f7f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffafaf80000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000180007f7f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffafaf80000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op1[2]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op1[1]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_op1[0]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op0[2]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff6361; + *((unsigned long *)&__m256i_op0[0]) = 0x4d0a902890b800dc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x94d7fb5200000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[2]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[0]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsle_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-1.c new file mode 100644 index 00000000000..06717802c11 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-1.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_b (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000101ff01; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op0[2]) = 0x00010013000100fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000000010000; + *((unsigned long *)&__m256i_op0[0]) = 0x00010013000100fb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_b (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_b (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_b (__m256i_op0, -7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_b (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_h (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x014200c200c200ae; + *((unsigned long *)&__m256i_op0[2]) = 0x014200c200c200ae; + *((unsigned long *)&__m256i_op0[1]) = 0x014200c200c200ae; + *((unsigned long *)&__m256i_op0[0]) = 0x014200c200c200ae; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000c9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_h (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_h (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffff8900000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff8900000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff000000000000; + __m256i_out = __lasx_xvslei_h (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000460086; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000007f0079; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000f30028; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000df00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_w (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfc2f3183ef7ffff7; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_w (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_w (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_w (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_w (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_w (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_w (__m256i_op0, -12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_w (__m256i_op0, -5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_w (__m256i_op0, 8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_w (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100800000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_w (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1828f0e09bad7249; + *((unsigned long *)&__m256i_op0[2]) = 0x07ffc1b723953cec; + *((unsigned long *)&__m256i_op0[1]) = 0x61f2e9b333aab104; + *((unsigned long *)&__m256i_op0[0]) = 0x6bf742aa0d7856a0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_d (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_d (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_d (__m256i_op0, -15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op0[2]) = 0xc6c6c6c68787878a; + *((unsigned long *)&__m256i_op0[1]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op0[0]) = 0x8787878a00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_d (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_d (__m256i_op0, 1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_d (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_d (__m256i_op0, 1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_d (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_d (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_d (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-2.c new file mode 100644 index 00000000000..093d5640ea2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslei-2.c @@ -0,0 +1,438 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffff00; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f7f7f80; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x04e8296f3c611818; + *((unsigned long *)&__m256i_op0[2]) = 0x032eafee29010000; + *((unsigned long *)&__m256i_op0[1]) = 0x04e8296f3c611818; + *((unsigned long *)&__m256i_op0[0]) = 0x032eafee29010000; + *((unsigned long *)&__m256i_result[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000ffffff; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000ffffff; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000f788f788; + *((unsigned long *)&__m256i_result[3]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslei_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00217f19ffde80e6; + *((unsigned long *)&__m256i_op0[2]) = 0x00037f94fffc806b; + *((unsigned long *)&__m256i_op0[1]) = 0x00217f19ffde80e6; + *((unsigned long *)&__m256i_op0[0]) = 0x00037f94fffc806b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff000000000000; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op0[2]) = 0x132feea900000000; + *((unsigned long *)&__m256i_op0[1]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op0[0]) = 0x132feea900000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x1e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007f807f80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f807f80; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_hu (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_op0[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000003f7e3f; + *((unsigned long *)&__m256i_op0[0]) = 0xff874dc687870000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op0[2]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_op0[1]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op0[0]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000007ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000007ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x03802fc000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x03802fc000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_wu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_du (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_du (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_du (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslei_du (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslei_du (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-1.c new file mode 100644 index 00000000000..ca1f5e94f72 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-1.c @@ -0,0 +1,455 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ff000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ff000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000002000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000002000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff0000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff0000ffffffff; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000860601934; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000860601934; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000800200028; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op0[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op0[1]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op0[0]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000003fffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000003fffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffffffff; + __m256i_out = __lasx_xvslt_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000022222221; + *((unsigned long *)&__m256i_op0[2]) = 0x3dddddddfbbb3bbc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000022222221; + *((unsigned long *)&__m256i_op0[0]) = 0x3dddddddfbbb3bbc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000800000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe05f8102; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000f000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000f000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xff3eff3eff3eff3e; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000500000005; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xf7f8f7f8f7f8f7f8; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xf7f8f7f8f7f8f7f8; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0df9f8e; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0df9f8e; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffe0df9f8e; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffe0df9f8e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-2.c new file mode 100644 index 00000000000..6864f5eb879 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslt-2.c @@ -0,0 +1,620 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x1828f0e09bad7249; + *((unsigned long *)&__m256i_op0[2]) = 0x07ffc1b723953cec; + *((unsigned long *)&__m256i_op0[1]) = 0x61f2e9b333aab104; + *((unsigned long *)&__m256i_op0[0]) = 0x6bf742aa0d7856a0; + *((unsigned long *)&__m256i_op1[3]) = 0x0d41c9a7bdd239a7; + *((unsigned long *)&__m256i_op1[2]) = 0x0b025d0ef8fdf987; + *((unsigned long *)&__m256i_op1[1]) = 0x002944f92da5a708; + *((unsigned long *)&__m256i_op1[0]) = 0x038cf4ea999922ef; + *((unsigned long *)&__m256i_result[3]) = 0x00ff0000ffff00ff; + *((unsigned long *)&__m256i_result[2]) = 0xff000000ffffff00; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffffffff00ff; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000017000000080; + *((unsigned long *)&__m256i_op0[2]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op0[1]) = 0x0000017000000080; + *((unsigned long *)&__m256i_op0[0]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256i_op1[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffff8d9ffa7103d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdb801b6d0962003f; + *((unsigned long *)&__m256i_op0[2]) = 0xdb8a3109fe0f0024; + *((unsigned long *)&__m256i_op0[1]) = 0x9a7f997fff01ffff; + *((unsigned long *)&__m256i_op0[0]) = 0xbe632a4f1c3c5653; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00ff0000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000500000005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202031; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020202031; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[3]) = 0x5252525252525252; + *((unsigned long *)&__m256i_op1[2]) = 0x5252525252525252; + *((unsigned long *)&__m256i_op1[1]) = 0x5252525252525252; + *((unsigned long *)&__m256i_op1[0]) = 0x5252525252525252; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000040b200002fd4; + *((unsigned long *)&__m256i_op0[2]) = 0x00007fff0000739c; + *((unsigned long *)&__m256i_op0[1]) = 0x000040b200002fd4; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fff0000739c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffe0000000; + *((unsigned long *)&__m256i_op1[3]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffbfffc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvslt_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000200000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000004000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000200000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvslt_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbc74c3d108e05422; + *((unsigned long *)&__m256i_op0[2]) = 0xbc1e3e6a5cace67c; + *((unsigned long *)&__m256i_op0[1]) = 0xbc74c3d108e0544a; + *((unsigned long *)&__m256i_op0[0]) = 0xbc18e696a86565f4; + *((unsigned long *)&__m256i_op1[3]) = 0xbc74c3d108e05422; + *((unsigned long *)&__m256i_op1[2]) = 0xbc1e3e6a5cace67c; + *((unsigned long *)&__m256i_op1[1]) = 0xbc74c3d108e0544a; + *((unsigned long *)&__m256i_op1[0]) = 0xbc18e696a86565f4; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef87878000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef87878000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op1[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op1[0]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001400000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001400000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000017f00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00007f7f03030000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000401000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000401000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000401000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000401000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_op1[1]) = 0xffffc040ffffc09d; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fc00000428a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op0[2]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_op0[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op0[0]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_op1[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op1[2]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_op1[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op1[0]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100008000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100007fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100008000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100007fff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000003fbfc04; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001fdfe02; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000003fbfc04; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001fdfe02; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000000b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0010511c54440437; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0010511c54440437; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff00ffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslt_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-1.c new file mode 100644 index 00000000000..7dd2778a560 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-1.c @@ -0,0 +1,548 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_b (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_b (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_b (__m256i_op0, 0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_b (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_b (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_b (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_b (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_b (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op0[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op0[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_op0[0]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe05fc47b400; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffe06003fc000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe05fc47b400; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffe06003fc000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff02000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff02000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_h (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_h (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc58a0a0a07070706; + *((unsigned long *)&__m256i_op0[2]) = 0x006b60e4180b0023; + *((unsigned long *)&__m256i_op0[1]) = 0x1b39153f334b966a; + *((unsigned long *)&__m256i_op0[0]) = 0xf1d75d79efcac002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff90ff81; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff90ff81; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000045000d0005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000045000d0005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, 5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, 12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op0[2]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_op0[1]) = 0x0020000f0000000f; + *((unsigned long *)&__m256i_op0[0]) = 0x0010000f0000000f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, 14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000004efffe00; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000047000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000004efffe00; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000047000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslti_w (__m256i_op0, 2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, 9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, -8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_w (__m256i_op0, 11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_d (__m256i_op0, 5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_d (__m256i_op0, -5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_d (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x80000000001529c1; + *((unsigned long *)&__m256i_op0[2]) = 0x80007073cadc3779; + *((unsigned long *)&__m256i_op0[1]) = 0x80000000001529c1; + *((unsigned long *)&__m256i_op0[0]) = 0x80007073cadc3779; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_d (__m256i_op0, -13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_d (__m256i_op0, -2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_d (__m256i_op0, -15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_d (__m256i_op0, 4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_d (__m256i_op0, 10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op0[2]) = 0x000400030010000f; + *((unsigned long *)&__m256i_op0[1]) = 0x0004000f00100003; + *((unsigned long *)&__m256i_op0[0]) = 0x000400030010000f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_d (__m256i_op0, -14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-2.c new file mode 100644 index 00000000000..d93e4314e86 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvslti-2.c @@ -0,0 +1,416 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op0[2]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_op0[1]) = 0x0002000000020000; + *((unsigned long *)&__m256i_op0[0]) = 0x00220021004a007e; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xff00ff00ff00ff00; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00007ff000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00007ff000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x18); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_bu (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_hu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffffffffffff; + __m256i_out = __lasx_xvslti_hu (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_hu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_hu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffb3b4; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff5ffff4738; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffb3b4; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff5ffff4738; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_hu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000ffff; + __m256i_out = __lasx_xvslti_hu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_op0[2]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_op0[1]) = 0x009f00f8007e00f0; + *((unsigned long *)&__m256i_op0[0]) = 0x007f007f0081007f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op0[2]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000e0e0e0e0; + *((unsigned long *)&__m256i_op0[0]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvslti_wu (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007773; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000003373; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvslti_du (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:40:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp841414vqx; Tue, 12 Sep 2023 21:10:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+D0Y8K2KlZKd6cSj3ip6he/sryVmjjuiPfFlHkhpHZvQyVDbgmprGRudi63j8u8Nk1bY3 X-Received: by 2002:a05:6512:2015:b0:4fb:c028:d76f with SMTP id a21-20020a056512201500b004fbc028d76fmr859513lfb.35.1694578243410; Tue, 12 Sep 2023 21:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694578243; cv=none; d=google.com; s=arc-20160816; b=znW1myuNpUku3AeL7ZL3gaj607LgBN35UWrO71381JE5x1N2X16NlOeVx7q167duRA l+yhXZ5SFFbNZMbsQnjovW7Kpr4S3RVtxIayjwMyNA3bj7G2iUpfoczCpbjidMYMzbUA eHu2KXhSY7vpNFhq1MANJIStf2njfI1mpqAxswbeMmOdH2PlpdiiPooKCX6ETV53axN9 0CK3idwZe4cYCJCuokQqdSQZgJB7jXHd8HrtjYCi5FOPS6I2ZQP3drmK3ZRGf76WsHxU Sk/pX7oSvOqCCaVR3qiP8RoBmKnbAoDDY7NQjVFguV3CsZVuHubbOKS8Qj4LThTu90Z8 neAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=6sX+F18fkfAwqmuMLJIH0XvYnzYLs7dlSv6xhxJitgY=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=YctzlNR/c8dQEIa6gZLvTmJx3dSxRRoJXSfMQzTmHLP/3qqrK5mf29s5cPF95ByB0e HOQ/dLdaHIZdRlQMc3nA+iDUhFOy9OpkDX8uzP+Y9THp0pQY3Qb1pNus0TLcn+tGG6IA CXp3xWj6x2LCh26lHeCoIiM7LgOVSes9lgsxC3MuTX06uBMpbL4cYYrb6cw0IHrYBsLo n1bIOxIyz4o7cUwTqs+9XoEAVpqnQaQTsKUYAavSmj6FVBPMTiaPMxLpZF0Q5R6iDA7t TueQpjbHGkiEMMpsZpBpQSfJbDbng9ONtJcHrwqxEJe/BQ//m79CQX62aupyRr7LBHxE ftXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f18-20020a056402161200b0052a08f9e880si9888383edv.493.2023.09.12.21.10.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:10:43 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8807F38279A3 for ; Wed, 13 Sep 2023 03:45:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 9953F3853559 for ; Wed, 13 Sep 2023 03:40:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9953F3853559 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8DxfetALwFlgzEmAA--.6223S3; Wed, 13 Sep 2023 11:40:48 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S11; Wed, 13 Sep 2023 11:40:46 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 17/22] LoongArch: Add tests for ASX vector xvfnmadd/xvfrstp/xvfstpi/xvhsubw/ xvmsub/xvrotr/xvrotri/xvld/xvst instructions. Date: Wed, 13 Sep 2023 11:40:24 +0800 Message-Id: <20230913034026.7751-8-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S11 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBSgAAsY X-Coremail-Antispam: 1Uk129KBj9kXoW8Jr1UZr48CrW8uw1kJw18Gw4rp5X_XrWftF 1Upr1xJr1fG3yI9ayUtryUJFyaqr4UAr40yasrJF17G3sru3WkKFn0qF47A3yDAr1DJFWj vF13tFZ8Jr40qr45GwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF 7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4 CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj 6I8E87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrw ACjcxG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1V AY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAI cVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMI IF0xvEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBI daVFxhVjvjDU0xZFpf9x07b0c_-UUUUU= X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776894076107119760 X-GMAIL-MSGID: 1776894076107119760 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_d.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfrstp.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfrstpi.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvhsubw-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvhsubw-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvld.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvmsub.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvrotr.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvrotri.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvst.c: New test. --- .../loongarch/vector/lasx/lasx-xvfnmadd_d.c | 324 +++++++ .../loongarch/vector/lasx/lasx-xvfnmadd_s.c | 895 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvfrstp.c | 381 ++++++++ .../loongarch/vector/lasx/lasx-xvfrstpi.c | 350 +++++++ .../loongarch/vector/lasx/lasx-xvhsubw-1.c | 620 ++++++++++++ .../loongarch/vector/lasx/lasx-xvhsubw-2.c | 545 +++++++++++ .../loongarch/vector/lasx/lasx-xvld.c | 86 ++ .../loongarch/vector/lasx/lasx-xvmsub.c | 647 +++++++++++++ .../loongarch/vector/lasx/lasx-xvrotr.c | 530 +++++++++++ .../loongarch/vector/lasx/lasx-xvrotri.c | 394 ++++++++ .../loongarch/vector/lasx/lasx-xvst.c | 102 ++ 11 files changed, 4874 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_d.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstp.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstpi.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvld.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsub.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotr.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotri.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvst.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_d.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_d.c new file mode 100644 index 00000000000..d161c850c2c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_d.c @@ -0,0 +1,324 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0001010101010101; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000010100; + *((unsigned long *)&__m256d_op1[0]) = 0x0001000001000100; + *((unsigned long *)&__m256d_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[2]) = 0xffffffffbf7f7fff; + *((unsigned long *)&__m256d_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[0]) = 0xffffffffe651bfff; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffbf7f7fff; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffe651bfff; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x3ff73ff83ff73ff8; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x3ff73ff83ff73ff8; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x2020202020202020; + *((unsigned long *)&__m256d_op2[2]) = 0x2020202020206431; + *((unsigned long *)&__m256d_op2[1]) = 0x2020202020202020; + *((unsigned long *)&__m256d_op2[0]) = 0x2020202020206431; + *((unsigned long *)&__m256d_result[3]) = 0xa020202020202020; + *((unsigned long *)&__m256d_result[2]) = 0xa020202020206431; + *((unsigned long *)&__m256d_result[1]) = 0xa020202020202020; + *((unsigned long *)&__m256d_result[0]) = 0xa020202020206431; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256d_op0[2]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000f0f0f0f0; + *((unsigned long *)&__m256d_op0[0]) = 0xf0f0f0f0f0f0f0f0; + *((unsigned long *)&__m256d_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[3]) = 0x0001b0b1b4b5dd9f; + *((unsigned long *)&__m256d_op2[2]) = 0x7f7f7f5c8f374980; + *((unsigned long *)&__m256d_op2[1]) = 0x0001b0b1b4b5dd9f; + *((unsigned long *)&__m256d_op2[0]) = 0x7f7f7f5c8f374980; + *((unsigned long *)&__m256d_result[3]) = 0x8001b0b1b4b5dd9f; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0x8001b0b1b4b5dd9f; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256d_op0[2]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256d_op0[1]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256d_op0[0]) = 0xff21ff21ff21ff21; + *((unsigned long *)&__m256d_op1[3]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256d_op1[2]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256d_op1[1]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256d_op1[0]) = 0xff21c241ff21c241; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[1]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000007; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x1080108010060002; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x1080108010060002; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffe4ffffffe4; + *((unsigned long *)&__m256d_op2[3]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_op2[2]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_op2[1]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_op2[0]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_result[3]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_result[2]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_result[1]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256d_result[0]) = 0x7fff00017fff0000; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x1716151417161514; + *((unsigned long *)&__m256d_op0[2]) = 0x1716151417161514; + *((unsigned long *)&__m256d_op0[1]) = 0x1716151417161514; + *((unsigned long *)&__m256d_op0[0]) = 0x1716151417161514; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000002780; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000002780; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000002780; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000002780; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000002780; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000002780; + __m256d_out = __lasx_xvfnmadd_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0080200000802000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0080200000802000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0080200000802000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0080200000802000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffffffff; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256d_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256d_op0[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256d_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000483800; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000483800; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000483800; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffffba0c05; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000483800; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffffba0c05; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000005000000020; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000005000000020; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000005000000020; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000005000000020; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000005000000020; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000005000000020; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0000005000000020; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0000005000000020; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0010000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0008000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0010000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0008000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0010000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x0008000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0010000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x0008000000000000; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xff0d0d0d0d0d0d0d; + *((unsigned long *)&__m256d_op0[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256d_op0[1]) = 0xff0d0d0d0d0d0d0d; + *((unsigned long *)&__m256d_op0[0]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffff801000000010; + *((unsigned long *)&__m256d_op1[2]) = 0xffff800300000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffff801000000010; + *((unsigned long *)&__m256d_op1[0]) = 0xffff800300000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000; + *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffffffce; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffce; + *((unsigned long *)&__m256d_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000700000000; + *((unsigned long *)&__m256d_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000700000000; + *((unsigned long *)&__m256d_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_result[0]) = 0x8000000000000000; + __m256d_out = __lasx_xvfnmsub_d (__m256d_op0, __m256d_op1, __m256d_op2); + ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_s.c new file mode 100644 index 00000000000..c5e9576ead4 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfnmadd_s.c @@ -0,0 +1,895 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffff5f5c; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffff5f5c; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffff5f5c; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffff5f5c; + *((int *)&__m256_op2[7]) = 0x0000000f; + *((int *)&__m256_op2[6]) = 0x0000000f; + *((int *)&__m256_op2[5]) = 0xff00ff0f; + *((int *)&__m256_op2[4]) = 0xff005f0f; + *((int *)&__m256_op2[3]) = 0x0000000f; + *((int *)&__m256_op2[2]) = 0x0000000f; + *((int *)&__m256_op2[1]) = 0xff00ff0f; + *((int *)&__m256_op2[0]) = 0xff005f0f; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffff5f5c; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffff5f5c; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffff5f5c; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffff5f5c; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00010001; + *((int *)&__m256_op0[6]) = 0x00010000; + *((int *)&__m256_op0[5]) = 0x020afefb; + *((int *)&__m256_op0[4]) = 0x08140000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x0003fffc; + *((int *)&__m256_op0[0]) = 0x00060000; + *((int *)&__m256_op1[7]) = 0x80000000; + *((int *)&__m256_op1[6]) = 0x40000000; + *((int *)&__m256_op1[5]) = 0x40000000; + *((int *)&__m256_op1[4]) = 0x10000010; + *((int *)&__m256_op1[3]) = 0x80000000; + *((int *)&__m256_op1[2]) = 0x40000000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0x40000010; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x000000ff; + *((int *)&__m256_op2[4]) = 0x0001ffff; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x0000ffff; + *((int *)&__m256_op2[0]) = 0x00010000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80020000; + *((int *)&__m256_result[5]) = 0x828aff0b; + *((int *)&__m256_result[4]) = 0x8001ffff; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000002; + *((int *)&__m256_result[1]) = 0x8000ffff; + *((int *)&__m256_result[0]) = 0x800d0002; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x1f3d2101; + *((int *)&__m256_op0[6]) = 0x1f3d2101; + *((int *)&__m256_op0[5]) = 0x1f3d2101; + *((int *)&__m256_op0[4]) = 0xd07dbf01; + *((int *)&__m256_op0[3]) = 0x9f1fd080; + *((int *)&__m256_op0[2]) = 0x1f3d2101; + *((int *)&__m256_op0[1]) = 0x1f3d2101; + *((int *)&__m256_op0[0]) = 0xd07dbf01; + *((int *)&__m256_op1[7]) = 0x1d949d94; + *((int *)&__m256_op1[6]) = 0x9d949d95; + *((int *)&__m256_op1[5]) = 0x1d949d94; + *((int *)&__m256_op1[4]) = 0x9e1423d4; + *((int *)&__m256_op1[3]) = 0x1de9a03f; + *((int *)&__m256_op1[2]) = 0x3dd41d95; + *((int *)&__m256_op1[1]) = 0x1d949d94; + *((int *)&__m256_op1[0]) = 0x9e1423d4; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x8001b72e; + *((int *)&__m256_result[6]) = 0x0001b72e; + *((int *)&__m256_result[5]) = 0x8001b72e; + *((int *)&__m256_result[4]) = 0xaf12d5f0; + *((int *)&__m256_result[3]) = 0x00024763; + *((int *)&__m256_result[2]) = 0x9d9cb530; + *((int *)&__m256_result[1]) = 0x8001b72e; + *((int *)&__m256_result[0]) = 0xaf12d5f0; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x1f0fdf7f; + *((int *)&__m256_op0[6]) = 0x3e3b31d4; + *((int *)&__m256_op0[5]) = 0x7ff80000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x1f0fdf7f; + *((int *)&__m256_op0[2]) = 0x3e3b31d4; + *((int *)&__m256_op0[1]) = 0x7ff80000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x7ff80000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x7ff80000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x80000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x80000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x80000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x80000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x0000ffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x0000ffff; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000001; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000001; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000001; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000001; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000001; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000001; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000001; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000200; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000200; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000200; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000200; + *((int *)&__m256_op2[7]) = 0xffffffa0; + *((int *)&__m256_op2[6]) = 0x00000001; + *((int *)&__m256_op2[5]) = 0xffffffe0; + *((int *)&__m256_op2[4]) = 0x00000001; + *((int *)&__m256_op2[3]) = 0xffffffa0; + *((int *)&__m256_op2[2]) = 0x00000001; + *((int *)&__m256_op2[1]) = 0xffffffe0; + *((int *)&__m256_op2[0]) = 0x00000001; + *((int *)&__m256_result[7]) = 0xffffffa0; + *((int *)&__m256_result[6]) = 0x80000001; + *((int *)&__m256_result[5]) = 0xffffffe0; + *((int *)&__m256_result[4]) = 0x80000001; + *((int *)&__m256_result[3]) = 0xffffffa0; + *((int *)&__m256_result[2]) = 0x80000001; + *((int *)&__m256_result[1]) = 0xffffffe0; + *((int *)&__m256_result[0]) = 0x80000001; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x49810081; + *((int *)&__m256_op1[6]) = 0x4843ffe1; + *((int *)&__m256_op1[5]) = 0x49810081; + *((int *)&__m256_op1[4]) = 0x68410001; + *((int *)&__m256_op1[3]) = 0x49810081; + *((int *)&__m256_op1[2]) = 0x4843ffe1; + *((int *)&__m256_op1[1]) = 0x49810081; + *((int *)&__m256_op1[0]) = 0x68410001; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00009fff; + *((int *)&__m256_op0[6]) = 0x00002001; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x00009fff; + *((int *)&__m256_op0[2]) = 0x00002001; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0xfffeb683; + *((int *)&__m256_op1[6]) = 0x9ffffd80; + *((int *)&__m256_op1[5]) = 0xfffe97c0; + *((int *)&__m256_op1[4]) = 0x20010001; + *((int *)&__m256_op1[3]) = 0xfffeb683; + *((int *)&__m256_op1[2]) = 0x9ffffd80; + *((int *)&__m256_op1[1]) = 0xfffe97c0; + *((int *)&__m256_op1[0]) = 0x20010001; + *((int *)&__m256_op2[7]) = 0x00009fff; + *((int *)&__m256_op2[6]) = 0x00002001; + *((int *)&__m256_op2[5]) = 0x0000ffff; + *((int *)&__m256_op2[4]) = 0x0000ffff; + *((int *)&__m256_op2[3]) = 0x00009fff; + *((int *)&__m256_op2[2]) = 0x00002001; + *((int *)&__m256_op2[1]) = 0x0000ffff; + *((int *)&__m256_op2[0]) = 0x0000ffff; + *((int *)&__m256_result[7]) = 0xfffeb683; + *((int *)&__m256_result[6]) = 0x80002001; + *((int *)&__m256_result[5]) = 0xfffe97c0; + *((int *)&__m256_result[4]) = 0x8000ffff; + *((int *)&__m256_result[3]) = 0xfffeb683; + *((int *)&__m256_result[2]) = 0x80002001; + *((int *)&__m256_result[1]) = 0xfffe97c0; + *((int *)&__m256_result[0]) = 0x8000ffff; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x7fffffff; + *((int *)&__m256_op0[6]) = 0x80000000; + *((int *)&__m256_op0[5]) = 0x7fffffff; + *((int *)&__m256_op0[4]) = 0x80000000; + *((int *)&__m256_op0[3]) = 0x7fffffff; + *((int *)&__m256_op0[2]) = 0x80000000; + *((int *)&__m256_op0[1]) = 0x7fffffff; + *((int *)&__m256_op0[0]) = 0x80000000; + *((int *)&__m256_op1[7]) = 0xfd02fd02; + *((int *)&__m256_op1[6]) = 0xfd02fd02; + *((int *)&__m256_op1[5]) = 0xfd02fd02; + *((int *)&__m256_op1[4]) = 0xfd02fd02; + *((int *)&__m256_op1[3]) = 0xfd02fd02; + *((int *)&__m256_op1[2]) = 0xfd02fd02; + *((int *)&__m256_op1[1]) = 0xfd02fd02; + *((int *)&__m256_op1[0]) = 0xfd02fd02; + *((int *)&__m256_op2[7]) = 0xfd02fd02; + *((int *)&__m256_op2[6]) = 0xfd02fd02; + *((int *)&__m256_op2[5]) = 0xfd02fd02; + *((int *)&__m256_op2[4]) = 0xfd02fd02; + *((int *)&__m256_op2[3]) = 0xfd02fd02; + *((int *)&__m256_op2[2]) = 0xfd02fd02; + *((int *)&__m256_op2[1]) = 0xfd02fd02; + *((int *)&__m256_op2[0]) = 0xfd02fd02; + *((int *)&__m256_result[7]) = 0x7fffffff; + *((int *)&__m256_result[6]) = 0x7d02fd02; + *((int *)&__m256_result[5]) = 0x7fffffff; + *((int *)&__m256_result[4]) = 0x7d02fd02; + *((int *)&__m256_result[3]) = 0x7fffffff; + *((int *)&__m256_result[2]) = 0x7d02fd02; + *((int *)&__m256_result[1]) = 0x7fffffff; + *((int *)&__m256_result[0]) = 0x7d02fd02; + __m256_out = __lasx_xvfnmadd_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xbf7f7fff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xe651bfff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0xffffffff; + *((int *)&__m256_op2[2]) = 0xf328dfff; + *((int *)&__m256_op2[1]) = 0x6651bfff; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0x00000000; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0x00000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x07070707; + *((int *)&__m256_op0[5]) = 0x01020400; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00020100; + *((int *)&__m256_op0[1]) = 0x07030200; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffff80; + *((int *)&__m256_op1[6]) = 0xfefeff00; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x01000400; + *((int *)&__m256_op1[3]) = 0xffffff80; + *((int *)&__m256_op1[2]) = 0xfeff0000; + *((int *)&__m256_op1[1]) = 0x02020080; + *((int *)&__m256_op1[0]) = 0x5c800400; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0xffffffff; + *((int *)&__m256_op2[2]) = 0xf328dfff; + *((int *)&__m256_op2[1]) = 0x6651bfff; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffff80; + *((int *)&__m256_result[6]) = 0x46867f79; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xf328dfff; + *((int *)&__m256_result[1]) = 0x6651bfff; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xe0000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xe0000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xe0000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xe0000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x80000000; + *((int *)&__m256_op1[4]) = 0x80000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0x80000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0x00000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0x00000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x7f800000; + *((int *)&__m256_op2[6]) = 0x7f800000; + *((int *)&__m256_op2[5]) = 0x7fc00000; + *((int *)&__m256_op2[4]) = 0x7fc00000; + *((int *)&__m256_op2[3]) = 0x7f800000; + *((int *)&__m256_op2[2]) = 0x7f800000; + *((int *)&__m256_op2[1]) = 0x7fc00000; + *((int *)&__m256_op2[0]) = 0x7fc00000; + *((int *)&__m256_result[7]) = 0x7f800000; + *((int *)&__m256_result[6]) = 0x7f800000; + *((int *)&__m256_result[5]) = 0x7fc00000; + *((int *)&__m256_result[4]) = 0x7fc00000; + *((int *)&__m256_result[3]) = 0x7f800000; + *((int *)&__m256_result[2]) = 0x7f800000; + *((int *)&__m256_result[1]) = 0x7fc00000; + *((int *)&__m256_result[0]) = 0x7fc00000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x7fefffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0x7fefffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x7fefffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0x7fefffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x7fefffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0x7fefffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x7fefffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0x7fefffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xf7f8f7f8; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00003f78; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xf7f8f7f8; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00003f78; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0xf7f8f7f8; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00003f78; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0xf7f8f7f8; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00003f78; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0xff800000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x80000000; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0xff800000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x80000000; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0xffffffff; + *((int *)&__m256_op2[4]) = 0xffffffff; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0xffffffff; + *((int *)&__m256_op2[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x01010100; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000405; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x01010100; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000405; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x01010100; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000405; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x01010100; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000405; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x01010100; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0x00000405; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x01010100; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0x00000405; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00800080; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000202; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00800080; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000202; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0xff88ff88; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xff88ff88; + *((int *)&__m256_op2[7]) = 0x00000000; + *((int *)&__m256_op2[6]) = 0x00000000; + *((int *)&__m256_op2[5]) = 0x00000000; + *((int *)&__m256_op2[4]) = 0x00000000; + *((int *)&__m256_op2[3]) = 0x00000000; + *((int *)&__m256_op2[2]) = 0x00000000; + *((int *)&__m256_op2[1]) = 0x00000000; + *((int *)&__m256_op2[0]) = 0x00000000; + *((int *)&__m256_result[7]) = 0x80000000; + *((int *)&__m256_result[6]) = 0x80000000; + *((int *)&__m256_result[5]) = 0x80000000; + *((int *)&__m256_result[4]) = 0xffc8ff88; + *((int *)&__m256_result[3]) = 0x80000000; + *((int *)&__m256_result[2]) = 0x80000000; + *((int *)&__m256_result[1]) = 0x80000000; + *((int *)&__m256_result[0]) = 0xffc8ff88; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((int *)&__m256_op2[7]) = 0x001fffff; + *((int *)&__m256_op2[6]) = 0xffffffff; + *((int *)&__m256_op2[5]) = 0xffffffff; + *((int *)&__m256_op2[4]) = 0xffffffff; + *((int *)&__m256_op2[3]) = 0x001fffff; + *((int *)&__m256_op2[2]) = 0xffffffff; + *((int *)&__m256_op2[1]) = 0xffffffff; + *((int *)&__m256_op2[0]) = 0xffffffff; + *((int *)&__m256_result[7]) = 0x001fffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffffff; + *((int *)&__m256_result[3]) = 0x001fffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffffff; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x7fff8000; + *((int *)&__m256_op1[4]) = 0x7fff0000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x7fff8000; + *((int *)&__m256_op1[0]) = 0x7fff0000; + *((int *)&__m256_op2[7]) = 0xffffffff; + *((int *)&__m256_op2[6]) = 0xffffffff; + *((int *)&__m256_op2[5]) = 0xffffffff; + *((int *)&__m256_op2[4]) = 0xffffff10; + *((int *)&__m256_op2[3]) = 0xffffffff; + *((int *)&__m256_op2[2]) = 0xffffffff; + *((int *)&__m256_op2[1]) = 0xffffffff; + *((int *)&__m256_op2[0]) = 0xffffff10; + *((int *)&__m256_result[7]) = 0xffffffff; + *((int *)&__m256_result[6]) = 0xffffffff; + *((int *)&__m256_result[5]) = 0xffffffff; + *((int *)&__m256_result[4]) = 0xffffff10; + *((int *)&__m256_result[3]) = 0xffffffff; + *((int *)&__m256_result[2]) = 0xffffffff; + *((int *)&__m256_result[1]) = 0xffffffff; + *((int *)&__m256_result[0]) = 0xffffff10; + __m256_out = __lasx_xvfnmsub_s (__m256_op0, __m256_op1, __m256_op2); + ASSERTEQ_32 (__LINE__, __m256_result, __m256_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstp.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstp.c new file mode 100644 index 00000000000..557f9f8b50e --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstp.c @@ -0,0 +1,381 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000080000; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00007f7f00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000007f00340040; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000007f000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020200008; + *((unsigned long *)&__m256i_result[1]) = 0x0008010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000008; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x03f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[2]) = 0x03f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[1]) = 0x03f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[0]) = 0x03f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op2[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op2[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op2[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op2[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000010; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffff10; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[3]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[1]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xbfbfbfbfbfbfbfbf; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000010; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op1[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000010; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffe1; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffff10; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x007f007bfffffffb; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x007f007bfffffffb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000010000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000010000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256i_op2[3]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op2[2]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op2[1]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op2[0]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000c040c0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000c040c0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op2[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op2[1]) = 0x00000004843ffdff; + *((unsigned long *)&__m256i_op2[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffe000ffffffff08; + *((unsigned long *)&__m256i_result[1]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffe000ffffffff08; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff0000; + __m256i_out = __lasx_xvfrstp_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op1[2]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op1[1]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op1[0]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op2[3]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_op2[2]) = 0x00007fff00000000; + *((unsigned long *)&__m256i_op2[1]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_op2[0]) = 0x00007fff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffff10; + __m256i_out = __lasx_xvfrstp_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstpi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstpi.c new file mode 100644 index 00000000000..cdb7b11aa1a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfrstpi.c @@ -0,0 +1,350 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x38a966b31be83ee9; + *((unsigned long *)&__m256i_op0[2]) = 0x5f6108dc25b8e028; + *((unsigned long *)&__m256i_op0[1]) = 0xf41a56e8a20878d7; + *((unsigned long *)&__m256i_op0[0]) = 0x683b8b67e20c8ee5; + *((unsigned long *)&__m256i_op1[3]) = 0xffffcd42ffffecc0; + *((unsigned long *)&__m256i_op1[2]) = 0x00000475ffff4c51; + *((unsigned long *)&__m256i_op1[1]) = 0x0000740dffffad17; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f4bffff7130; + *((unsigned long *)&__m256i_result[3]) = 0x38a966b31be83ee9; + *((unsigned long *)&__m256i_result[2]) = 0x5f6108dc25b80001; + *((unsigned long *)&__m256i_result[1]) = 0xf41a56e8a20878d7; + *((unsigned long *)&__m256i_result[0]) = 0x683b8b67e20c0001; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1000000000000000; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff0008; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff0008; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff0008ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffff0008ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op0[2]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op0[0]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x00ffffff1e9e9e9e; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff9e9eb09e; + *((unsigned long *)&__m256i_op1[1]) = 0x00ffffff1e9e9e9e; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff9e9eb09e; + *((unsigned long *)&__m256i_result[3]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_result[2]) = 0xffc00000ffc0ffc0; + *((unsigned long *)&__m256i_result[1]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_result[0]) = 0xffc00000ffc0ffc0; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000226200005111; + *((unsigned long *)&__m256i_op0[2]) = 0x0000165e0000480d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000226200005111; + *((unsigned long *)&__m256i_op0[0]) = 0x0000165e0000480d; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffd8ffc7ffdaff8a; + *((unsigned long *)&__m256i_result[3]) = 0x0000226200005111; + *((unsigned long *)&__m256i_result[2]) = 0x000016000000480d; + *((unsigned long *)&__m256i_result[1]) = 0x0000226200005111; + *((unsigned long *)&__m256i_result[0]) = 0x000016000000480d; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe800c0d8fffeeece; + *((unsigned long *)&__m256i_op0[2]) = 0xffff383efffedf0c; + *((unsigned long *)&__m256i_op0[1]) = 0xe800c0d8fffeeece; + *((unsigned long *)&__m256i_op0[0]) = 0xffff383efffedf0c; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xe800c000fffeeece; + *((unsigned long *)&__m256i_result[2]) = 0xffff383efffedf0c; + *((unsigned long *)&__m256i_result[1]) = 0xe800c000fffeeece; + *((unsigned long *)&__m256i_result[0]) = 0xffff383efffedf0c; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000008; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_result[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000200000000; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff000200000000; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffff00ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff00ffffffff; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7c007c0080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7c007c0080008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7c00000880008000; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op0[1]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000f000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000f000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0008b03e457db03e; + *((unsigned long *)&__m256i_result[2]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_result[1]) = 0x0008b03e457db03e; + *((unsigned long *)&__m256i_result[0]) = 0x457db03e45a87310; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x1f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000000b; + *((unsigned long *)&__m256i_op1[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[0]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[3]) = 0x000000000008000b; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000000b; + *((unsigned long *)&__m256i_result[1]) = 0x000000000008000b; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000000b; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000dfffffff1; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000cfffffff3; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000dfffffff1; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000cfffffff3; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffff00; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000001000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000001000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0008000000000000; + __m256i_out = __lasx_xvfrstpi_h (__m256i_op0, __m256i_op1, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op1[3]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[3]) = 0xff01fffe00000001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[1]) = 0xff01fffe00000001; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffe00000001; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[2]) = 0x10ffffff10000006; + *((unsigned long *)&__m256i_result[1]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[0]) = 0x10ffffff10000006; + __m256i_out = __lasx_xvfrstpi_b (__m256i_op0, __m256i_op1, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-1.c new file mode 100644 index 00000000000..fa4d5fd6fc2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-1.c @@ -0,0 +1,620 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000fffefe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000fffefe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffb80000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffb80000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000080008001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000012; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000012; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000f0f0003; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000f1003; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000f0001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000011; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffe000ffffffff08; + *((unsigned long *)&__m256i_op0[1]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffe000ffffffff08; + *((unsigned long *)&__m256i_op1[3]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op1[2]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op1[1]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_op1[0]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[3]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[2]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[1]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[0]) = 0x00000001fffffff9; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100002000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffc0; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvhsubw_h_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00b7003600120000; + *((unsigned long *)&__m256i_op0[2]) = 0x00b7006200fc0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000fe00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00b7004100190004; + *((unsigned long *)&__m256i_op1[3]) = 0xdb801b6d0962003f; + *((unsigned long *)&__m256i_op1[2]) = 0xdb8a3109fe0f0024; + *((unsigned long *)&__m256i_op1[1]) = 0x9a7f997fff01ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xbe632a4f1c3c5653; + *((unsigned long *)&__m256i_result[3]) = 0xffffe54affffffd3; + *((unsigned long *)&__m256i_result[2]) = 0xffffcfae000000d8; + *((unsigned long *)&__m256i_result[1]) = 0x00006681000000ff; + *((unsigned long *)&__m256i_result[0]) = 0xffffd668ffffa9c6; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xbff00000bff00000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xbff00000bff00000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffbff1ffffbff1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffbff1ffffbff1; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff1fffffff1; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000001; + *((unsigned long *)&__m256i_op0[2]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000001; + *((unsigned long *)&__m256i_op0[0]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffeeffaf; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000011; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffeeffaf; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000011; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000051; + *((unsigned long *)&__m256i_result[2]) = 0x0000101000000fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000051; + *((unsigned long *)&__m256i_result[0]) = 0x0000101000000fff; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[0]) = 0x817f11ed81800ff0; + *((unsigned long *)&__m256i_op1[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0xffff8180ffff8181; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0xffff8180ffff8181; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00feff0100feff01; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00feff0100feff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvhsubw_w_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[2]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[1]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op0[0]) = 0x7c007c007c007c00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007efeff00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007efeff00; + *((unsigned long *)&__m256i_result[3]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_result[1]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffd017d00; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffe00000002; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffe; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffe00; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_d_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffc0c0ffffbfc0; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffc0c0ffffbfc0; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000010000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000010000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffeffff10000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffeffff10000000; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0007a861; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0007a861; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_q_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-2.c new file mode 100644 index 00000000000..87c3e25b137 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvhsubw-2.c @@ -0,0 +1,545 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff70ff01ff80; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff01ff70ff01ff80; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[2]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[0]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x00c200c200c200c2; + *((unsigned long *)&__m256i_result[2]) = 0x00c200c200c200bb; + *((unsigned long *)&__m256i_result[1]) = 0x00c200c200c200c2; + *((unsigned long *)&__m256i_result[0]) = 0x00c200c200c200bb; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000a00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000010000000a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000080008001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000f90; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff70; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff70; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000ff00bb; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000ff0057; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000ff00bb; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000ff0057; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fffa003e; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffb009c; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fffa003e; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffb009c; + __m256i_out = __lasx_xvhsubw_hu_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvhsubw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x6300000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x6300000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvhsubw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffc001; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000c000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffc001; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000c000; + __m256i_out = __lasx_xvhsubw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9ffffd8020010001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff9fffffff9; + *((unsigned long *)&__m256i_op0[1]) = 0x9ffffd8020010001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff9fffffff9; + *((unsigned long *)&__m256i_op1[3]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x40f69fe73c26f4ee; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000018ffff2b13; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000018ffff2b13; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvhsubw_wu_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00800080ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00800080ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffe0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001e18; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff001f; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007fe268; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff001f; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007fe268; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffbfffc; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff00fffffff0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffff00; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000055; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000055; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff01010101; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00d6acd7; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff01010101; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00d6acd7; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x120e120dedf1edf2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x120e120dedf1edf2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000120e120d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000120e120d; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000001; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000dfffffff1; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000cfffffff3; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000dfffffff1; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000cfffffff3; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff0000000d; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_du_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_op1[2]) = 0xffb7ff80ffd0ffd8; + *((unsigned long *)&__m256i_op1[1]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_op1[0]) = 0xffb5ff80ffd0ffd8; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0048007f002f0028; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x004a007f002f0028; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op1[2]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_op1[1]) = 0xdbcbdbcbecececec; + *((unsigned long *)&__m256i_op1[0]) = 0xdbcbdbcb0000dbcb; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x24342434ffff2435; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x24342434ffff2435; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op0[2]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op0[1]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op0[0]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffba8300004fc2; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffba8300004fc2; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff8001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op1[3]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op1[1]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fff00003fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffebffffffebfff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffebffffffebfff; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff7eddffff7ed3; + *((unsigned long *)&__m256i_op0[2]) = 0xffff7edfffff7edf; + *((unsigned long *)&__m256i_op0[1]) = 0xffff7eddffff7ed3; + *((unsigned long *)&__m256i_op0[0]) = 0xffff7edfffff7edf; + *((unsigned long *)&__m256i_op1[3]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[2]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[0]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff3eedffff3ee3; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff3eedffff3ee3; + __m256i_out = __lasx_xvhsubw_qu_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvld.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvld.c new file mode 100644 index 00000000000..c1eda6c6c4a --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvld.c @@ -0,0 +1,86 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_result[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_result[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_result[0]) = 0x0ad152a5ad72feeb; + __m256i_out = __lasx_xvld ((unsigned long *)&__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_result[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_result[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_result[0]) = 0x0ad152a5ad72feeb; + __m256i_out = __lasx_xvldx ((unsigned long *)&__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[2]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[1]) = 0xebebebebebebebeb; + *((unsigned long *)&__m256i_result[0]) = 0xebebebebebebebeb; + __m256i_out = __lasx_xvldrepl_b ((unsigned long *)&__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0xfeebfeebfeebfeeb; + *((unsigned long *)&__m256i_result[2]) = 0xfeebfeebfeebfeeb; + *((unsigned long *)&__m256i_result[1]) = 0xfeebfeebfeebfeeb; + *((unsigned long *)&__m256i_result[0]) = 0xfeebfeebfeebfeeb; + __m256i_out = __lasx_xvldrepl_h ((unsigned long *)&__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0xad72feebad72feeb; + *((unsigned long *)&__m256i_result[2]) = 0xad72feebad72feeb; + *((unsigned long *)&__m256i_result[1]) = 0xad72feebad72feeb; + *((unsigned long *)&__m256i_result[0]) = 0xad72feebad72feeb; + __m256i_out = __lasx_xvldrepl_w ((unsigned long *)&__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[2]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[1]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[0]) = 0x0ad152a5ad72feeb; + __m256i_out = __lasx_xvldrepl_d ((unsigned long *)&__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsub.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsub.c new file mode 100644 index 00000000000..8c8d4996b4e --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvmsub.c @@ -0,0 +1,647 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x074132a240000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff0008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffff0001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x00007ffe81fdfe03; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[0]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[0]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[0]) = 0x555555ab555555ab; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000017f0000017d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000017f0000017f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000002e0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op1[0]) = 0x0000002e0000fffe; + *((unsigned long *)&__m256i_op2[3]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op2[2]) = 0x0000002e0000ffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op2[0]) = 0x0000002e0000fffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000f7bc0001f7bd; + *((unsigned long *)&__m256i_result[2]) = 0x0000f93b0000017c; + *((unsigned long *)&__m256i_result[1]) = 0x0000f7bc0001f7bd; + *((unsigned long *)&__m256i_result[0]) = 0x0000f93b0000017b; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op0[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op0[1]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op0[0]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op1[3]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[1]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[0]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1410141014101410; + *((unsigned long *)&__m256i_result[2]) = 0x1410141014101410; + *((unsigned long *)&__m256i_result[1]) = 0x1410141014101410; + *((unsigned long *)&__m256i_result[0]) = 0x1410141014101410; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdb801b6d0962003f; + *((unsigned long *)&__m256i_op0[2]) = 0xdb8a3109fe0f0024; + *((unsigned long *)&__m256i_op0[1]) = 0x0000007fff01ffff; + *((unsigned long *)&__m256i_op0[0]) = 0xdb8e209d0cce025a; + *((unsigned long *)&__m256i_op1[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op1[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op1[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op1[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffffcc8000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x000000007dfdff4b; + *((unsigned long *)&__m256i_result[3]) = 0xdb801b6d0962003f; + *((unsigned long *)&__m256i_result[2]) = 0xdb8a3109fe0f0024; + *((unsigned long *)&__m256i_result[1]) = 0x9a7f997fff01ffff; + *((unsigned long *)&__m256i_result[0]) = 0xbe632a4f1c3c5653; + __m256i_out = __lasx_xvmsub_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x01010101010000ff; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000004800000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000004800000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000004800000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000004800000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_result[3]) = 0x7b7b7b7b80000000; + *((unsigned long *)&__m256i_result[2]) = 0xcacacb1011040500; + *((unsigned long *)&__m256i_result[1]) = 0x7b7b7b7b80000000; + *((unsigned long *)&__m256i_result[0]) = 0xcacacb1011040500; + __m256i_out = __lasx_xvmsub_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffefffffffe; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[2]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[1]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[0]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000001a00; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[2]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[0]) = 0xff80000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfe7fffecfe7fffec; + *((unsigned long *)&__m256i_result[2]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_result[1]) = 0xfe7fffecfe7fffec; + *((unsigned long *)&__m256i_result[0]) = 0xff80000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0xa020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0xa020202020206431; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xa020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0xa020202020206431; + *((unsigned long *)&__m256i_result[1]) = 0xa020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0xa020202020206431; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ff00000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op2[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op2[1]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op2[0]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fff80fe; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fff80fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff80007ffe; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff007fff80fe; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op0[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op0[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op0[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[0]) = 0x7f807f007f7f817f; + __m256i_out = __lasx_xvmsub_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x1f001f00000007ef; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00001fff200007ef; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x4000000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff457db03f; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000fe200000fe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fe200000fe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x001ffffe00200000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x001ffffe00200000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fe200000fe1f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fe200000fe1f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op1[2]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op1[1]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op1[0]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000009e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000009e; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xffff0078ffff0078; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xffff0078ffff0078; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000038ea4d4a; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff00007fff0000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff8; + __m256i_out = __lasx_xvmsub_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvmsub_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotr.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotr.c new file mode 100644 index 00000000000..21446e55eb2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotr.c @@ -0,0 +1,530 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff0001ff02; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff020afefc; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000003fefd; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffefffefff7fff7; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7ffffffbfffb; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff0001ff02; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff020afefc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000003fefd; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0209fefb08140000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff0001ff04; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff02a0fefc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000cfefd; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op1[3]) = 0xff01ff010000fff9; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ff19; + *((unsigned long *)&__m256i_op1[1]) = 0xff02ff020001fffa; + *((unsigned long *)&__m256i_op1[0]) = 0x000100010001fffa; + *((unsigned long *)&__m256i_result[3]) = 0x807f807f00000380; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007380; + *((unsigned long *)&__m256i_result[1]) = 0xc03fc03f000001c0; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001c0; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fffffe40; + __m256i_out = __lasx_xvrotr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[1]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[2]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[1]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_op1[0]) = 0xff01ff01ff01ff01; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvrotr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000007fee; + *((unsigned long *)&__m256i_op1[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000fedd; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000fedd; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000fedd; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000fedd; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x805f0000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[2]) = 0x80be0000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[0]) = 0x80be0000ffffffff; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff457db03f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000457d607d; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff457d607f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000457d607d; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff457d607f; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x07ffffff07ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x07ffffff07ffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x07ffffff07ffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x07ffffff07ffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x0ffffffe0ffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[0]) = 0x0ffffffe0ffffffe; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_op0[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[0]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_result[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_result[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_result[0]) = 0x001fc0200060047a; + __m256i_out = __lasx_xvrotr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x386000003df80000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ca0000fff80000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ca0000fff80000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x381800007af80000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x381800007af80000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff0001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000086fe0000403e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000403e00004040; + *((unsigned long *)&__m256i_op0[1]) = 0x000086fe0000403e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000403e00004040; + *((unsigned long *)&__m256i_op1[3]) = 0x000086fe0000403e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000403e00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x000086fe0000403e; + *((unsigned long *)&__m256i_op1[0]) = 0x0000403e00004040; + *((unsigned long *)&__m256i_result[3]) = 0x00001bfa000000f9; + *((unsigned long *)&__m256i_result[2]) = 0x000000f900004040; + *((unsigned long *)&__m256i_result[1]) = 0x00001bfa000000f9; + *((unsigned long *)&__m256i_result[0]) = 0x000000f900004040; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op0[1]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0607ffff0607; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000f9f9f9f9; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000faf3f3f2; + *((unsigned long *)&__m256i_result[3]) = 0xffff0607ffff0383; + *((unsigned long *)&__m256i_result[2]) = 0xffff0607ffffc0c1; + *((unsigned long *)&__m256i_result[1]) = 0xffff0607ffff0383; + *((unsigned long *)&__m256i_result[0]) = 0xffff0607ffffc0c1; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvrotr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007f433c79; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007f433c79; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007f8000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007f8000; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffdfff80; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffdfff80; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0001000100800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotri.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotri.c new file mode 100644 index 00000000000..c1b8e1752ae --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvrotri.c @@ -0,0 +1,394 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbea2e127c046721f; + *((unsigned long *)&__m256i_op0[2]) = 0x1729c073816edebe; + *((unsigned long *)&__m256i_op0[1]) = 0xde91f010000006f9; + *((unsigned long *)&__m256i_op0[0]) = 0x5ef1f90efefaf30d; + *((unsigned long *)&__m256i_result[3]) = 0x515f93f023600fb9; + *((unsigned long *)&__m256i_result[2]) = 0x948b39e0b7405f6f; + *((unsigned long *)&__m256i_result[1]) = 0x48ef087800007c83; + *((unsigned long *)&__m256i_result[0]) = 0x78af877c7d7f86f9; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202020202020202; + *((unsigned long *)&__m256i_op0[2]) = 0x0202020202020202; + *((unsigned long *)&__m256i_op0[1]) = 0x1010101010101010; + *((unsigned long *)&__m256i_op0[0]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[2]) = 0x7f7f7f7f7fff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x7f007f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x7f7f7f7f7fff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[2]) = 0xbfbfbfbfbfff807f; + *((unsigned long *)&__m256i_result[1]) = 0xbf803fbfbfbfbfbf; + *((unsigned long *)&__m256i_result[0]) = 0xbfbfbfbfbfff807f; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffef; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffef; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000010; + __m256i_out = __lasx_xvrotri_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002a5429; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000002a54290; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000907; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000907; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000007f0000007f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000007f0000007f; + *((unsigned long *)&__m256i_op0[1]) = 0xff01ff80ff01ff80; + *((unsigned long *)&__m256i_op0[0]) = 0xff01ff800000007e; + *((unsigned long *)&__m256i_result[3]) = 0x003f8000003f8000; + *((unsigned long *)&__m256i_result[2]) = 0x003f8000003f8000; + *((unsigned long *)&__m256i_result[1]) = 0xffc07f80ffc07f80; + *((unsigned long *)&__m256i_result[0]) = 0xffc07f80003f0000; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x24); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff6f20; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff6f20; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xdbc8000000003fff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[1]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[0]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[3]) = 0x4343434343434343; + *((unsigned long *)&__m256i_result[2]) = 0x4343434343434343; + *((unsigned long *)&__m256i_result[1]) = 0x4343434343434343; + *((unsigned long *)&__m256i_result[0]) = 0x4343434343434343; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x38); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffee; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffdffd; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffdffd; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffdffd; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffdffd; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x35); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[3]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_result[2]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_result[1]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_result[0]) = 0x0000f0000000f000; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x000007fc00000400; + *((unsigned long *)&__m256i_result[2]) = 0x0000040000000400; + *((unsigned long *)&__m256i_result[1]) = 0x000007fc00000400; + *((unsigned long *)&__m256i_result[0]) = 0x0000040000000400; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x35); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000008000; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_b (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000000000000; + __m256i_out = __lasx_xvrotri_b (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_w (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00f7000000f70006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00f7000000f70006; + __m256i_out = __lasx_xvrotri_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_d (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffbfffffffb; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffbfffffffb; + __m256i_out = __lasx_xvrotri_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvst.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvst.c new file mode 100644 index 00000000000..3c5e775ff36 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvst.c @@ -0,0 +1,102 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0; + *((unsigned long *)&__m256i_result[2]) = 0x0; + *((unsigned long *)&__m256i_result[1]) = 0x0; + *((unsigned long *)&__m256i_result[0]) = 0x0; + __lasx_xvst (__m256i_op0, (unsigned long *)&__m256i_result, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_op0, __m256i_result); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0; + *((unsigned long *)&__m256i_result[2]) = 0x0; + *((unsigned long *)&__m256i_result[1]) = 0x0; + *((unsigned long *)&__m256i_result[0]) = 0x0; + __lasx_xvstx (__m256i_op0, (unsigned long *)&__m256i_result, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_op0, __m256i_result); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0; + *((unsigned long *)&__m256i_result[2]) = 0x0; + *((unsigned long *)&__m256i_result[1]) = 0x0; + *((unsigned long *)&__m256i_result[0]) = 0x8d; + *((unsigned long *)&__m256i_out[3]) = 0x0; + *((unsigned long *)&__m256i_out[2]) = 0x0; + *((unsigned long *)&__m256i_out[1]) = 0x0; + *((unsigned long *)&__m256i_out[0]) = 0x0; + __lasx_xvstelm_b (__m256i_op0, (unsigned long *)&__m256i_out, 0x0, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0; + *((unsigned long *)&__m256i_result[2]) = 0x0; + *((unsigned long *)&__m256i_result[1]) = 0x0; + *((unsigned long *)&__m256i_result[0]) = 0x9100; + *((unsigned long *)&__m256i_out[3]) = 0x0; + *((unsigned long *)&__m256i_out[2]) = 0x0; + *((unsigned long *)&__m256i_out[1]) = 0x0; + *((unsigned long *)&__m256i_out[0]) = 0x0; + __lasx_xvstelm_h (__m256i_op0, (unsigned long *)&__m256i_out, 0x0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0; + *((unsigned long *)&__m256i_result[2]) = 0x0; + *((unsigned long *)&__m256i_result[1]) = 0x0; + *((unsigned long *)&__m256i_result[0]) = 0xe9179100; + *((unsigned long *)&__m256i_out[3]) = 0x0; + *((unsigned long *)&__m256i_out[2]) = 0x0; + *((unsigned long *)&__m256i_out[1]) = 0x0; + *((unsigned long *)&__m256i_out[0]) = 0x0; + __lasx_xvstelm_w (__m256i_op0, (unsigned long *)&__m256i_out, 0x0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x042f0500cfea969a; + *((unsigned long *)&__m256i_op0[2]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_op0[1]) = 0xa98d4f7a77c308ee; + *((unsigned long *)&__m256i_op0[0]) = 0x0ad152a5ad72feeb; + *((unsigned long *)&__m256i_result[3]) = 0x0; + *((unsigned long *)&__m256i_result[2]) = 0x0; + *((unsigned long *)&__m256i_result[1]) = 0x0; + *((unsigned long *)&__m256i_result[0]) = 0x58569d7be9179100; + *((unsigned long *)&__m256i_out[3]) = 0x0; + *((unsigned long *)&__m256i_out[2]) = 0x0; + *((unsigned long *)&__m256i_out[1]) = 0x0; + *((unsigned long *)&__m256i_out[0]) = 0x0; + __lasx_xvstelm_d (__m256i_op0, (unsigned long *)&__m256i_out, 0x0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:40:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138621 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp838933vqx; Tue, 12 Sep 2023 21:03:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1yYFvz/4Xkhae0C5UxsDGD6mGTjAdx3Og1Y3v1qqvKWkQeqxrDSTAqB/eoVVyZyxHvMR4 X-Received: by 2002:a05:6512:159d:b0:4fb:8de9:ac0e with SMTP id bp29-20020a056512159d00b004fb8de9ac0emr1285207lfb.1.1694577795242; Tue, 12 Sep 2023 21:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577795; cv=none; d=google.com; s=arc-20160816; b=eWIkY5KP5ZikiWBVa3oORKvhgTtPWxBg8cySjdTOAkKZSTL4QfPWTu33fDhr74wlpz vM6MgUX12e4XECxlX5Xe4Z2kgPQnNtk4WjC8sklEeESPba5BYE8XUhAQfL9mZgjes9xj tNH1KBDbXgKsEVI5B2AoYlehZwySebiwX1aGwm5/mckqpwIfP+rqigmXiz7Zk+PeCxPs 0TQeAmXmEDpqciVjSkjXybUMFaXMDeNVr1GRhwphKRKV3cDGFikoqrUpzkL3u1JrgJmr HuXfzVUXoRsuPxwWq7vCvsArJgNRkim9LHZML2zLUG2oKQ6dJ2eF6ttNN4ishBqnJOt5 Y3Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=2nQVTmiQxYKCjYAEY6boLflyV9MYG5vYLj/DPI9DYkY=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=Lv7FBjDISle9hgYHUKwJW6Fk05MtglQrV8tw4QTySCsJHyhkmTxjL+cdH/wsn9K+Zw MTuvn97BRO0D2zATxgH4QrXL769PZ5qD63UCcTyf75p3vaojO6P019iFX4CAGc280GVo T7+46WheYaPwAGgpQV3SNycSCUlTinFHrhVUnokG+7RHndv+XWFAHdXgMNKgUcRnpvgV JP5JeTwsI3cYjo/0KPyYtLM4M4lRVHh4RgVHSmFHG4UCvsb8TEZvnzLfT2cAvpdhg4QK Z8vIJ+7ba8fPt/gfmMSW2zoB7idVZyOsrjqpecqkbqUQIm4eSTw8TbY+PVIf78TN+lLt oQJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id js14-20020a17090797ce00b009ad814f819fsi3827351ejc.240.2023.09.12.21.03.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A681382CFB9 for ; Wed, 13 Sep 2023 03:42:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 7BD9E383466E for ; Wed, 13 Sep 2023 03:41:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BD9E383466E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGkH-0004Zv-FZ for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:41:00 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxJvFCLwFlhzEmAA--.8782S3; Wed, 13 Sep 2023 11:40:50 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNwtLwFlEhECAA--.3650S12; Wed, 13 Sep 2023 11:40:49 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 18/22] LoongArch: Add tests for ASX vector xvabsd/xvavg/xvavgr/xvbsll/xvbsrl/xvneg/ xvsat instructions. Date: Wed, 13 Sep 2023 11:40:25 +0800 Message-Id: <20230913034026.7751-9-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034026.7751-1-chenxiaolong@loongson.cn> References: <20230913034026.7751-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNwtLwFlEhECAA--.3650S12 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBTAAAse X-Coremail-Antispam: 1Uk129KBj93XoW7Jr1DZr17ZrW5uFWrurWfp5X_XFWfGr4rpr 17Jr1fG3yI9ayUKryUJFyaqrWUAr4qyasrJF47K3sru3WkKFn0qF13A3yDAw4DJFWjvF13 tFW5Jr10qr45GwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ZF0_GryDMcIj6I8E 87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjc xG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVF xhVjvjDU0xZFpf9x07b5wIDUUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893606431469303 X-GMAIL-MSGID: 1776893606431469303 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvabsd-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvabsd-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvavg-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvavg-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvavgr-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvavgr-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbsll_v.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvbsrl_v.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvneg.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsat-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvsat-2.c: New test. --- .../loongarch/vector/lasx/lasx-xvabsd-1.c | 485 +++++++++++ .../loongarch/vector/lasx/lasx-xvabsd-2.c | 650 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvavg-1.c | 680 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvavg-2.c | 560 +++++++++++++ .../loongarch/vector/lasx/lasx-xvavgr-1.c | 770 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvavgr-2.c | 650 +++++++++++++++ .../loongarch/vector/lasx/lasx-xvbsll_v.c | 130 +++ .../loongarch/vector/lasx/lasx-xvbsrl_v.c | 64 ++ .../loongarch/vector/lasx/lasx-xvneg.c | 526 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsat-1.c | 537 ++++++++++++ .../loongarch/vector/lasx/lasx-xvsat-2.c | 427 ++++++++++ 11 files changed, 5479 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsll_v.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsrl_v.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvneg.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-2.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-1.c new file mode 100644 index 00000000000..41fae32df0d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-1.c @@ -0,0 +1,485 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x34598d0fd19314cb; + *((unsigned long *)&__m256i_op0[2]) = 0x1820939b2280fa86; + *((unsigned long *)&__m256i_op0[1]) = 0x4a1c269b8e892a3a; + *((unsigned long *)&__m256i_op0[0]) = 0x063f2bb758abc664; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffc0fcffffcf83; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000288a00003c1c; + *((unsigned long *)&__m256i_result[3]) = 0x3459730f2f6d1435; + *((unsigned long *)&__m256i_result[2]) = 0x19212d61237f2b03; + *((unsigned long *)&__m256i_result[1]) = 0x4a1c266572772a3a; + *((unsigned long *)&__m256i_result[0]) = 0x063f032d58557648; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x1cfd000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007f017f01; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007f017f01; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[2]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_op0[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[0]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[2]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[0]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256i_result[3]) = 0x0001504f4c4b2361; + *((unsigned long *)&__m256i_result[2]) = 0x303338a48f374969; + *((unsigned long *)&__m256i_result[1]) = 0x0001504f4c4b2361; + *((unsigned long *)&__m256i_result[0]) = 0x303338a48f374969; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x807c7fffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x80817fff00810000; + *((unsigned long *)&__m256i_op0[1]) = 0x807c7fffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x80817fff00810000; + *((unsigned long *)&__m256i_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x80767f0101050101; + *((unsigned long *)&__m256i_result[2]) = 0x80817f01007f0000; + *((unsigned long *)&__m256i_result[1]) = 0x80767f0101050101; + *((unsigned long *)&__m256i_result[0]) = 0x80817f01007f0000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x437fe01fe01fe020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x437fe01fe01fe020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x037fe01f001fe020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x037fe01f001fe020; + *((unsigned long *)&__m256i_result[3]) = 0x437f201f201f2020; + *((unsigned long *)&__m256i_result[2]) = 0x037f201f001f2020; + *((unsigned long *)&__m256i_result[1]) = 0x437f201f201f2020; + *((unsigned long *)&__m256i_result[0]) = 0x037f201f001f2020; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1f60010000080100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1f60010000080100; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000002780; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000002780; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000010100020103; + *((unsigned long *)&__m256i_result[2]) = 0x040f040f040b236d; + *((unsigned long *)&__m256i_result[1]) = 0x0000010100020103; + *((unsigned long *)&__m256i_result[0]) = 0x040f040f040b236d; + __m256i_out = __lasx_xvabsd_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100010000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100010080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100010000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100010080; + __m256i_out = __lasx_xvabsd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000073333333; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000073333333; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_result[2]) = 0x0000000073333333; + *((unsigned long *)&__m256i_result[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_result[0]) = 0x0000000073333333; + __m256i_out = __lasx_xvabsd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000050fd00000101; + *((unsigned long *)&__m256i_op1[2]) = 0x000040c100000101; + *((unsigned long *)&__m256i_op1[1]) = 0x000050fd00000101; + *((unsigned long *)&__m256i_op1[0]) = 0x000040c100000101; + *((unsigned long *)&__m256i_result[3]) = 0x000050fd00000101; + *((unsigned long *)&__m256i_result[2]) = 0x000040c100000101; + *((unsigned long *)&__m256i_result[1]) = 0x000050fd00000101; + *((unsigned long *)&__m256i_result[0]) = 0x000040c100000101; + __m256i_out = __lasx_xvabsd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x01ffff4300fffeff; + *((unsigned long *)&__m256i_op1[2]) = 0xfe0000bcff000100; + *((unsigned long *)&__m256i_op1[1]) = 0x01ffff4300fffeff; + *((unsigned long *)&__m256i_op1[0]) = 0xfe0000bcff000100; + *((unsigned long *)&__m256i_result[3]) = 0x81ff00bd80ff0101; + *((unsigned long *)&__m256i_result[2]) = 0x01ff00bd00ff0101; + *((unsigned long *)&__m256i_result[1]) = 0x81ff00bd80ff0101; + *((unsigned long *)&__m256i_result[0]) = 0x01ff00bd00ff0101; + __m256i_out = __lasx_xvabsd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[3]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[2]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_op1[1]) = 0x00003fef00003fea; + *((unsigned long *)&__m256i_op1[0]) = 0x00003ff000003ff0; + *((unsigned long *)&__m256i_result[3]) = 0x00003fea00013feb; + *((unsigned long *)&__m256i_result[2]) = 0x00003fe900014022; + *((unsigned long *)&__m256i_result[1]) = 0x00003fea00013feb; + *((unsigned long *)&__m256i_result[0]) = 0x00003fe900014022; + __m256i_out = __lasx_xvabsd_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0cc08723ff900001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xcc9b89f2f6cef440; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0cc08723006fffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x3364760e09310bc0; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000017f0000017d; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000017f0000017f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[2]) = 0x0000017f0000017d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[0]) = 0x0000017f0000017f; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00fe01f000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00fe01f000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xbf800000bf800000; + *((unsigned long *)&__m256i_op1[2]) = 0xd662fa0000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xbf800000bf800000; + *((unsigned long *)&__m256i_op1[0]) = 0xd6ef750000000000; + *((unsigned long *)&__m256i_result[3]) = 0x417e01f040800000; + *((unsigned long *)&__m256i_result[2]) = 0x299d060000000000; + *((unsigned long *)&__m256i_result[1]) = 0x417e01f040800000; + *((unsigned long *)&__m256i_result[0]) = 0x29108b0000000000; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001700170017; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000001700170017; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffa0078fffa0074; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffb79fb74; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffb79fb74; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffa; + *((unsigned long *)&__m256i_result[3]) = 0x000100010485048a; + *((unsigned long *)&__m256i_result[2]) = 0x0005ff870005ff86; + *((unsigned long *)&__m256i_result[1]) = 0x000100010485048a; + *((unsigned long *)&__m256i_result[0]) = 0x0005ff870005ff86; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000400000004000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000400000004000; + *((unsigned long *)&__m256i_result[3]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_result[2]) = 0x0000400100004001; + *((unsigned long *)&__m256i_result[1]) = 0x0000400000003ffb; + *((unsigned long *)&__m256i_result[0]) = 0x0000400100004001; + __m256i_out = __lasx_xvabsd_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000200000000; + __m256i_out = __lasx_xvabsd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvabsd_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-2.c new file mode 100644 index 00000000000..bd7a9069da6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvabsd-2.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020000020200000; + *((unsigned long *)&__m256i_op0[2]) = 0x2020000020200000; + *((unsigned long *)&__m256i_op0[1]) = 0x0008000001010000; + *((unsigned long *)&__m256i_op0[0]) = 0x0101000001010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020000020200000; + *((unsigned long *)&__m256i_result[2]) = 0x2020000020200000; + *((unsigned long *)&__m256i_result[1]) = 0x0008000001010000; + *((unsigned long *)&__m256i_result[0]) = 0x0101000001010000; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000100010485048a; + *((unsigned long *)&__m256i_op0[2]) = 0x0005ff870005ff86; + *((unsigned long *)&__m256i_op0[1]) = 0x000100010485048a; + *((unsigned long *)&__m256i_op0[0]) = 0x0005ff870005ff86; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffecffffffec; + *((unsigned long *)&__m256i_result[3]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_result[2]) = 0xfffa0065fffa0066; + *((unsigned long *)&__m256i_result[1]) = 0xfffeffebfb7afb62; + *((unsigned long *)&__m256i_result[0]) = 0xfffa0065fffa0066; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000009; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvabsd_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff7fff05407fff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff7fff05407fff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op1[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_result[3]) = 0x400040003abf4000; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_result[1]) = 0x400040003abf4000; + *((unsigned long *)&__m256i_result[0]) = 0x000000003fff3fff; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0408040800008003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0408040800008003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fff80800; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0408040800008003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x04080408fff87803; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0606060606060606; + *((unsigned long *)&__m256i_op1[2]) = 0x0606060606060606; + *((unsigned long *)&__m256i_op1[1]) = 0x0606060606060606; + *((unsigned long *)&__m256i_op1[0]) = 0x0606060606060606; + *((unsigned long *)&__m256i_result[3]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[2]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[1]) = 0xf9f9f9f9f9f9f9f9; + *((unsigned long *)&__m256i_result[0]) = 0xf9f9f9f9f9f9f9f9; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0001; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00ff003f003f00; + *((unsigned long *)&__m256i_op0[2]) = 0xff0101fd00010100; + *((unsigned long *)&__m256i_op0[1]) = 0xff00ff003f003f00; + *((unsigned long *)&__m256i_op0[0]) = 0xff0101fd00010100; + *((unsigned long *)&__m256i_op1[3]) = 0xff00ff003f003f00; + *((unsigned long *)&__m256i_op1[2]) = 0xff0101fd00010100; + *((unsigned long *)&__m256i_op1[1]) = 0xff00ff003f003f00; + *((unsigned long *)&__m256i_op1[0]) = 0xff0101fd00010100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffff5fff7; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffff5fff7; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001010000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001010000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001010000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000001400000014; + *((unsigned long *)&__m256i_op1[2]) = 0x0000001400000014; + *((unsigned long *)&__m256i_op1[1]) = 0x0000001400000014; + *((unsigned long *)&__m256i_op1[0]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[3]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[2]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[1]) = 0x0000001400000014; + *((unsigned long *)&__m256i_result[0]) = 0x0000001400000014; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfbba01c0003f7e3f; + *((unsigned long *)&__m256i_op1[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_op1[1]) = 0xfbd884e7003f7e3f; + *((unsigned long *)&__m256i_op1[0]) = 0xff874dc687870000; + *((unsigned long *)&__m256i_result[3]) = 0xfbba01c0003f7e3f; + *((unsigned long *)&__m256i_result[2]) = 0xffc6cc05c64d960e; + *((unsigned long *)&__m256i_result[1]) = 0xfbd884e7003f7e3f; + *((unsigned long *)&__m256i_result[0]) = 0xff874dc687870000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x800000007fff0001; + *((unsigned long *)&__m256i_result[2]) = 0x80000000ff7f0001; + *((unsigned long *)&__m256i_result[1]) = 0x800000007fff0001; + *((unsigned long *)&__m256i_result[0]) = 0x80000000ff7f0001; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op0[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op0[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op0[0]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_result[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_result[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_result[0]) = 0x01fe01fe01fe01fe; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000010000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[2]) = 0x0000010000080040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[0]) = 0x0000010000080040; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffffd; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffffe; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00040000; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000033; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003f3f0000400d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003f3f0000400d; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffff88; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffe98; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000064; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7f80ffffff808000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f80ffffff808000; + *((unsigned long *)&__m256i_result[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_result[2]) = 0x007f0000007f7fff; + *((unsigned long *)&__m256i_result[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_result[0]) = 0x007f0000007f7fff; + __m256i_out = __lasx_xvabsd_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-1.c new file mode 100644 index 00000000000..5ce31ebbdc8 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-1.c @@ -0,0 +1,680 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000001f; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000001f; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000001f; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000001f; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x000100da000100fd; + *((unsigned long *)&__m256i_op1[2]) = 0x0001ffe20001fefd; + *((unsigned long *)&__m256i_op1[1]) = 0x0001009a000100fd; + *((unsigned long *)&__m256i_op1[0]) = 0x0001ff640001fefd; + *((unsigned long *)&__m256i_result[3]) = 0x000000edff00fffd; + *((unsigned long *)&__m256i_result[2]) = 0x0000fff10000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000cdff00fffd; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff320000ffff; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_result[3]) = 0xfffe00f7ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffff629d7; + *((unsigned long *)&__m256i_result[1]) = 0xfffe00f7ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffff629d7; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0xa020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0xa020202020206431; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xd010101010101010; + *((unsigned long *)&__m256i_result[2]) = 0xd010101010103218; + *((unsigned long *)&__m256i_result[1]) = 0xd010101010101010; + *((unsigned long *)&__m256i_result[0]) = 0xd010101010103218; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000800200028; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000800200027; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000800000008; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400100013; + *((unsigned long *)&__m256i_result[2]) = 0x0000000400100014; + *((unsigned long *)&__m256i_result[1]) = 0x0000000400100013; + *((unsigned long *)&__m256i_result[0]) = 0x0000000400000004; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavg_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op0[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00010003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00010002; + *((unsigned long *)&__m256i_op1[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00010002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00010002; + *((unsigned long *)&__m256i_result[1]) = 0x0080000200000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00010002; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[1]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op1[0]) = 0x0010001000100010; + *((unsigned long *)&__m256i_result[3]) = 0x0008000800080008; + *((unsigned long *)&__m256i_result[2]) = 0x0008000800080008; + *((unsigned long *)&__m256i_result[1]) = 0x0008000800080008; + *((unsigned long *)&__m256i_result[0]) = 0x0008000800080008; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[3]) = 0x1010101010101013; + *((unsigned long *)&__m256i_result[2]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[1]) = 0x1010101010101013; + *((unsigned long *)&__m256i_result[0]) = 0x1010101010101010; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000006170; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000006170; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000030b8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000030b8; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[0]) = 0x0202010202020102; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010100; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000405; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010100; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000405; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000800080; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000202; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000800080; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000202; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000001000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000001000000010; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_op1[2]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_op1[1]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_op1[0]) = 0x000a000a000a000a; + *((unsigned long *)&__m256i_result[3]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[2]) = 0x0004000500040005; + *((unsigned long *)&__m256i_result[1]) = 0x0004000400040004; + *((unsigned long *)&__m256i_result[0]) = 0x0004000500040005; + __m256i_out = __lasx_xvavg_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_op1[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256i_op1[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op1[0]) = 0xe3aebaf4df958004; + *((unsigned long *)&__m256i_result[3]) = 0xc58a0a0a07070706; + *((unsigned long *)&__m256i_result[2]) = 0x006b60e4180b0023; + *((unsigned long *)&__m256i_result[1]) = 0x1b39153f334b966a; + *((unsigned long *)&__m256i_result[0]) = 0xf1d75d79efcac002; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_result[2]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_result[1]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff00007fff; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffe00000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffff00000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffff00000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x003fffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x003fffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavg_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00007fff7fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff7fffffff; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0080808080808080; + *((unsigned long *)&__m256i_result[2]) = 0x0080808080808080; + *((unsigned long *)&__m256i_result[1]) = 0x0080808100808080; + *((unsigned long *)&__m256i_result[0]) = 0x0080808000808080; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op0[2]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op0[1]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op0[0]) = 0x1111111111111111; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0888888888888888; + *((unsigned long *)&__m256i_result[2]) = 0x0888888888888888; + *((unsigned long *)&__m256i_result[1]) = 0x0888888888888888; + *((unsigned long *)&__m256i_result[0]) = 0x0888888888888888; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffffff; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4010000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x3e6ce7d9cb7afb62; + *((unsigned long *)&__m256i_op0[1]) = 0x4010000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x3e6ce7d9cb7afb62; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2008000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1f3673ece5bd7db1; + *((unsigned long *)&__m256i_result[1]) = 0x2008000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x1f3673ece5bd7db1; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000400000003fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000400000003fff; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000040404000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000040404000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000020202000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000020202000; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_op1[2]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffc01fc01; + *((unsigned long *)&__m256i_op1[0]) = 0x000000003fc03bbc; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffe00fe00; + *((unsigned long *)&__m256i_result[2]) = 0x000000001fe01dde; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffe00fe00; + *((unsigned long *)&__m256i_result[0]) = 0x000000001fe01dde; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000100080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000100080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000080040; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[1]) = 0x0040000000000003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[3]) = 0x0020000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0020000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvavg_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-2.c new file mode 100644 index 00000000000..d04e4275369 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavg-2.c @@ -0,0 +1,560 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_op0[2]) = 0x1d1d1d1d1d1d1d1d; + *((unsigned long *)&__m256i_op0[1]) = 0x61d849f0c0794ced; + *((unsigned long *)&__m256i_op0[0]) = 0xe75278c187b20039; + *((unsigned long *)&__m256i_op1[3]) = 0xf90c0c0c00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0ca40c0c0c0c0cc0; + *((unsigned long *)&__m256i_op1[1]) = 0x0c0c0c0c0cb60cc0; + *((unsigned long *)&__m256i_op1[0]) = 0xfbe0b80c960c96d0; + *((unsigned long *)&__m256i_result[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_result[2]) = 0x146014141414146e; + *((unsigned long *)&__m256i_result[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_result[0]) = 0xf19998668e5f4b84; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000ffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff00fff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000007f7f; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007f7f7f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000007f7f; + *((unsigned long *)&__m256i_result[0]) = 0x000000007f007f78; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff02ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffffffff0100; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fefffeff02ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00030006fa05f20e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00030081bd80f90e; + *((unsigned long *)&__m256i_result[3]) = 0x00007f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[2]) = 0x00010003fc827a86; + *((unsigned long *)&__m256i_result[1]) = 0x00007f7f7f7f0000; + *((unsigned long *)&__m256i_result[0]) = 0x7f017fc0ddbf7d86; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op1[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[3]) = 0x0101000101010001; + *((unsigned long *)&__m256i_result[2]) = 0x0101000101010001; + *((unsigned long *)&__m256i_result[1]) = 0x0101000101010001; + *((unsigned long *)&__m256i_result[0]) = 0x0101000101010001; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x007f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[2]) = 0x7f7f7f7f00000000; + *((unsigned long *)&__m256i_result[1]) = 0x007f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[0]) = 0x7f7f7f7f00000000; + __m256i_out = __lasx_xvavg_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000007f00000022; + *((unsigned long *)&__m256i_op1[0]) = 0x0000007f00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000003f00000011; + *((unsigned long *)&__m256i_result[0]) = 0x0000003f00000000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3fff3fff3fff3fff; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff7fff7fff; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffbfffafffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffbfffaffff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe01fc01fe01fc; + *((unsigned long *)&__m256i_op1[2]) = 0x012c002c001c0006; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe01fc01fe0000; + *((unsigned long *)&__m256i_op1[0]) = 0x012c002c001c000a; + *((unsigned long *)&__m256i_result[3]) = 0x807e80fd80fe80fd; + *((unsigned long *)&__m256i_result[2]) = 0x80938013800d8002; + *((unsigned long *)&__m256i_result[1]) = 0x807e80fd80fe0000; + *((unsigned long *)&__m256i_result[0]) = 0x80938013800d0005; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0002000200020002; + *((unsigned long *)&__m256i_result[3]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x8000800080008000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fff7fff; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff810011; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x3fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[2]) = 0x3fff7fffffc08008; + *((unsigned long *)&__m256i_result[1]) = 0x3fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x3fff7fffffc08008; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[3]) = 0x800000007fff0001; + *((unsigned long *)&__m256i_op1[2]) = 0x80000000ff7f0001; + *((unsigned long *)&__m256i_op1[1]) = 0x800000007fff0001; + *((unsigned long *)&__m256i_op1[0]) = 0x80000000ff7f0001; + *((unsigned long *)&__m256i_result[3]) = 0x800000007fff0000; + *((unsigned long *)&__m256i_result[2]) = 0x80000000ff7f0000; + *((unsigned long *)&__m256i_result[1]) = 0x800000007fff0000; + *((unsigned long *)&__m256i_result[0]) = 0x80000000ff7f0000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_result[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fff7fff0000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000004; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op0[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fc38fc38; + *((unsigned long *)&__m256i_op0[0]) = 0xfc00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_result[2]) = 0x7e00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000007e1c7e1c; + *((unsigned long *)&__m256i_result[0]) = 0x7e00000000000000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffe00800022; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00007fff00400011; + *((unsigned long *)&__m256i_result[2]) = 0x000000008001ffff; + *((unsigned long *)&__m256i_result[1]) = 0x00007fff00400011; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fff7fff; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0a09080706050403; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0a09080706050403; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0504840303028201; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0504840303028201; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000200; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000005000000020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000005000000020; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000002800000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000002800000010; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x40efffe000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x40efffe000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[2]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[1]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_op1[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_result[0]) = 0x7f807f007f7f817f; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x111ebb784f9c4100; + *((unsigned long *)&__m256i_op1[2]) = 0x1c386546809f3b50; + *((unsigned long *)&__m256i_op1[1]) = 0x111ebb784f9bf1ac; + *((unsigned long *)&__m256i_op1[0]) = 0x21f6050d955d3f68; + *((unsigned long *)&__m256i_result[3]) = 0x088f5dbc27ce2080; + *((unsigned long *)&__m256i_result[2]) = 0x161c32a2c04f9da7; + *((unsigned long *)&__m256i_result[1]) = 0x088f5dbc27cdf8d6; + *((unsigned long *)&__m256i_result[0]) = 0x10fb02864aae9fb4; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_op0[1]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_op1[3]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_op1[1]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_result[3]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_result[2]) = 0xfffe0000fffe0012; + *((unsigned long *)&__m256i_result[1]) = 0xfffefffefffeffee; + *((unsigned long *)&__m256i_result[0]) = 0xfffe0000fffe0012; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x0000800080008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x0000800080008000; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000004444; + *((unsigned long *)&__m256i_op1[2]) = 0x00007bbb0000f777; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000004444; + *((unsigned long *)&__m256i_op1[0]) = 0x00007bbb0000f777; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000002222; + *((unsigned long *)&__m256i_result[2]) = 0x00003ddd80007bbb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000002222; + *((unsigned long *)&__m256i_result[0]) = 0x00003ddd80007bbb; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000f0f0; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000f0f0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007878; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007878; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000001e00000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000f00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavg_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-1.c new file mode 100644 index 00000000000..37b78aa1b08 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-1.c @@ -0,0 +1,770 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x5555555536aaaaac; + *((unsigned long *)&__m256i_op0[2]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_op0[1]) = 0x5555555536aaaaac; + *((unsigned long *)&__m256i_op0[0]) = 0x55555555aaaaaaac; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff39ffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff39ffffff; + *((unsigned long *)&__m256i_result[3]) = 0x2b2b2b2b1bd5d5d6; + *((unsigned long *)&__m256i_result[2]) = 0x2a2a2a2af2d5d5d6; + *((unsigned long *)&__m256i_result[1]) = 0x2b2b2b2b1bd5d5d6; + *((unsigned long *)&__m256i_result[0]) = 0x2a2a2a2af2d5d5d6; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000c0; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000c0; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0020002000400040; + *((unsigned long *)&__m256i_op1[2]) = 0x0020002000400040; + *((unsigned long *)&__m256i_op1[1]) = 0x0020002000400040; + *((unsigned long *)&__m256i_op1[0]) = 0x0020002000400040; + *((unsigned long *)&__m256i_result[3]) = 0x0010001000200020; + *((unsigned long *)&__m256i_result[2]) = 0x0010001000200020; + *((unsigned long *)&__m256i_result[1]) = 0x0010001000200020; + *((unsigned long *)&__m256i_result[0]) = 0x0010001000200020; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op1[2]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_op1[1]) = 0x7fe36364661af18f; + *((unsigned long *)&__m256i_op1[0]) = 0x7fe363637fe36363; + *((unsigned long *)&__m256i_result[3]) = 0x40f23232330df9c8; + *((unsigned long *)&__m256i_result[2]) = 0x40f2323240f23232; + *((unsigned long *)&__m256i_result[1]) = 0x40f23232330df9c8; + *((unsigned long *)&__m256i_result[0]) = 0x40f2323240f23232; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100800000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100c00000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0ff000000000f; + *((unsigned long *)&__m256i_op0[2]) = 0x000f00f000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0ff000000000f; + *((unsigned long *)&__m256i_op0[0]) = 0x000f00f000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00f8000000000008; + *((unsigned long *)&__m256i_result[2]) = 0x000800f800000000; + *((unsigned long *)&__m256i_result[1]) = 0x00f8000000000008; + *((unsigned long *)&__m256i_result[0]) = 0x000800f800000000; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000090b0906; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000005060503; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000073737; + __m256i_out = __lasx_xvavgr_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xdff8000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xdff8000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xdff8000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xdff8000000000000; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff7f0000ff7f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff7f0000ff7f; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x4000000000000000; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000fd0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000fd0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007f0000; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256i_op0[2]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256i_op0[1]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256i_op0[0]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_result[2]) = 0xdfc2df80df80df87; + *((unsigned long *)&__m256i_result[1]) = 0xdf80df80df80df80; + *((unsigned long *)&__m256i_result[0]) = 0xdfc2df80df80df87; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256i_op0[2]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256i_op0[1]) = 0xbf00bf00bf00bf00; + *((unsigned long *)&__m256i_op0[0]) = 0xbf84bf00bf00bf0e; + *((unsigned long *)&__m256i_op1[3]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op1[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op1[0]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[3]) = 0xdf80ff20df80ff20; + *((unsigned long *)&__m256i_result[2]) = 0xdfc2ff20df80ffa7; + *((unsigned long *)&__m256i_result[1]) = 0xdf80ff20df80ff20; + *((unsigned long *)&__m256i_result[0]) = 0xdfc2ff20df80ffa7; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op0[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000c0000005; + *((unsigned long *)&__m256i_result[2]) = 0x21f8c3c4c0000005; + *((unsigned long *)&__m256i_result[1]) = 0x00000000c0000005; + *((unsigned long *)&__m256i_result[0]) = 0x21f8c3c4c0000005; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_result[2]) = 0x8848c848c848c848; + *((unsigned long *)&__m256i_result[1]) = 0xc848c848c848c848; + *((unsigned long *)&__m256i_result[0]) = 0x8848c848c848c848; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_result[3]) = 0x4000c08000000080; + *((unsigned long *)&__m256i_result[2]) = 0x00000080c000c080; + *((unsigned long *)&__m256i_result[1]) = 0x4000c08000000080; + *((unsigned long *)&__m256i_result[0]) = 0x00000080c000c080; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3fffffff3fffc000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3fffffff3fffc000; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x007fffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x003fffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x003fffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x003fffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x003fffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x001fffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x001fffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000007ffffffce; + __m256i_out = __lasx_xvavgr_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000001010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000808081; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000808081; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000808081; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000808081; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000f18080010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000f18080010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000078c0c0008000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000078c0c0008000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[2]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[1]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[0]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op1[3]) = 0x1086658a18ba3594; + *((unsigned long *)&__m256i_op1[2]) = 0x160fe9f000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1086658a18ba3594; + *((unsigned long *)&__m256i_op1[0]) = 0x160fe9f000000000; + *((unsigned long *)&__m256i_result[3]) = 0x07a232640bfc1a73; + *((unsigned long *)&__m256i_result[2]) = 0x0a66f497ff9effa9; + *((unsigned long *)&__m256i_result[1]) = 0x07a232640bfc1a73; + *((unsigned long *)&__m256i_result[0]) = 0x0a66f497ff9effa9; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff295329; + *((unsigned long *)&__m256i_op1[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op1[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_result[3]) = 0x007f00f8ff7fff80; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fff6a9d8; + *((unsigned long *)&__m256i_result[1]) = 0x007f00f8ff7fff80; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff6a9d8; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_op0[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000807e7ffe; + *((unsigned long *)&__m256i_op1[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_op1[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000807e7ffe; + *((unsigned long *)&__m256i_result[3]) = 0x7ffe7ffe7ffe7ffe; + *((unsigned long *)&__m256i_result[2]) = 0x000000007ffe7ffe; + *((unsigned long *)&__m256i_result[1]) = 0x7ffe7ffe7ffe8000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000807e7ffe; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x007f8080007f007f; + *((unsigned long *)&__m256i_result[2]) = 0x007f8080007f007f; + *((unsigned long *)&__m256i_result[1]) = 0x007f8080007f007f; + *((unsigned long *)&__m256i_result[0]) = 0x007f8080007f007f; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[3]) = 0xffe37fe3001d001d; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_result[1]) = 0xffe37fe3001d001d; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff8000; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000f00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000700000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000081; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000004a00000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000004a0000002a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000004a00000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000004a0000002a; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000fffffffefffe; + *((unsigned long *)&__m256i_op1[1]) = 0xff7fffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000fffffffefffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000002500000020; + *((unsigned long *)&__m256i_result[2]) = 0x00008024ffff8014; + *((unsigned long *)&__m256i_result[1]) = 0xffc0002500000020; + *((unsigned long *)&__m256i_result[0]) = 0x00008024ffff8014; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000001a00; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000001a00; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000023a20000a121; + *((unsigned long *)&__m256i_op0[2]) = 0x0000179e0000951d; + *((unsigned long *)&__m256i_op0[1]) = 0x000023a20000a121; + *((unsigned long *)&__m256i_op0[0]) = 0x0000179e0000951d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op1[2]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op1[1]) = 0x0000010000000100; + *((unsigned long *)&__m256i_op1[0]) = 0x0000010000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000125100005111; + *((unsigned long *)&__m256i_result[2]) = 0x00000c4f00004b0f; + *((unsigned long *)&__m256i_result[1]) = 0x0000125100005111; + *((unsigned long *)&__m256i_result[0]) = 0x00000c4f00004b0f; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0001000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_result[1]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000080008001; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000457d607d; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff457d607f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000457d607d; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff457d607f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffa2beb040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffa2beb040; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000005858585a; + *((unsigned long *)&__m256i_op0[2]) = 0x000000005858585a; + *((unsigned long *)&__m256i_op0[1]) = 0x000000005858585a; + *((unsigned long *)&__m256i_op0[0]) = 0x000000005858585a; + *((unsigned long *)&__m256i_op1[3]) = 0x000023a300003fff; + *((unsigned long *)&__m256i_op1[2]) = 0x000023a300003fef; + *((unsigned long *)&__m256i_op1[1]) = 0x000023a300003fff; + *((unsigned long *)&__m256i_op1[0]) = 0x000023a300003fef; + *((unsigned long *)&__m256i_result[3]) = 0x000011d1ac2c4c2d; + *((unsigned long *)&__m256i_result[2]) = 0x000011d1ac2c4c25; + *((unsigned long *)&__m256i_result[1]) = 0x000011d1ac2c4c2d; + *((unsigned long *)&__m256i_result[0]) = 0x000011d1ac2c4c25; + __m256i_out = __lasx_xvavgr_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-2.c new file mode 100644 index 00000000000..3944a6ac064 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvavgr-2.c @@ -0,0 +1,650 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[0]) = 0x8080808080808080; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[0]) = 0x8080808080808080; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000018803100188; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000018803100188; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000014402080144; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000086fe0000403e; + *((unsigned long *)&__m256i_op1[2]) = 0x0000403e00004040; + *((unsigned long *)&__m256i_op1[1]) = 0x000086fe0000403e; + *((unsigned long *)&__m256i_op1[0]) = 0x0000403e00004040; + *((unsigned long *)&__m256i_result[3]) = 0x0000437f0000201f; + *((unsigned long *)&__m256i_result[2]) = 0x0000201f00002020; + *((unsigned long *)&__m256i_result[1]) = 0x0000437f0000201f; + *((unsigned long *)&__m256i_result[0]) = 0x0000201f00002020; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x90007fff90008000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0ffffffe90008000; + *((unsigned long *)&__m256i_result[3]) = 0x87ffffff87ffffff; + *((unsigned long *)&__m256i_result[2]) = 0xc880bfffc880c080; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[0]) = 0x87ffffffc880c080; + __m256i_out = __lasx_xvavgr_bu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op0[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000082a54290; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000028aa700; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000082a54290; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000002a54287; + *((unsigned long *)&__m256i_result[3]) = 0x007f00f841532148; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001a753c3; + *((unsigned long *)&__m256i_result[1]) = 0x007f00f841532148; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001b52187; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000004444; + *((unsigned long *)&__m256i_op1[2]) = 0x00007bbb0000f777; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000004444; + *((unsigned long *)&__m256i_op1[0]) = 0x00007bbb0000f777; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000002222; + *((unsigned long *)&__m256i_result[2]) = 0x00003dde00007bbc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000002222; + *((unsigned long *)&__m256i_result[0]) = 0x00003dde00007bbc; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op1[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_result[3]) = 0x4ffc3f783fc040c0; + *((unsigned long *)&__m256i_result[2]) = 0x3fc03f803fc040c0; + *((unsigned long *)&__m256i_result[1]) = 0x4ffc3f783fc040c0; + *((unsigned long *)&__m256i_result[0]) = 0x3fc03f803fc040c0; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0505070804040404; + *((unsigned long *)&__m256i_op0[2]) = 0x0504070804040404; + *((unsigned long *)&__m256i_op0[1]) = 0x0505070804040404; + *((unsigned long *)&__m256i_op0[0]) = 0x0504070804040404; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0283038402020202; + *((unsigned long *)&__m256i_result[2]) = 0x0282038402020202; + *((unsigned long *)&__m256i_result[1]) = 0x0283038402020202; + *((unsigned long *)&__m256i_result[0]) = 0x0282038402020202; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1010101010001000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x101010100000000e; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0889088908810881; + *((unsigned long *)&__m256i_result[2]) = 0x0081010000810100; + *((unsigned long *)&__m256i_result[1]) = 0x0889088900810088; + *((unsigned long *)&__m256i_result[0]) = 0x0081010000810100; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7c00000880008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000001d001d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000080008000; + *((unsigned long *)&__m256i_result[2]) = 0x3e00000440004000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000080008000; + *((unsigned long *)&__m256i_result[0]) = 0x3e000004400f400f; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0100000001000100; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0100000001000100; + *((unsigned long *)&__m256i_op1[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x3abb3abbbabababa; + *((unsigned long *)&__m256i_result[2]) = 0x0080000000800080; + *((unsigned long *)&__m256i_result[1]) = 0x3abb3abbbabababa; + *((unsigned long *)&__m256i_result[0]) = 0x0080000000800080; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xc0008000c0008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xc0008000c0008000; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_hu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00010000; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100020001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000fffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_op1[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256i_op1[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op1[0]) = 0xe3aebaf4df958004; + *((unsigned long *)&__m256i_result[3]) = 0xc5890a0a07070707; + *((unsigned long *)&__m256i_result[2]) = 0x006be0e4180b8024; + *((unsigned long *)&__m256i_result[1]) = 0x1b399540334c966c; + *((unsigned long *)&__m256i_result[0]) = 0x71d7dd7aefcac001; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000808080; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080404040; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op0[2]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op0[1]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op0[0]) = 0x0007000700070007; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[3]) = 0x0003800400038004; + *((unsigned long *)&__m256i_result[2]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_result[1]) = 0x0003800400038004; + *((unsigned long *)&__m256i_result[0]) = 0x000a800b000a800b; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00f9f9f900000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00f9f9f900000002; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007cfcfd80000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007cfcfd80000001; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff8001ffff8001; + *((unsigned long *)&__m256i_op1[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff8001ffff8001; + *((unsigned long *)&__m256i_result[3]) = 0x7fff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffc0017fffc001; + *((unsigned long *)&__m256i_result[1]) = 0x7fff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffc0017fffc001; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0080000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0080000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000000a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000000a; + *((unsigned long *)&__m256i_result[3]) = 0x0040000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[1]) = 0x0040000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000005; + __m256i_out = __lasx_xvavgr_wu (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256i_op0[2]) = 0xc5c085372cfabfba; + *((unsigned long *)&__m256i_op0[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256i_op0[0]) = 0x0658f2dc0eb21e3c; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000501e99b; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000109973de7; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001020f22; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001890b7a39; + *((unsigned long *)&__m256i_result[3]) = 0x1b974ebaf6d64d4e; + *((unsigned long *)&__m256i_result[2]) = 0x62e0429c1b48fed1; + *((unsigned long *)&__m256i_result[1]) = 0x18b985adf63f548c; + *((unsigned long *)&__m256i_result[0]) = 0x032c796ecbdecc3b; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc600000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x6300000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3a2a3a2a3a2a3a2a; + *((unsigned long *)&__m256i_op0[2]) = 0x3a2a3a2a3aaa45aa; + *((unsigned long *)&__m256i_op0[1]) = 0x3a553f7f7a2a3a2a; + *((unsigned long *)&__m256i_op0[0]) = 0x3a2a3a2a3aaa45aa; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x017e00ff017e00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff017e01fe; + *((unsigned long *)&__m256i_result[3]) = 0x1d949d949d949d95; + *((unsigned long *)&__m256i_result[2]) = 0x1d949d949e1423d4; + *((unsigned long *)&__m256i_result[1]) = 0x1de9a03f3dd41d95; + *((unsigned long *)&__m256i_result[0]) = 0x1d949d949e1423d4; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000083f95466; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010100005400; + *((unsigned long *)&__m256i_op1[3]) = 0x001e001ea1bfa1bf; + *((unsigned long *)&__m256i_op1[2]) = 0x001e001e83e5422e; + *((unsigned long *)&__m256i_op1[1]) = 0x001e001ea1bfa1bf; + *((unsigned long *)&__m256i_op1[0]) = 0x011f011f0244420e; + *((unsigned long *)&__m256i_result[3]) = 0x000f000fd0dfd0df; + *((unsigned long *)&__m256i_result[2]) = 0x000f000f83ef4b4a; + *((unsigned long *)&__m256i_result[1]) = 0x000f000fd0dfd0df; + *((unsigned long *)&__m256i_result[0]) = 0x0110011001224b07; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000030000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000030000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000018002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000018002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x223d76f09f3881ff; + *((unsigned long *)&__m256i_op1[2]) = 0x3870ca8d013e76a0; + *((unsigned long *)&__m256i_op1[1]) = 0x223d76f09f37e357; + *((unsigned long *)&__m256i_op1[0]) = 0x43ec0a1b2aba7ed0; + *((unsigned long *)&__m256i_result[3]) = 0x111ebb784f9c4100; + *((unsigned long *)&__m256i_result[2]) = 0x1c386546809f3b50; + *((unsigned long *)&__m256i_result[1]) = 0x111ebb784f9bf1ac; + *((unsigned long *)&__m256i_result[0]) = 0x21f6050d955d3f68; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000840100000000; + *((unsigned long *)&__m256i_op1[2]) = 0xbffebffec0fe0000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000840100000000; + *((unsigned long *)&__m256i_op1[0]) = 0xbffebffec0fe0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000420080000000; + *((unsigned long *)&__m256i_result[2]) = 0x5fff5fff607f0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000420080000000; + *((unsigned long *)&__m256i_result[0]) = 0x5fff5fff607f0000; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000457d607d; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff457d607f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000457d607d; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff457d607f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffa2beb040; + __m256i_out = __lasx_xvavgr_du (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsll_v.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsll_v.c new file mode 100644 index 00000000000..3c1a8b8e61c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsll_v.c @@ -0,0 +1,130 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x555555553f800000; + *((unsigned long *)&__m256i_result[3]) = 0x00555555553f8000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00555555553f8000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x1d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000030000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000030000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020643100000000; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020643100000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[2]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_op0[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[0]) = 0x000b2673a90896a4; + *((unsigned long *)&__m256i_result[3]) = 0xa90896a400000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xa90896a400000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x003f003f003f0040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x003f003f003f0040; + *((unsigned long *)&__m256i_result[3]) = 0x00003f003f003f00; + *((unsigned long *)&__m256i_result[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00003f003f003f00; + *((unsigned long *)&__m256i_result[0]) = 0x4000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsll_v (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsrl_v.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsrl_v.c new file mode 100644 index 00000000000..340f7691b69 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvbsrl_v.c @@ -0,0 +1,64 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000007d0d0d0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000007d0d0d0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000007d0d0d00000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000007d0d0d00000; + __m256i_out = __lasx_xvbsrl_v (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000001fffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0x00000001fffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01fffffffe000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01fffffffe000000; + __m256i_out = __lasx_xvbsrl_v (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000018803100188; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000018803100188; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvbsrl_v (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvbsrl_v (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvneg.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvneg.c new file mode 100644 index 00000000000..3cd1626d419 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvneg.c @@ -0,0 +1,526 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x002e4db200000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000315ac0000d658; + *((unsigned long *)&__m256i_op0[1]) = 0x00735278007cf94c; + *((unsigned long *)&__m256i_op0[0]) = 0x0003ed8800031b38; + *((unsigned long *)&__m256i_result[3]) = 0xffd1b24e00000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffcea54ffff29a8; + *((unsigned long *)&__m256i_result[1]) = 0xff8cad88ff8306b4; + *((unsigned long *)&__m256i_result[0]) = 0xfffc1278fffce4c8; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000ffff8000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x06f880008000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800080008000b8f1; + *((unsigned long *)&__m256i_result[3]) = 0x8000010180000101; + *((unsigned long *)&__m256i_result[2]) = 0xfa08800080000101; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x800080008000480f; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010102; + *((unsigned long *)&__m256i_result[2]) = 0x0101010201010204; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010102; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010102; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010203; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff0e400; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007380; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000f1c00; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000800000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0081000100810001; + *((unsigned long *)&__m256i_result[2]) = 0x0081000100810001; + *((unsigned long *)&__m256i_result[1]) = 0x0081000100810001; + *((unsigned long *)&__m256i_result[0]) = 0x0081000100810001; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x223d76f09f3881ff; + *((unsigned long *)&__m256i_op0[2]) = 0x3870ca8d013e76a0; + *((unsigned long *)&__m256i_op0[1]) = 0x223d76f09f37e357; + *((unsigned long *)&__m256i_op0[0]) = 0x43ec0a1b2aba7ed0; + *((unsigned long *)&__m256i_result[3]) = 0xdec38a1061c87f01; + *((unsigned long *)&__m256i_result[2]) = 0xc8903673ffc28a60; + *((unsigned long *)&__m256i_result[1]) = 0xdec38a1061c91da9; + *((unsigned long *)&__m256i_result[0]) = 0xbd14f6e5d6468230; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000007e8080; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fdda7dc4; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000007e8080; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fdda7dc4; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff827f80; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0226823c; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff827f80; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0226823c; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000180000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000180000001; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000001; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000f000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000f000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff1000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff1000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op0[2]) = 0x000000008000165a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff8000ffa3; + *((unsigned long *)&__m256i_op0[0]) = 0x000000008000165a; + *((unsigned long *)&__m256i_result[3]) = 0xffff00017fff005d; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fffe9a6; + *((unsigned long *)&__m256i_result[1]) = 0xffff00017fff005d; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffe9a6; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0808080808080808; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f8; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f8; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffff0100000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff0100000001; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[2]) = 0x0100004300000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[0]) = 0x0100004300000000; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[2]) = 0xff0000bd00000000; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[0]) = 0xff0000bd00000000; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000010000080040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000010000080040; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff00fff8ffc0; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010001; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000497fe0000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000683fe0000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000497fe0000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000683fe0000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffb6811fffff80; + *((unsigned long *)&__m256i_result[2]) = 0xffff97c120000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffb6811fffff80; + *((unsigned long *)&__m256i_result[0]) = 0xffff97c120000000; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfefefefefdfdfdfd; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[1]) = 0xfefefefefdfdfdfd; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[3]) = 0x0101010202020203; + *((unsigned long *)&__m256i_result[2]) = 0x0101010201010102; + *((unsigned long *)&__m256i_result[1]) = 0x0101010202020203; + *((unsigned long *)&__m256i_result[0]) = 0x0101010201010102; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000032; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000032; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffce; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffce; + __m256i_out = __lasx_xvneg_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvneg_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00007fde00007fd4; + *((unsigned long *)&__m256i_op0[2]) = 0x00007fe000007fe0; + *((unsigned long *)&__m256i_op0[1]) = 0x00007fde00007fd4; + *((unsigned long *)&__m256i_op0[0]) = 0x00007fe000007fe0; + *((unsigned long *)&__m256i_result[3]) = 0x000081220000812c; + *((unsigned long *)&__m256i_result[2]) = 0x0000812000008120; + *((unsigned long *)&__m256i_result[1]) = 0x000081220000812c; + *((unsigned long *)&__m256i_result[0]) = 0x0000812000008120; + __m256i_out = __lasx_xvneg_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000002780; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000002780; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffd880; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffd880; + __m256i_out = __lasx_xvneg_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-1.c new file mode 100644 index 00000000000..b4ac50271f5 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-1.c @@ -0,0 +1,537 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000800080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xc9d8080067f50020; + *((unsigned long *)&__m256i_op0[0]) = 0xc70000020000c000; + *((unsigned long *)&__m256i_result[3]) = 0xf000f00000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000f000f0000000; + *((unsigned long *)&__m256i_result[1]) = 0xf0f008000ff5000f; + *((unsigned long *)&__m256i_result[0]) = 0xf00000020000f000; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000fff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000e000e000e000e; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00003fea00013fec; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fe50001c013; + *((unsigned long *)&__m256i_op0[1]) = 0x00003fea00013fec; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fe50001c013; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff0000ff00; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff0000ff00; + __m256i_out = __lasx_xvsat_b (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000399400003994; + *((unsigned long *)&__m256i_op0[2]) = 0x0000399400003994; + *((unsigned long *)&__m256i_op0[1]) = 0x0000399400003994; + *((unsigned long *)&__m256i_op0[0]) = 0x0000399400003994; + *((unsigned long *)&__m256i_result[3]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_result[2]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_result[1]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_result[0]) = 0x00000fff00000fff; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[2]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[1]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_op0[0]) = 0xfebdff3eff3dff52; + *((unsigned long *)&__m256i_result[3]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_result[2]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_result[1]) = 0xffc0ffc0ffc0ffc0; + *((unsigned long *)&__m256i_result[0]) = 0xffc0ffc0ffc0ffc0; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00002df900001700; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffe05ffffe911; + *((unsigned long *)&__m256i_op0[1]) = 0x00002df900001700; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffe05ffffe911; + *((unsigned long *)&__m256i_result[3]) = 0x0000000300000003; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffcfffffffc; + *((unsigned long *)&__m256i_result[1]) = 0x0000000300000003; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffcfffffffc; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffdd97dc4; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffdd97dc4; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffdd97dc4; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff0001; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffdd97dc4; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000014402080144; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000014402080144; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000007f007f007f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000007f007f007f; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000003fffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000003fffff; + __m256i_out = __lasx_xvsat_h (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0002000200000022; + *((unsigned long *)&__m256i_op0[0]) = 0x0049004200000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000007f00000022; + *((unsigned long *)&__m256i_result[0]) = 0x0000007f00000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffefffffefd; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00c200c200c200c2; + *((unsigned long *)&__m256i_op0[2]) = 0x00c200c200c200bb; + *((unsigned long *)&__m256i_op0[1]) = 0x00c200c200c200c2; + *((unsigned long *)&__m256i_op0[0]) = 0x00c200c200c200bb; + *((unsigned long *)&__m256i_result[3]) = 0x007fffff007fffff; + *((unsigned long *)&__m256i_result[2]) = 0x007fffff007fffff; + *((unsigned long *)&__m256i_result[1]) = 0x007fffff007fffff; + *((unsigned long *)&__m256i_result[0]) = 0x007fffff007fffff; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x17); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001ffff0001ffff; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000080000001000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000080000000800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000080000001000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000080000000800; + *((unsigned long *)&__m256i_result[3]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000f0000000f; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[2]) = 0x000b8f81b8c840e4; + *((unsigned long *)&__m256i_op0[1]) = 0x000050504c4c2362; + *((unsigned long *)&__m256i_op0[0]) = 0x000b8f81b8c840e4; + *((unsigned long *)&__m256i_result[3]) = 0x000007ff000007ff; + *((unsigned long *)&__m256i_result[2]) = 0x000007fffffff800; + *((unsigned long *)&__m256i_result[1]) = 0x000007ff000007ff; + *((unsigned long *)&__m256i_result[0]) = 0x000007fffffff800; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0xb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x12); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x10); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0x13); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_w (__m256i_op0, 0xf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op0[2]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op0[1]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_op0[0]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffc00000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffc00000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffc00000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffc00000000; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x22); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff605a; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff605a; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x2d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256i_op0[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffff8d9ffa7103d; + *((unsigned long *)&__m256i_result[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256i_result[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffff8d9ffa7103d; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x39); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x21); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[2]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[1]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_op0[0]) = 0xc2c2c2c2c2c2c2c2; + *((unsigned long *)&__m256i_result[3]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffe000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffe000000000000; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x31); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000001ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000001ffffffff; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x21); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x3d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x1c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op0[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[3]) = 0x0fffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0fffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0fffffffffffffff; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x3c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff8; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000002c21ffeff; + *((unsigned long *)&__m256i_op0[2]) = 0xc0000000c0000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000002c21ffeff; + *((unsigned long *)&__m256i_op0[0]) = 0xc0000000c0000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff8; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_d (__m256i_op0, 0x32); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-2.c new file mode 100644 index 00000000000..e5ee89debc3 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvsat-2.c @@ -0,0 +1,427 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x3f3f3f3f3f3f3f3f; + *((unsigned long *)&__m256i_result[2]) = 0x3f3f3f3f3f3f3f3f; + *((unsigned long *)&__m256i_result[1]) = 0x000000003f3f3f3f; + *((unsigned long *)&__m256i_result[0]) = 0x3f3f3f3f00000000; + __m256i_out = __lasx_xvsat_bu (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_bu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvsat_bu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001ffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfe00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000017f7f7f; + *((unsigned long *)&__m256i_result[2]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000017f7f7f; + *((unsigned long *)&__m256i_result[0]) = 0x7f00000000000000; + __m256i_out = __lasx_xvsat_bu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000700000007; + *((unsigned long *)&__m256i_op0[2]) = 0x0007ffff0007ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000700000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0007ffff0007ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000700000007; + *((unsigned long *)&__m256i_result[2]) = 0x00071f1f00071f1f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000700000007; + *((unsigned long *)&__m256i_result[0]) = 0x00071f1f00071f1f; + __m256i_out = __lasx_xvsat_bu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvsat_bu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_result[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[0]) = 0x000000003fff3fff; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020206431; + *((unsigned long *)&__m256i_op0[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x2020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[2]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[1]) = 0x001f001f001f001f; + *((unsigned long *)&__m256i_result[0]) = 0x001f001f001f001f; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[2]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[1]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[0]) = 0x00001fff00001fff; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0xa); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000003f003f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000003f003f; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xc0090000c0200060; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xc0090000c0200060; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x007f0000007f0060; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256i_op0[2]) = 0x408480007fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256i_op0[0]) = 0x408480007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0003000300030003; + *((unsigned long *)&__m256i_result[2]) = 0x0003000300030000; + *((unsigned long *)&__m256i_result[1]) = 0x0003000300030003; + *((unsigned long *)&__m256i_result[0]) = 0x0003000300030000; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000029170; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001fff000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000029170; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000203ff; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_hu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x14); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[2]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_op0[1]) = 0x457db03e457db03e; + *((unsigned long *)&__m256i_op0[0]) = 0x457db03e45a87310; + *((unsigned long *)&__m256i_result[3]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000f0000000f; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000077fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x11); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003fe000000000; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x15); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fffcfffc; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffcfffc; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fffcfffc; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffcfffc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000003fff; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[2]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7efefefe80ffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0fffffff0fffffff; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffe000ffffffff08; + *((unsigned long *)&__m256i_op0[1]) = 0xffe000ffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffe000ffffffff08; + *((unsigned long *)&__m256i_result[3]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0fffffff0fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0fffffff0fffffff; + __m256i_out = __lasx_xvsat_wu (__m256i_op0, 0x1b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000003ffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x000003ffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x000003ffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x000003ffffffffff; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x29); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x34); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[3]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_result[1]) = 0x0001ffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x30); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_op0[2]) = 0x2475cef801f0ffdd; + *((unsigned long *)&__m256i_op0[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_op0[0]) = 0x419cd5b11c3c5654; + *((unsigned long *)&__m256i_result[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_result[2]) = 0x2475cef801f0ffdd; + *((unsigned long *)&__m256i_result[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_result[0]) = 0x419cd5b11c3c5654; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x3f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x22); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000001ff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000001ff; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1fa0000000080000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000007fffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000007fffff; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x16); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000017f00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00007f7f03030000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000017f00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00007f7f03030000; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x37); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvsat_du (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:43:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp840068vqx; Tue, 12 Sep 2023 21:06:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkRfTsyzHHUgad9IIVtJcJH1QjYaXaT1nFWEXKRpPDeoLl57wIWhZKNUKPci6u57xFyEcC X-Received: by 2002:a05:6402:5145:b0:523:493e:929c with SMTP id n5-20020a056402514500b00523493e929cmr1195404edd.10.1694577994698; Tue, 12 Sep 2023 21:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694577994; cv=none; d=google.com; s=arc-20160816; b=xf3fPKZzoSy29nO1HZWN/W6E+v6SUnX7qOfctpvtlfhPl094NHpvUXCvUmrkHf/ZuC aoMTFv9x86DCVILjvCM3eRVEMPWXrRhBhEgtpte+y0j7Z3ddXfDMQkY3pyCs/aZKkCrH WkosVLhSgB1+Xm+imAgEMHFdoBsLsAyHGQ+7b0bdqTX6KLRQp3Qprs3HoPYDHauBXdCG BaRk0XsjMyyAVuRDr78C/MbE0btNajOo/UaFaAZ8cQBBj4O9jY+H0p9tNZT1LApiL98E g7NcsccGeFY6VvjtKfaDiz+ujRDU4jUjcQYUZuXJ97nJR5rQlnySIMnIm3jIPSkK0Pip sJRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=1Bwu4F/GCoAhf0A8xOIBeRYaUlXkryNBNQ5v71czOeg=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=Hy97aI61OVM6oNF4XG75S6tFkQE1QMlsLpKb44cSLZWQOu2zOTL37pJ8+k+kJCt9Jd n+/iKtvOCNykvoZLKuVSAW80CO5eOyrSDpMQkuW9goW326CIpXKhBL0ViYuDIOKuXV0J TIHwLNaCBJfdz1jsjhw6GC/nr1FCZ23d9V9i+upw6Rr8rUWwyoSMt23ppgsxxotKztTK Wr8TXvGPbNB5iNv40Iq9HX+mWdsJhbUbFrnRPnqnB2PAGEvFDSf46kVh2LQfmOmtEO5q CfI/XGK6OeLKxwIacASmjyoV0rbkCU8NA7bvAqx5gvDNi2+kkl7RXEX70wusgrgvyQnN f/4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ez20-20020a056402451400b0052fa7d7d816si2310903edb.587.2023.09.12.21.06.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CA7A13800C07 for ; Wed, 13 Sep 2023 03:44:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 7DE5138311AB for ; Wed, 13 Sep 2023 03:43:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DE5138311AB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGmX-0005eB-HH for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:43:20 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8Cx2erLLwFlrzEmAA--.3553S3; Wed, 13 Sep 2023 11:43:07 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_y_KLwFl2BECAA--.3467S4; Wed, 13 Sep 2023 11:43:06 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 19/22] LoongArch: Add tests for ASX vector xvfcmp{caf/ceq/cle/clt/cne/cor/cun} instructions. Date: Wed, 13 Sep 2023 11:43:05 +0800 Message-Id: <20230913034305.8325-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Dx_y_KLwFl2BECAA--.3467S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBWgAAsI X-Coremail-Antispam: 1Uk129KBj97XoW8CrWfGFyDWrW5Kr45KoXrpr4kZFWfGoWUCr 1UZrs3Can3Jw1rJw1fZ340q3W8G3Zxtr17Ars0yFZFgw4av34rAF1rJF1UKr4xJFy7Zw1I qr1kGw1rJr4kl-sFpf9Il3svdjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8wcxFpf9Il3 svdxBIdaVrn0xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIY CTnIWjp_UUUYk7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcI k0rVWrJVCq3wAFIxvE14AKwVWUGVWUXwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK 021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r 4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r45tVCq3wAv7VC2z280 aVAFwI0_Gr1j6F4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7xvrV CFI7AF6II2Y40_Zr0_Gr1UMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4U MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67 AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26w1j6s0DMIIF0xvE2Ix0 cI8IcVCY1x0267AKxVW8Jr0_Cr1UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I 8E87Iv67AKxVW8Jr0_Cr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJbIYCTnIWIev Ja73UjIFyTuYvjxUvdOzUUUUU Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893815066428959 X-GMAIL-MSGID: 1776893815066428959 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_caf_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_ceq_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cle_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_clt_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cne_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cor_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cun_s.c: New test. --- .../loongarch/vector/lasx/lasx-xvfcmp_caf_s.c | 446 ++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_ceq_s.c | 977 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_cle_s.c | 759 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_clt_s.c | 675 ++++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_cne_s.c | 872 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_cor_s.c | 340 ++++++ .../loongarch/vector/lasx/lasx-xvfcmp_cun_s.c | 361 +++++++ 7 files changed, 4430 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_caf_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_ceq_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cle_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_clt_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cne_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cor_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cun_s.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_caf_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_caf_s.c new file mode 100644 index 00000000000..fa3372358d6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_caf_s.c @@ -0,0 +1,446 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xff56ff55; + *((int *)&__m256_op0[4]) = 0xff01ff01; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xff56ff55; + *((int *)&__m256_op0[0]) = 0xff01ff01; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x0000abff; + *((int *)&__m256_op1[4]) = 0x0000abff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x0000abff; + *((int *)&__m256_op1[0]) = 0x0000abff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000001; + *((int *)&__m256_op0[4]) = 0x0000000a; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000001; + *((int *)&__m256_op0[0]) = 0x0000000a; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000040; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x5d20a0a1; + *((int *)&__m256_op1[6]) = 0x5d20a0a1; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x5d20a0a1; + *((int *)&__m256_op1[2]) = 0x5d20a0a1; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0003ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffff8000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffff8000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffff8000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffff8000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xe07de080; + *((int *)&__m256_op0[4]) = 0x1f20607a; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xe07de080; + *((int *)&__m256_op0[0]) = 0x1f20607a; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xe07de080; + *((int *)&__m256_op1[4]) = 0x1f20607a; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xe07de080; + *((int *)&__m256_op1[0]) = 0x1f20607a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xe07de080; + *((int *)&__m256_op1[4]) = 0x1f20607a; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xe07de080; + *((int *)&__m256_op1[0]) = 0x1f20607a; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000010; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000010; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xa5a5a5a5a5a5a5a5; + *((unsigned long *)&__m256d_op1[2]) = 0xa5a5a5a5a5a99e03; + *((unsigned long *)&__m256d_op1[1]) = 0xa5a5a5a5a5a5a5a5; + *((unsigned long *)&__m256d_op1[0]) = 0xa5a5a5a5a5a99e03; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000045; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000045; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000000d0005; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000045; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000000d0005; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000045; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000d0005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x24342434ffff2435; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x24342434ffff2435; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000013; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000013; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000013; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000013; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256d_op0[2]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256d_op0[1]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256d_op0[0]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_caf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_ceq_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_ceq_s.c new file mode 100644 index 00000000000..6d6649f6fbc --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_ceq_s.c @@ -0,0 +1,977 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00010101; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00010100; + *((int *)&__m256_op0[1]) = 0x00010000; + *((int *)&__m256_op0[0]) = 0x01000100; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xbf7f7fff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xe651bfff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x000000ff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x000000ff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x0000ffff; + *((int *)&__m256_op1[6]) = 0xc0008001; + *((int *)&__m256_op1[5]) = 0x0000ffff; + *((int *)&__m256_op1[4]) = 0xc0008001; + *((int *)&__m256_op1[3]) = 0x0000ffff; + *((int *)&__m256_op1[2]) = 0xc0008001; + *((int *)&__m256_op1[1]) = 0x0000ffff; + *((int *)&__m256_op1[0]) = 0xc0008001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffc6ffc6; + *((int *)&__m256_op0[6]) = 0x003a003a; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffc6ffc6; + *((int *)&__m256_op0[2]) = 0x003a003a; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x71717171; + *((int *)&__m256_op1[6]) = 0x71010101; + *((int *)&__m256_op1[5]) = 0x8e8e8e8e; + *((int *)&__m256_op1[4]) = 0x8f00ffff; + *((int *)&__m256_op1[3]) = 0x71717171; + *((int *)&__m256_op1[2]) = 0x71010101; + *((int *)&__m256_op1[1]) = 0x8e8e8e8e; + *((int *)&__m256_op1[0]) = 0x8f00ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x000e000e; + *((int *)&__m256_op1[4]) = 0x000e000e; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x000e000e; + *((int *)&__m256_op1[0]) = 0x000e000e; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000043; + *((int *)&__m256_op0[4]) = 0x0207f944; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000043; + *((int *)&__m256_op0[0]) = 0x0207f944; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000001; + *((int *)&__m256_op1[6]) = 0x9ffdf403; + *((int *)&__m256_op1[5]) = 0x00000001; + *((int *)&__m256_op1[4]) = 0x1ffd97c3; + *((int *)&__m256_op1[3]) = 0x00000001; + *((int *)&__m256_op1[2]) = 0x9ffdf403; + *((int *)&__m256_op1[1]) = 0x00000001; + *((int *)&__m256_op1[0]) = 0x1ffd97c3; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x7fff7fff; + *((int *)&__m256_op0[4]) = 0x7fff7fff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x7fff7fff; + *((int *)&__m256_op0[0]) = 0x7fff7fff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000808; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xbea2e127; + *((int *)&__m256_op1[6]) = 0xc046721f; + *((int *)&__m256_op1[5]) = 0x1729c073; + *((int *)&__m256_op1[4]) = 0x816edebe; + *((int *)&__m256_op1[3]) = 0xde91f010; + *((int *)&__m256_op1[2]) = 0x000006f9; + *((int *)&__m256_op1[1]) = 0x5ef1f90e; + *((int *)&__m256_op1[0]) = 0xfefaf30d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000200; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000200; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000200; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000200; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000009; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000009; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000009; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffb80000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffb80000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000ffff; + *((int *)&__m256_op0[6]) = 0x0000ffff; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x0000ffff; + *((int *)&__m256_op0[2]) = 0x0000ffff; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfff0fff0; + *((int *)&__m256_op0[6]) = 0xff01ff01; + *((int *)&__m256_op0[5]) = 0xfff0fff0; + *((int *)&__m256_op0[4]) = 0xfff0fff0; + *((int *)&__m256_op0[3]) = 0xfff0fff0; + *((int *)&__m256_op0[2]) = 0xff01ff01; + *((int *)&__m256_op0[1]) = 0xfff0fff0; + *((int *)&__m256_op0[0]) = 0xfff0fff0; + *((int *)&__m256_op1[7]) = 0xffefffef; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xffefffef; + *((int *)&__m256_op1[4]) = 0xffefffef; + *((int *)&__m256_op1[3]) = 0xffefffef; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xffefffef; + *((int *)&__m256_op1[0]) = 0xffefffef; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x0000ffb1; + *((int *)&__m256_op1[6]) = 0x0001ff8f; + *((int *)&__m256_op1[5]) = 0x0001004c; + *((int *)&__m256_op1[4]) = 0x0001ff87; + *((int *)&__m256_op1[3]) = 0x0000ffb1; + *((int *)&__m256_op1[2]) = 0x0001ff8f; + *((int *)&__m256_op1[1]) = 0x0001004c; + *((int *)&__m256_op1[0]) = 0x0001ff87; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00010001; + *((int *)&__m256_op1[6]) = 0x00010001; + *((int *)&__m256_op1[5]) = 0x00010001; + *((int *)&__m256_op1[4]) = 0x00010001; + *((int *)&__m256_op1[3]) = 0x00010001; + *((int *)&__m256_op1[2]) = 0x00010001; + *((int *)&__m256_op1[1]) = 0x00010001; + *((int *)&__m256_op1[0]) = 0x00010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffff0000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffff0000; + *((int *)&__m256_op0[4]) = 0xffff0000; + *((int *)&__m256_op0[3]) = 0xffff0000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffff0000; + *((int *)&__m256_op0[0]) = 0xffff0000; + *((int *)&__m256_op1[7]) = 0x007f8080; + *((int *)&__m256_op1[6]) = 0x007f007f; + *((int *)&__m256_op1[5]) = 0x007f8080; + *((int *)&__m256_op1[4]) = 0x007f007f; + *((int *)&__m256_op1[3]) = 0x007f8080; + *((int *)&__m256_op1[2]) = 0x007f007f; + *((int *)&__m256_op1[1]) = 0x007f8080; + *((int *)&__m256_op1[0]) = 0x007f007f; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000033; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000033; + *((int *)&__m256_op1[7]) = 0x00004200; + *((int *)&__m256_op1[6]) = 0x80000000; + *((int *)&__m256_op1[5]) = 0x5fff5fff; + *((int *)&__m256_op1[4]) = 0x607f0000; + *((int *)&__m256_op1[3]) = 0x00004200; + *((int *)&__m256_op1[2]) = 0x80000000; + *((int *)&__m256_op1[1]) = 0x5fff5fff; + *((int *)&__m256_op1[0]) = 0x607f0000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x7fff8000; + *((int *)&__m256_op1[6]) = 0x7fff0000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00008000; + *((int *)&__m256_op1[3]) = 0x7fff8000; + *((int *)&__m256_op1[2]) = 0x7fff0000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00008000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0x00100010; + *((int *)&__m256_op1[6]) = 0x00030000; + *((int *)&__m256_op1[5]) = 0x00100010; + *((int *)&__m256_op1[4]) = 0x00030000; + *((int *)&__m256_op1[3]) = 0x00100010; + *((int *)&__m256_op1[2]) = 0x00030000; + *((int *)&__m256_op1[1]) = 0x00100010; + *((int *)&__m256_op1[0]) = 0x00030000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xf90c0c0c00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0ca40c0c0c0c0cc0; + *((unsigned long *)&__m256d_op0[1]) = 0x0c0c0c0c0cb60cc0; + *((unsigned long *)&__m256d_op0[0]) = 0xfbe0b80c960c96d0; + *((unsigned long *)&__m256d_op1[3]) = 0x1b9763952fc4c101; + *((unsigned long *)&__m256d_op1[2]) = 0xe37affb42fc05f69; + *((unsigned long *)&__m256d_op1[1]) = 0x18b988e64facb558; + *((unsigned long *)&__m256d_op1[0]) = 0xe5fb66c81da8e5bb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x001e001ea1bfa1bf; + *((unsigned long *)&__m256d_op0[2]) = 0x001e001e83e5422e; + *((unsigned long *)&__m256d_op0[1]) = 0x001e001ea1bfa1bf; + *((unsigned long *)&__m256d_op0[0]) = 0x011f011f0244420e; + *((unsigned long *)&__m256d_op1[3]) = 0xfffe00f7ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xfffffffffff629d7; + *((unsigned long *)&__m256d_op1[1]) = 0xfffe00f7ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xfffffffffff629d7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000200; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000200; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000200; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000200; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000000007ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x000000000007ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x000000000007ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x000000000007ffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfc003802fc000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xfc003802fc000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x7ffffffffffffffe; + *((unsigned long *)&__m256d_op1[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x7ffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256d_op1[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256d_op1[1]) = 0x6018000000000cd1; + *((unsigned long *)&__m256d_op1[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256d_op0[2]) = 0x408480007fff0000; + *((unsigned long *)&__m256d_op0[1]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256d_op0[0]) = 0x408480007fff0000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffff00ff800000; + *((unsigned long *)&__m256d_op0[1]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffff00ff800000; + *((unsigned long *)&__m256d_op1[3]) = 0xffe6ffe6e6800001; + *((unsigned long *)&__m256d_op1[2]) = 0x19660019ff806680; + *((unsigned long *)&__m256d_op1[1]) = 0xffe6ffe6e6800001; + *((unsigned long *)&__m256d_op1[0]) = 0x19660019ff806680; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000010100000101; + *((unsigned long *)&__m256d_op1[2]) = 0x0000010100000101; + *((unsigned long *)&__m256d_op1[1]) = 0x0000010100000101; + *((unsigned long *)&__m256d_op1[0]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_ceq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000001000000010; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000001000000010; + *((unsigned long *)&__m256d_op1[3]) = 0x45d5555545d55555; + *((unsigned long *)&__m256d_op1[2]) = 0x74555555e8aaaaaa; + *((unsigned long *)&__m256d_op1[1]) = 0x45d5555545d55555; + *((unsigned long *)&__m256d_op1[0]) = 0x74555555e8aaaaaa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256d_op1[2]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256d_op1[1]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256d_op1[0]) = 0xfffffffffffffff6; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0003030300000300; + *((unsigned long *)&__m256d_op0[2]) = 0x0003030300000300; + *((unsigned long *)&__m256d_op0[1]) = 0x0003030300000100; + *((unsigned long *)&__m256d_op0[0]) = 0x0003030300000100; + *((unsigned long *)&__m256d_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffff0000; + *((unsigned long *)&__m256d_op1[3]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256d_op1[2]) = 0x408480007fff0000; + *((unsigned long *)&__m256d_op1[1]) = 0x3eab77367fff4848; + *((unsigned long *)&__m256d_op1[0]) = 0x408480007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff0007a861; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff0007a861; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000007f00000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000007f00000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000007f00000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000007f00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffefffffffeff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cle_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cle_s.c new file mode 100644 index 00000000000..a64dd759812 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cle_s.c @@ -0,0 +1,759 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0018796d; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00fffb04; + *((int *)&__m256_op0[6]) = 0x02fddf20; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00fffb04; + *((int *)&__m256_op0[2]) = 0x02fddf20; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x41dfffc0; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x41dfffdf; + *((int *)&__m256_op1[2]) = 0xffc00000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffee; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffee; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffee; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffee; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x01fe007a; + *((int *)&__m256_op0[6]) = 0x01c40110; + *((int *)&__m256_op0[5]) = 0x019d00a2; + *((int *)&__m256_op0[4]) = 0x0039fff9; + *((int *)&__m256_op0[3]) = 0x01fe007a; + *((int *)&__m256_op0[2]) = 0x01c40110; + *((int *)&__m256_op0[1]) = 0x019d00a2; + *((int *)&__m256_op0[0]) = 0x003a0000; + *((int *)&__m256_op1[7]) = 0x0000fffe; + *((int *)&__m256_op1[6]) = 0x00800022; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x0000fffe; + *((int *)&__m256_op1[2]) = 0x00800022; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x7fff7ffe; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x7fff7ffe; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000002; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000002; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000002; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000002; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x04000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x04000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x04000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x04000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000040; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000040; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00010001; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00010001; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00010001; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_cle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xe161616161614e60; + *((unsigned long *)&__m256d_op0[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256d_op0[1]) = 0xe161616161614e60; + *((unsigned long *)&__m256d_op0[0]) = 0xe161616161614e60; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000007773; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000003373; + *((unsigned long *)&__m256d_op1[3]) = 0x1616161616161616; + *((unsigned long *)&__m256d_op1[2]) = 0x161616167fffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x7ffe16167f161616; + *((unsigned long *)&__m256d_op1[0]) = 0x161616167fffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffcc8000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x000000007dfdff4b; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xbabababababababa; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010183f9999b; + *((unsigned long *)&__m256d_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[1]) = 0x01010101d58f43c9; + *((unsigned long *)&__m256d_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff00000001; + *((unsigned long *)&__m256d_op0[2]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff00000001; + *((unsigned long *)&__m256d_op0[0]) = 0x1010100f10100fd4; + *((unsigned long *)&__m256d_op1[3]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op1[2]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op1[1]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op1[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0100000001000100; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0100000001000100; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000002070145; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000002070145; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff0007a861; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff0007a861; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x1b976395; + *((int *)&__m256_op0[6]) = 0x2fc4c101; + *((int *)&__m256_op0[5]) = 0xe37affb4; + *((int *)&__m256_op0[4]) = 0x2fc05f69; + *((int *)&__m256_op0[3]) = 0x18b988e6; + *((int *)&__m256_op0[2]) = 0x4facb558; + *((int *)&__m256_op0[1]) = 0xe5fb66c8; + *((int *)&__m256_op0[0]) = 0x1da8e5bb; + *((int *)&__m256_op1[7]) = 0x01a72334; + *((int *)&__m256_op1[6]) = 0xffff00ff; + *((int *)&__m256_op1[5]) = 0xff4f6838; + *((int *)&__m256_op1[4]) = 0xff937648; + *((int *)&__m256_op1[3]) = 0x00a2afb7; + *((int *)&__m256_op1[2]) = 0xfff00ecb; + *((int *)&__m256_op1[1]) = 0xffce110f; + *((int *)&__m256_op1[0]) = 0x004658c7; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x00001000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00001000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000ff00; + *((int *)&__m256_op0[6]) = 0x0000ffff; + *((int *)&__m256_op0[5]) = 0x000000ff; + *((int *)&__m256_op0[4]) = 0x000000ff; + *((int *)&__m256_op0[3]) = 0x0000ff00; + *((int *)&__m256_op0[2]) = 0x0000ffff; + *((int *)&__m256_op0[1]) = 0x000000ff; + *((int *)&__m256_op0[0]) = 0x000000ff; + *((int *)&__m256_op1[7]) = 0x0000ffee; + *((int *)&__m256_op1[6]) = 0x0000ff4c; + *((int *)&__m256_op1[5]) = 0x0000ff05; + *((int *)&__m256_op1[4]) = 0x0000ff3c; + *((int *)&__m256_op1[3]) = 0x0000fff9; + *((int *)&__m256_op1[2]) = 0x0000ff78; + *((int *)&__m256_op1[1]) = 0x0000ffa8; + *((int *)&__m256_op1[0]) = 0x0000ff31; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffff0000; + *((int *)&__m256_op1[4]) = 0xffff0000; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffff0000; + *((int *)&__m256_op1[0]) = 0xffff0000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000ff01; + *((int *)&__m256_op0[6]) = 0x00ff0000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000ff01; + *((int *)&__m256_op0[3]) = 0x0000ff01; + *((int *)&__m256_op0[2]) = 0x00ff0000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ff01; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00010000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00010000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x02000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x02000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x01010000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x01010000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffff0101; + *((int *)&__m256_op1[4]) = 0x00000001; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffff0101; + *((int *)&__m256_op1[0]) = 0x00000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffffffb; + *((int *)&__m256_op0[6]) = 0xfffffffb; + *((int *)&__m256_op0[5]) = 0xfffffffb; + *((int *)&__m256_op0[4]) = 0xfffffffb; + *((int *)&__m256_op0[3]) = 0xfffffffb; + *((int *)&__m256_op0[2]) = 0xfffffffb; + *((int *)&__m256_op0[1]) = 0xfffffffb; + *((int *)&__m256_op0[0]) = 0xfffffffb; + *((int *)&__m256_op1[7]) = 0x0000ffff; + *((int *)&__m256_op1[6]) = 0x0001000e; + *((int *)&__m256_op1[5]) = 0x0000ffff; + *((int *)&__m256_op1[4]) = 0x0000ffff; + *((int *)&__m256_op1[3]) = 0x0000ffff; + *((int *)&__m256_op1[2]) = 0x0000ffff; + *((int *)&__m256_op1[1]) = 0x0000ffff; + *((int *)&__m256_op1[0]) = 0x0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x8080808280808082; + *((unsigned long *)&__m256d_op0[2]) = 0x8080808280808082; + *((unsigned long *)&__m256d_op0[1]) = 0x8080808280808080; + *((unsigned long *)&__m256d_op0[0]) = 0x8080808280808082; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xfffeffff10000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xfffeffff10000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0c6a240000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0f00204000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0c6a240000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0f00204000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_clt_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_clt_s.c new file mode 100644 index 00000000000..733cc00eed4 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_clt_s.c @@ -0,0 +1,675 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xfe02fe02; + *((int *)&__m256_op0[2]) = 0xfee5fe22; + *((int *)&__m256_op0[1]) = 0xff49fe42; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x0000ffff; + *((int *)&__m256_op1[6]) = 0x0000ff80; + *((int *)&__m256_op1[5]) = 0x00004686; + *((int *)&__m256_op1[4]) = 0x00007f79; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0x0000ffff; + *((int *)&__m256_op1[1]) = 0x0000f328; + *((int *)&__m256_op1[0]) = 0x0000dfff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x01000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x01000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffff80cb; + *((int *)&__m256_op1[6]) = 0xfffffdf8; + *((int *)&__m256_op1[5]) = 0x00000815; + *((int *)&__m256_op1[4]) = 0x00000104; + *((int *)&__m256_op1[3]) = 0xffffffa4; + *((int *)&__m256_op1[2]) = 0xfffffffd; + *((int *)&__m256_op1[1]) = 0x00000007; + *((int *)&__m256_op1[0]) = 0x00000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffff0000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00003f3f; + *((int *)&__m256_op1[4]) = 0xc6c68787; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00003f3f; + *((int *)&__m256_op1[0]) = 0x87870000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000002; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0x0101ffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0x0101ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x01000100; + *((int *)&__m256_op0[6]) = 0x01000100; + *((int *)&__m256_op0[5]) = 0x01000100; + *((int *)&__m256_op0[4]) = 0x01000100; + *((int *)&__m256_op0[3]) = 0x01000100; + *((int *)&__m256_op0[2]) = 0x01000100; + *((int *)&__m256_op0[1]) = 0x01000100; + *((int *)&__m256_op0[0]) = 0x01000100; + *((int *)&__m256_op1[7]) = 0x7f800000; + *((int *)&__m256_op1[6]) = 0x7f800000; + *((int *)&__m256_op1[5]) = 0x62d2acee; + *((int *)&__m256_op1[4]) = 0x7fc00000; + *((int *)&__m256_op1[3]) = 0x7f800000; + *((int *)&__m256_op1[2]) = 0x7f800000; + *((int *)&__m256_op1[1]) = 0x62d2acee; + *((int *)&__m256_op1[0]) = 0x7fc00000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000ff01; + *((int *)&__m256_op0[6]) = 0x00ff0000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000ff01; + *((int *)&__m256_op0[3]) = 0x0000ff01; + *((int *)&__m256_op0[2]) = 0x00ff0000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ff01; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000808; + *((int *)&__m256_op1[4]) = 0x00000808; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000808; + *((int *)&__m256_op1[0]) = 0x00000808; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffff8000; + *((int *)&__m256_op0[5]) = 0x7efefefe; + *((int *)&__m256_op0[4]) = 0x80ffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x7efefefe; + *((int *)&__m256_op0[0]) = 0x80ffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_clt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x0001ffaa; + *((int *)&__m256_op1[6]) = 0x0000040e; + *((int *)&__m256_op1[5]) = 0x00007168; + *((int *)&__m256_op1[4]) = 0x00007bb6; + *((int *)&__m256_op1[3]) = 0x0001ffe8; + *((int *)&__m256_op1[2]) = 0x0001fe9c; + *((int *)&__m256_op1[1]) = 0x00002282; + *((int *)&__m256_op1[0]) = 0x00001680; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x55555501; + *((int *)&__m256_op0[4]) = 0xfefefeab; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x01010101; + *((int *)&__m256_op0[1]) = 0x55555501; + *((int *)&__m256_op0[0]) = 0xfefefeab; + *((int *)&__m256_op1[7]) = 0x00000105; + *((int *)&__m256_op1[6]) = 0xfffffefb; + *((int *)&__m256_op1[5]) = 0xffffff02; + *((int *)&__m256_op1[4]) = 0x000000fe; + *((int *)&__m256_op1[3]) = 0x00000105; + *((int *)&__m256_op1[2]) = 0xfffffefb; + *((int *)&__m256_op1[1]) = 0xffffff02; + *((int *)&__m256_op1[0]) = 0x000000fe; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000080; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000080; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x0000ffce; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000fc7c; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x0000ffce; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000fc7c; + *((int *)&__m256_op1[7]) = 0xe7e7e7e7; + *((int *)&__m256_op1[6]) = 0xe7e7e7e7; + *((int *)&__m256_op1[5]) = 0xe7e7e7e7; + *((int *)&__m256_op1[4]) = 0xe7e7e7e7; + *((int *)&__m256_op1[3]) = 0xe7e7e7e7; + *((int *)&__m256_op1[2]) = 0xe7e7e7e7; + *((int *)&__m256_op1[1]) = 0xe7e7e7e7; + *((int *)&__m256_op1[0]) = 0xe7e7e7e7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0x0007a861; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0x0007a861; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00100010; + *((int *)&__m256_op1[5]) = 0x00100010; + *((int *)&__m256_op1[4]) = 0x00100010; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00100010; + *((int *)&__m256_op1[1]) = 0x00100010; + *((int *)&__m256_op1[0]) = 0x00100010; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x01010101; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x01010101; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x01010101; + *((int *)&__m256_op0[2]) = 0x01010101; + *((int *)&__m256_op0[1]) = 0x01010101; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_op1[7]) = 0x000001e0; + *((int *)&__m256_op1[6]) = 0x01e001e0; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x000001e0; + *((int *)&__m256_op1[2]) = 0x01e001e0; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x000000000000007f; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256d_op1[3]) = 0xf800d0d8ffffeecf; + *((unsigned long *)&__m256d_op1[2]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256d_op1[1]) = 0xf800d0d8ffffeecf; + *((unsigned long *)&__m256d_op1[0]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x001ffffe00200000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x001ffffe00200000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_clt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x2020000020200000; + *((unsigned long *)&__m256d_op0[2]) = 0x2020000020200000; + *((unsigned long *)&__m256d_op0[1]) = 0x0008000001010000; + *((unsigned long *)&__m256d_op0[0]) = 0x0101000001010000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xfff1000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xfff1000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256d_op1[2]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256d_op1[1]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256d_op1[0]) = 0xfffefffefffefffe; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cne_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cne_s.c new file mode 100644 index 00000000000..1907410708c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cne_s.c @@ -0,0 +1,872 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x7fff7fff; + *((int *)&__m256_op0[4]) = 0x7fff7fff; + *((int *)&__m256_op0[3]) = 0x7fff01fd; + *((int *)&__m256_op0[2]) = 0x7fff7fff; + *((int *)&__m256_op0[1]) = 0x00007fff; + *((int *)&__m256_op0[0]) = 0x7fff7fff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xdededede; + *((int *)&__m256_op0[6]) = 0xdededede; + *((int *)&__m256_op0[5]) = 0xdededede; + *((int *)&__m256_op0[4]) = 0xdededede; + *((int *)&__m256_op0[3]) = 0xdededede; + *((int *)&__m256_op0[2]) = 0xdededede; + *((int *)&__m256_op0[1]) = 0xdededede; + *((int *)&__m256_op0[0]) = 0xdededede; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000051; + *((int *)&__m256_op1[5]) = 0x00001010; + *((int *)&__m256_op1[4]) = 0x00000fff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000051; + *((int *)&__m256_op1[1]) = 0x00001010; + *((int *)&__m256_op1[0]) = 0x00000fff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000051; + *((int *)&__m256_op0[5]) = 0x00001010; + *((int *)&__m256_op0[4]) = 0x00000fff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000051; + *((int *)&__m256_op0[1]) = 0x00001010; + *((int *)&__m256_op0[0]) = 0x00000fff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000ffff; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x0000ffff; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x000007c8; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x000007c8; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x80000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000001f; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000001f; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x0000001f; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x0000001f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xfff8ff40; + *((int *)&__m256_op0[5]) = 0x0000ff01; + *((int *)&__m256_op0[4]) = 0x00090040; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xfff8ff40; + *((int *)&__m256_op0[1]) = 0x0000ff01; + *((int *)&__m256_op0[0]) = 0x00090040; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xff1cff1c; + *((int *)&__m256_op1[6]) = 0xff1cff1c; + *((int *)&__m256_op1[5]) = 0xff1cff1c; + *((int *)&__m256_op1[4]) = 0xff1cff1c; + *((int *)&__m256_op1[3]) = 0xff1cff1c; + *((int *)&__m256_op1[2]) = 0xff1cff1c; + *((int *)&__m256_op1[1]) = 0xff1cff1c; + *((int *)&__m256_op1[0]) = 0xff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00fe01f0; + *((int *)&__m256_op0[6]) = 0x00010000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00c40086; + *((int *)&__m256_op0[3]) = 0x00fe01f0; + *((int *)&__m256_op0[2]) = 0x00010000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00c40086; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x0000ffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x0000ffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x0fff0180; + *((int *)&__m256_op0[4]) = 0x0fff0181; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x0fff0180; + *((int *)&__m256_op0[0]) = 0x0fff0181; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0003ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xfffffe20; + *((int *)&__m256_op0[5]) = 0x0000001d; + *((int *)&__m256_op0[4]) = 0xfffffe1f; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x5fa00000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x5fa00000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000004; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00007f95; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000004; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00007f95; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x7f010000; + *((int *)&__m256_op0[5]) = 0x00010000; + *((int *)&__m256_op0[4]) = 0x00007f7f; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x7f010000; + *((int *)&__m256_op0[1]) = 0x00010000; + *((int *)&__m256_op0[0]) = 0x00007f7f; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x003f0200; + *((int *)&__m256_op0[6]) = 0x01400200; + *((int *)&__m256_op0[5]) = 0x003f00ff; + *((int *)&__m256_op0[4]) = 0x003f00c4; + *((int *)&__m256_op0[3]) = 0x003f0200; + *((int *)&__m256_op0[2]) = 0x01400200; + *((int *)&__m256_op0[1]) = 0x003f00ff; + *((int *)&__m256_op0[0]) = 0x003f00c4; + *((int *)&__m256_op1[7]) = 0x00000101; + *((int *)&__m256_op1[6]) = 0x01010101; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000101; + *((int *)&__m256_op1[2]) = 0x01010101; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x01fe000000ff00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x01fe000001fe0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0101010101010102; + *((unsigned long *)&__m256d_op0[2]) = 0x0101010201010204; + *((unsigned long *)&__m256d_op0[1]) = 0x0101010101010102; + *((unsigned long *)&__m256d_op0[0]) = 0x0101010101010102; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000e00ff00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256d_op1[3]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256d_op1[2]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256d_op1[1]) = 0xfff9fff9fff9fff9; + *((unsigned long *)&__m256d_op1[0]) = 0xfff90000fff9fff9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010127272525; + *((unsigned long *)&__m256d_op1[2]) = 0x23a2a121179e951d; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010127272525; + *((unsigned long *)&__m256d_op1[0]) = 0x23a2a121179e951d; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000000000e7; + *((unsigned long *)&__m256d_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256d_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000002000000020; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000f0000000f; + *((unsigned long *)&__m256d_op0[1]) = 0x0000002000000020; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000f0000000f; + *((unsigned long *)&__m256d_op1[3]) = 0xdff8000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xdff8000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0xdff8000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xdff8000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000040002; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x000000000000007f; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xc600000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xc600000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op0[2]) = 0x0002000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op0[0]) = 0x0002000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256d_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256d_op1[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256d_op1[0]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xff56ff55ff01ff01; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xff56ff55ff01ff01; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000800000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000800000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000800000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000800000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffff10; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffff10; + *((unsigned long *)&__m256d_op1[3]) = 0x0004000400040004; + *((unsigned long *)&__m256d_op1[2]) = 0x0004000500040005; + *((unsigned long *)&__m256d_op1[1]) = 0x0004000400040004; + *((unsigned long *)&__m256d_op1[0]) = 0x0004000500040005; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cor_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cor_s.c new file mode 100644 index 00000000000..8dd58f2282c --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cor_s.c @@ -0,0 +1,340 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x01fe007a; + *((int *)&__m256_op1[6]) = 0x01c40110; + *((int *)&__m256_op1[5]) = 0x019d00a2; + *((int *)&__m256_op1[4]) = 0x0039fff9; + *((int *)&__m256_op1[3]) = 0x01fe007a; + *((int *)&__m256_op1[2]) = 0x01c40110; + *((int *)&__m256_op1[1]) = 0x019d00a2; + *((int *)&__m256_op1[0]) = 0x003a0000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xfff10000; + *((int *)&__m256_op0[4]) = 0xfff10000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xfff10000; + *((int *)&__m256_op0[0]) = 0xfff10000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xfff10000; + *((int *)&__m256_op1[4]) = 0xfff10000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffff00ffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x000000ff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffff00ffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000ff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000000000000ff00; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000000000ff00; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffff295329; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffffefefeff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffff295329; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000504fffff3271; + *((unsigned long *)&__m256d_op0[2]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256d_op0[1]) = 0x0000504fffff3271; + *((unsigned long *)&__m256d_op0[0]) = 0xffff47b4ffff5879; + *((unsigned long *)&__m256d_op1[3]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256d_op1[2]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x00ff010000ff017e; + *((unsigned long *)&__m256d_op1[0]) = 0x01fe01ae00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000020006; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000020006; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000020006; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x7); + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffff0100000001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffff0100000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x2); + *((unsigned long *)&__m256d_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256d_op1[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256d_op1[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000050007; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000039; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cun_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cun_s.c new file mode 100644 index 00000000000..3230c101d4e --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_cun_s.c @@ -0,0 +1,361 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x01ffffff; + *((int *)&__m256_op1[4]) = 0xfe000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x01ffffff; + *((int *)&__m256_op1[0]) = 0xfe000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000504f; + *((int *)&__m256_op0[6]) = 0xffff3271; + *((int *)&__m256_op0[5]) = 0xffff47b4; + *((int *)&__m256_op0[4]) = 0xffff5879; + *((int *)&__m256_op0[3]) = 0x0000504f; + *((int *)&__m256_op0[2]) = 0xffff3271; + *((int *)&__m256_op0[1]) = 0xffff47b4; + *((int *)&__m256_op0[0]) = 0xffff5879; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xde00fe00; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x0000fe01; + *((int *)&__m256_op0[4]) = 0x0000fe01; + *((int *)&__m256_op0[3]) = 0xde00fe00; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x0000fe01; + *((int *)&__m256_op0[0]) = 0x0000fe01; + *((int *)&__m256_op1[7]) = 0x0000ffff; + *((int *)&__m256_op1[6]) = 0x0000ffff; + *((int *)&__m256_op1[5]) = 0x00ff00fe; + *((int *)&__m256_op1[4]) = 0x00ff00fe; + *((int *)&__m256_op1[3]) = 0x0000ffff; + *((int *)&__m256_op1[2]) = 0x0000ffff; + *((int *)&__m256_op1[1]) = 0x00ff00fe; + *((int *)&__m256_op1[0]) = 0x00ff00fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xf3f3f3f3; + *((int *)&__m256_op0[6]) = 0xf3f3f3f3; + *((int *)&__m256_op0[5]) = 0xf3f3f3f3; + *((int *)&__m256_op0[4]) = 0xf3f3f3f3; + *((int *)&__m256_op0[3]) = 0xf3f3f3f3; + *((int *)&__m256_op0[2]) = 0xf3f3f3f3; + *((int *)&__m256_op0[1]) = 0xf3f3f3f3; + *((int *)&__m256_op0[0]) = 0xf3f3f3f3; + *((int *)&__m256_op1[7]) = 0xf3f3f3f3; + *((int *)&__m256_op1[6]) = 0xf3f3f3f3; + *((int *)&__m256_op1[5]) = 0xf3f3f3f3; + *((int *)&__m256_op1[4]) = 0xf3f3f3f3; + *((int *)&__m256_op1[3]) = 0xf3f3f3f3; + *((int *)&__m256_op1[2]) = 0xf3f3f3f3; + *((int *)&__m256_op1[1]) = 0xf3f3f3f3; + *((int *)&__m256_op1[0]) = 0xf3f3f3f3; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0x0007a861; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0x0007a861; + *((int *)&__m256_op1[7]) = 0x80008000; + *((int *)&__m256_op1[6]) = 0x80008000; + *((int *)&__m256_op1[5]) = 0x80008000; + *((int *)&__m256_op1[4]) = 0xfff98000; + *((int *)&__m256_op1[3]) = 0x80008000; + *((int *)&__m256_op1[2]) = 0x80008000; + *((int *)&__m256_op1[1]) = 0x80008000; + *((int *)&__m256_op1[0]) = 0xfff98000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000015d050192cb; + *((unsigned long *)&__m256d_op0[2]) = 0x028e509508b16ee9; + *((unsigned long *)&__m256d_op0[1]) = 0x000033ff01020e23; + *((unsigned long *)&__m256d_op0[0]) = 0x151196b58fd1114d; + *((unsigned long *)&__m256d_op1[3]) = 0x372e9d75e8aab100; + *((unsigned long *)&__m256d_op1[2]) = 0xc5c085372cfabfba; + *((unsigned long *)&__m256d_op1[1]) = 0x31730b5beb7c99f5; + *((unsigned long *)&__m256d_op1[0]) = 0x0658f2dc0eb21e3c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x1e1800001e180000; + *((unsigned long *)&__m256d_op1[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x1e1800001e180000; + *((unsigned long *)&__m256d_op1[0]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffff000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[2]) = 0x0101010101010203; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00fe01f000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x00fe01f000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000b000b000b000b; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000b000b000b000b; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_cun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:43:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138628 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp840623vqx; Tue, 12 Sep 2023 21:08:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCOYvgfiafUw9FZPhkE+qNPWZFPVprsA50XyFK4jrZwYICAgenFQJrv3w2d6Vy9CJSNeRv X-Received: by 2002:a17:907:75d7:b0:9a5:a543:2744 with SMTP id jl23-20020a17090775d700b009a5a5432744mr1935600ejc.33.1694578097942; Tue, 12 Sep 2023 21:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694578097; cv=none; d=google.com; s=arc-20160816; b=h0cSEgmCiyFG26a5o5KrkuNvMFdB4mrWY/g3+9J4Vuhk2khdiRgH3HiWy28Sa6QY7z CKI+sGb3+BcykIMvPqLAkuITc8T1SFdbmHZBRWXnu38cbbrXB+p1aQQDgYQunU0gnrrj ry8vUvrxwgB4DA6ro43ayj+bpMNvOnNpqP2Fdt7ew5oy370erEcK6XxuHulGfVsu03Lk 2O3uNFjN6IliwFZBrjqUMvuYdyWeuobpNlTK22HNyRPxB/GGeOS6MTBk0GvGXuSKWrzY 4wQEo7NqQbcLChHsQVyl6eKELd5WODyb0TcuszEyFZ3XWGHhtdGyJhu3Gmh/Ggvl/Z1t 1u0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=N88qHJd1zvQbGK4tWi2mdVMW/ublix6bOk0KNGKac3g=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=FJxX/fPDOYL2OgryiMqOuYpNsqSzqHmo/Wy1OQUxkWZY4zfBxx5x6ShNoBU0puJeOt aWC7uHa1hEC6iP4F7iNrARKkXLYsY+PIOrhOvFtPUTrzq7XT+r1AZOwXTZjyIR21QVF2 HQSRhZU472/5H16psgGhrEUuHqHsyQ+mFMVlvhZzWtwBIwQDtc8vqFywzUoYvx7nWC/p QXCjiIo2JsNKjgjUDT4PwstuvQDSViXCjY9tFUGfIepUuhA7WXzIXWw7FmKp42YIV400 br+mc/UHXdSFIritSVnZ6JkB2cVr0LzHJNHWWW0toJXTvXHKDMtd+S5x7X6cPWETOk/9 vvbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id l11-20020a170906938b00b009938cb10548si9816101ejx.549.2023.09.12.21.08.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:08:17 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7FD45394D893 for ; Wed, 13 Sep 2023 03:44:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 27DC8382CF7F for ; Wed, 13 Sep 2023 03:43:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 27DC8382CF7F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGmw-0005gx-SS for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:43:51 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8AxV_HmLwFluDEmAA--.9353S3; Wed, 13 Sep 2023 11:43:34 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNzkLwFl+xECAA--.3660S4; Wed, 13 Sep 2023 11:43:32 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 20/22] LoongArch: Add tests for ASX vector xvfcmp{saf/seq/sle/slt/sne/sor/sun} instructions. Date: Wed, 13 Sep 2023 11:43:28 +0800 Message-Id: <20230913034330.8377-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNzkLwFl+xECAA--.3660S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBXQAAsP X-Coremail-Antispam: 1Uk129KBj93XoWruFW5Zw47KF1DWFyrtw18p5X_Xr45Wr4xpr 1xJr13GayIkayUtrWUtFWaqr4qyr40ya4DJF17G3sru3Z5KF9Iqr47ArWUAr1kJF4UZF13 tFs8Jw48trWUGwcCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU92b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Gryq6s0DMcIj6I8E 87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjc xG6xCI17CEII8vrVW3JVW8Jr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_tr0E3s1lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r4UJVWxJr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVF xhVjvjDU0xZFpf9x07bsJP_UUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893923401310038 X-GMAIL-MSGID: 1776893923401310038 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_saf_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_seq_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sle_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_slt_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sne_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sor_s.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sun_s.c: New test. --- .../loongarch/vector/lasx/lasx-xvfcmp_saf_s.c | 424 ++++++ .../loongarch/vector/lasx/lasx-xvfcmp_seq_s.c | 924 +++++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_sle_s.c | 627 +++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_slt_s.c | 1212 +++++++++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_sne_s.c | 756 ++++++++++ .../loongarch/vector/lasx/lasx-xvfcmp_sor_s.c | 438 ++++++ .../loongarch/vector/lasx/lasx-xvfcmp_sun_s.c | 363 +++++ 7 files changed, 4744 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_saf_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_seq_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sle_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_slt_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sne_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sor_s.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sun_s.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_saf_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_saf_s.c new file mode 100644 index 00000000000..23cbc4bf024 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_saf_s.c @@ -0,0 +1,424 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0x0eb7aaaa; + *((int *)&__m256_op1[6]) = 0xa6e6ac80; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x0eb7aaaa; + *((int *)&__m256_op1[2]) = 0xa6e6ac80; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x3fff3fff; + *((int *)&__m256_op0[6]) = 0x3fff3fff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x3fff3fff; + *((int *)&__m256_op0[3]) = 0x3fff3fff; + *((int *)&__m256_op0[2]) = 0x3fff3fff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x3fff3fff; + *((int *)&__m256_op1[7]) = 0x017e01fe; + *((int *)&__m256_op1[6]) = 0x01fe01fe; + *((int *)&__m256_op1[5]) = 0x05860606; + *((int *)&__m256_op1[4]) = 0x01fe0202; + *((int *)&__m256_op1[3]) = 0x017e01fe; + *((int *)&__m256_op1[2]) = 0x01fe0000; + *((int *)&__m256_op1[1]) = 0x05860606; + *((int *)&__m256_op1[0]) = 0x01fe0004; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000003f; + *((int *)&__m256_op0[6]) = 0x00390035; + *((int *)&__m256_op0[5]) = 0x8015003f; + *((int *)&__m256_op0[4]) = 0x0006001f; + *((int *)&__m256_op0[3]) = 0x0000003f; + *((int *)&__m256_op0[2]) = 0x00390035; + *((int *)&__m256_op0[1]) = 0x8015003f; + *((int *)&__m256_op0[0]) = 0x0006001f; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xefdfefdf; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xefdfefdf; + *((int *)&__m256_op1[4]) = 0xefdfefdf; + *((int *)&__m256_op1[3]) = 0xefdfefdf; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xefdfefdf; + *((int *)&__m256_op1[0]) = 0xefdfefdf; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00ff00ff; + *((int *)&__m256_op1[6]) = 0x00ff00ff; + *((int *)&__m256_op1[5]) = 0x00ff00ff; + *((int *)&__m256_op1[4]) = 0x00ff00ff; + *((int *)&__m256_op1[3]) = 0x00ff00ff; + *((int *)&__m256_op1[2]) = 0x00ff00ff; + *((int *)&__m256_op1[1]) = 0x00ff00ff; + *((int *)&__m256_op1[0]) = 0x00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x7bfffff0; + *((int *)&__m256_op0[5]) = 0x00000001; + *((int *)&__m256_op0[4]) = 0x80007fe8; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x7bfffff0; + *((int *)&__m256_op0[1]) = 0x00000001; + *((int *)&__m256_op0[0]) = 0x80007fe8; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x02020102; + *((int *)&__m256_op0[6]) = 0x02020102; + *((int *)&__m256_op0[5]) = 0x02020102; + *((int *)&__m256_op0[4]) = 0x02020102; + *((int *)&__m256_op0[3]) = 0x02020102; + *((int *)&__m256_op0[2]) = 0x02020102; + *((int *)&__m256_op0[1]) = 0x02020102; + *((int *)&__m256_op0[0]) = 0x02020102; + *((int *)&__m256_op1[7]) = 0x3e800000; + *((int *)&__m256_op1[6]) = 0x3e800000; + *((int *)&__m256_op1[5]) = 0x3e800000; + *((int *)&__m256_op1[4]) = 0x3e800000; + *((int *)&__m256_op1[3]) = 0x3e800000; + *((int *)&__m256_op1[2]) = 0x3e800000; + *((int *)&__m256_op1[1]) = 0x3e800000; + *((int *)&__m256_op1[0]) = 0x3e800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00ff00ff; + *((int *)&__m256_op0[6]) = 0x00ff00ff; + *((int *)&__m256_op0[5]) = 0x00ff00ff; + *((int *)&__m256_op0[4]) = 0x00ff00ff; + *((int *)&__m256_op0[3]) = 0x00ff00ff; + *((int *)&__m256_op0[2]) = 0x00ff00ff; + *((int *)&__m256_op0[1]) = 0x00ff00ff; + *((int *)&__m256_op0[0]) = 0x00ff00ff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x80000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xff88ff88; + *((int *)&__m256_op0[3]) = 0x80000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xff88ff88; + *((int *)&__m256_op1[7]) = 0xfe01fe01; + *((int *)&__m256_op1[6]) = 0x0000fd02; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x3fc03fc0; + *((int *)&__m256_op1[3]) = 0xfe01fe01; + *((int *)&__m256_op1[2]) = 0x0000fd02; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x3fc03fc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0xffffb2f6; + *((int *)&__m256_op0[4]) = 0x00006f48; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0xffffb2f6; + *((int *)&__m256_op0[0]) = 0x00006f48; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x000000ff; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00100010; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00100010; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00100010; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00100010; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000020; + *((unsigned long *)&__m256d_op1[2]) = 0x0020000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000020; + *((unsigned long *)&__m256d_op1[0]) = 0x0020000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xfffffefe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000010; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000010; + *((unsigned long *)&__m256d_op1[3]) = 0x000408080c111414; + *((unsigned long *)&__m256d_op1[2]) = 0x000408080c111414; + *((unsigned long *)&__m256d_op1[1]) = 0x000408080c111414; + *((unsigned long *)&__m256d_op1[0]) = 0x000408080c111414; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000ffdbbbcf; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffb8579f; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000200000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000004000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000200000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000004000; + *((unsigned long *)&__m256d_op1[3]) = 0x3fffbfff80000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00004000007f8000; + *((unsigned long *)&__m256d_op1[1]) = 0x3fffbfff80000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00004000007f8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_saf_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_seq_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_seq_s.c new file mode 100644 index 00000000000..6641d2c5848 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_seq_s.c @@ -0,0 +1,924 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x59800000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x59800000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x41d66000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x41d66000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xa41aa42e; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xa41aa42e; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x83f95466; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x01010101; + *((int *)&__m256_op0[0]) = 0x00005400; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xfefefeff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xff295329; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xfefefeff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xff295329; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x111ebb78; + *((int *)&__m256_op1[6]) = 0x4f9c4100; + *((int *)&__m256_op1[5]) = 0x1c386546; + *((int *)&__m256_op1[4]) = 0x809f3b50; + *((int *)&__m256_op1[3]) = 0x111ebb78; + *((int *)&__m256_op1[2]) = 0x4f9bf1ac; + *((int *)&__m256_op1[1]) = 0x21f6050d; + *((int *)&__m256_op1[0]) = 0x955d3f68; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffff0000; + *((int *)&__m256_op1[4]) = 0xffff0001; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffff0000; + *((int *)&__m256_op1[0]) = 0xffff0001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000100; + *((int *)&__m256_op0[5]) = 0x00000002; + *((int *)&__m256_op0[4]) = 0xff910072; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000100; + *((int *)&__m256_op0[1]) = 0x00000002; + *((int *)&__m256_op0[0]) = 0xff910072; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffff97a2; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffff97a2; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_seq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x55555555; + *((int *)&__m256_op0[6]) = 0x3f800000; + *((int *)&__m256_op0[5]) = 0x55555555; + *((int *)&__m256_op0[4]) = 0x80000000; + *((int *)&__m256_op0[3]) = 0x55555555; + *((int *)&__m256_op0[2]) = 0x3f800000; + *((int *)&__m256_op0[1]) = 0x55555555; + *((int *)&__m256_op0[0]) = 0x80000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x0001fffe; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x0001fffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00018002; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000002; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00018002; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000002; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00030000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00030000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xfff70156; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xfff70156; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xfff70156; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xfff70156; + *((int *)&__m256_op1[7]) = 0x7fefffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0x7fefffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x7fefffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0x7fefffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000ff70; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ff70; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000100; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000100; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000002; + *((int *)&__m256_op1[4]) = 0x00000008; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000002; + *((int *)&__m256_op1[0]) = 0x00000008; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x4393a0a5; + *((int *)&__m256_op0[6]) = 0xbc606060; + *((int *)&__m256_op0[5]) = 0x43b32fee; + *((int *)&__m256_op0[4]) = 0xa9000000; + *((int *)&__m256_op0[3]) = 0x4393a0a5; + *((int *)&__m256_op0[2]) = 0xbc606060; + *((int *)&__m256_op0[1]) = 0x43b32fee; + *((int *)&__m256_op0[0]) = 0xa9000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000001; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000003; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000003; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000003; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000003; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfffeb664; + *((int *)&__m256_op0[6]) = 0x007ffd61; + *((int *)&__m256_op0[5]) = 0xfffe97a1; + *((int *)&__m256_op0[4]) = 0xdf5b41b0; + *((int *)&__m256_op0[3]) = 0xfffeb664; + *((int *)&__m256_op0[2]) = 0x007ffd61; + *((int *)&__m256_op0[1]) = 0xfffe97a1; + *((int *)&__m256_op0[0]) = 0xdf5b41b0; + *((int *)&__m256_op1[7]) = 0xfffeb683; + *((int *)&__m256_op1[6]) = 0x9ffffd80; + *((int *)&__m256_op1[5]) = 0xfffe97c0; + *((int *)&__m256_op1[4]) = 0x20010001; + *((int *)&__m256_op1[3]) = 0xfffeb683; + *((int *)&__m256_op1[2]) = 0x9ffffd80; + *((int *)&__m256_op1[1]) = 0xfffe97c0; + *((int *)&__m256_op1[0]) = 0x20010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sueq_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x053531f7c6334908; + *((unsigned long *)&__m256d_op0[2]) = 0x8e41dcbff87e7900; + *((unsigned long *)&__m256d_op0[1]) = 0x12eb8332e3e15093; + *((unsigned long *)&__m256d_op0[0]) = 0x9a7491f9e016ccd4; + *((unsigned long *)&__m256d_op1[3]) = 0x345947dcd192b5c4; + *((unsigned long *)&__m256d_op1[2]) = 0x182100c72280e687; + *((unsigned long *)&__m256d_op1[1]) = 0x4a1c80bb8e892e00; + *((unsigned long *)&__m256d_op1[0]) = 0x063ecfbd58abc4b7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffff90ffffff80; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffff0002fffeffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffff0002fffeffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x000000010486048c; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000100000006; + *((unsigned long *)&__m256d_op1[1]) = 0x000000010486048c; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000100000006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256d_op0[2]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256d_op0[1]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256d_op0[0]) = 0xff00ff00ff00ef32; + *((unsigned long *)&__m256d_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256d_op1[2]) = 0x00ff00ff00ef0120; + *((unsigned long *)&__m256d_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256d_op1[0]) = 0x00ff00ff00ef0120; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xff00ffff00000001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op0[1]) = 0xff00ffff00000001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x04e8296f08181818; + *((unsigned long *)&__m256d_op1[2]) = 0x032feea900000000; + *((unsigned long *)&__m256d_op1[1]) = 0x04e8296f08181818; + *((unsigned long *)&__m256d_op1[0]) = 0x032feea900000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffff1cff1c; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x1400080008000000; + *((unsigned long *)&__m256d_op0[2]) = 0x1400080008000000; + *((unsigned long *)&__m256d_op0[1]) = 0x1400080008000000; + *((unsigned long *)&__m256d_op0[0]) = 0x1400080008000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_seq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x000000000000ff80; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256d_op0[2]) = 0x41d8585858400000; + *((unsigned long *)&__m256d_op0[1]) = 0xc1be9e9e9f000000; + *((unsigned long *)&__m256d_op0[0]) = 0x41d8585858400000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffff040000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffff040000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256d_op1[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256d_op1[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256d_op1[0]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffe045fffffeff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffff7d; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sueq_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sle_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sle_s.c new file mode 100644 index 00000000000..d25fc25da24 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sle_s.c @@ -0,0 +1,627 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffff90; + *((int *)&__m256_op0[4]) = 0xffffff80; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffff90; + *((int *)&__m256_op0[0]) = 0xffffff80; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfefee0e3; + *((int *)&__m256_op0[6]) = 0xfefefe00; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0xfefee0e3; + *((int *)&__m256_op0[2]) = 0xfefefe00; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000ffff; + *((int *)&__m256_op0[6]) = 0x0000ffff; + *((int *)&__m256_op0[5]) = 0x0000ffff; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x0000ffff; + *((int *)&__m256_op0[2]) = 0x0000ffff; + *((int *)&__m256_op0[1]) = 0x0000ffff; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x8000000a; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x8000000a; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x01010101; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x01010101; + *((int *)&__m256_op0[4]) = 0x01010101; + *((int *)&__m256_op0[3]) = 0x01010101; + *((int *)&__m256_op0[2]) = 0x01010101; + *((int *)&__m256_op0[1]) = 0x01010101; + *((int *)&__m256_op0[0]) = 0x01010101; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffd8ffc7; + *((int *)&__m256_op0[4]) = 0xffdaff8a; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffd8ffc7; + *((int *)&__m256_op0[0]) = 0xffdaff8a; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0xffffb3b4; + *((int *)&__m256_op1[5]) = 0xfffffff5; + *((int *)&__m256_op1[4]) = 0xffff4738; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0xffffb3b4; + *((int *)&__m256_op1[1]) = 0xfffffff5; + *((int *)&__m256_op1[0]) = 0xffff4738; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xf7f7f7f7; + *((int *)&__m256_op1[6]) = 0xf7f7f7f8; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xf7f7f7f7; + *((int *)&__m256_op1[2]) = 0xf7f7f7f8; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x5fa00000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x5fa00000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op0[2]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op0[1]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op0[0]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op1[3]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op1[2]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op1[1]) = 0x97541c5897541c58; + *((unsigned long *)&__m256d_op1[0]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000105fffffefb; + *((unsigned long *)&__m256d_op0[2]) = 0xffffff02000000fe; + *((unsigned long *)&__m256d_op0[1]) = 0x00000105fffffefb; + *((unsigned long *)&__m256d_op0[0]) = 0xffffff02000000fe; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000020afefb1; + *((unsigned long *)&__m256d_op0[2]) = 0x7f350104f7ebffff; + *((unsigned long *)&__m256d_op0[1]) = 0x00000000003fffc1; + *((unsigned long *)&__m256d_op0[0]) = 0x005c0003fff9ffff; + *((unsigned long *)&__m256d_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0209fefb08140000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0003fffc00060000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xfffdfffdfffdfffd; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op1[3]) = 0x00000003f8000004; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x00000003f8000004; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000003; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256d_op1[3]) = 0x8000800080008000; + *((unsigned long *)&__m256d_op1[2]) = 0x800000ff800000ff; + *((unsigned long *)&__m256d_op1[1]) = 0x8000800080008000; + *((unsigned long *)&__m256d_op1[0]) = 0x800000ff800000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000010100000101; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000010100000101; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256d_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256d_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256d_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256d_op1[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256d_op1[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256d_op1[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256d_op1[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256d_op1[3]) = 0x001f001fffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x001f001fffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sle_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfc00000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xfc00000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xfc00000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xfc00000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xf5f5f5f5f5f5f5f5; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xf5f5f5f5f5f5f5f5; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x8d8d72728d8d7272; + *((unsigned long *)&__m256d_op0[2]) = 0x8d8d72728d8d8d8d; + *((unsigned long *)&__m256d_op0[1]) = 0x8d8d72728d8d7272; + *((unsigned long *)&__m256d_op0[0]) = 0x8d8d72728d8d8d8d; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffff010100000001; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffff010100000001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sule_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_slt_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_slt_s.c new file mode 100644 index 00000000000..8210f749b11 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_slt_s.c @@ -0,0 +1,1212 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000101; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xc08f7800; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xfffffefd; + *((int *)&__m256_op0[3]) = 0xc08f7800; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000101; + *((int *)&__m256_op1[4]) = 0x00000102; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000101; + *((int *)&__m256_op1[0]) = 0x00000102; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x001f1f3e; + *((int *)&__m256_op1[6]) = 0x3e1f1f00; + *((int *)&__m256_op1[5]) = 0x00030609; + *((int *)&__m256_op1[4]) = 0x09060300; + *((int *)&__m256_op1[3]) = 0x001f1f3e; + *((int *)&__m256_op1[2]) = 0x3e1f1f00; + *((int *)&__m256_op1[1]) = 0x00030609; + *((int *)&__m256_op1[0]) = 0x09060300; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000001; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000001; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7fffffff; + *((int *)&__m256_op0[6]) = 0x7fffffff; + *((int *)&__m256_op0[5]) = 0x7fffffff; + *((int *)&__m256_op0[4]) = 0x7fffffff; + *((int *)&__m256_op0[3]) = 0x7fffffff; + *((int *)&__m256_op0[2]) = 0x7fffffff; + *((int *)&__m256_op0[1]) = 0x7fffffff; + *((int *)&__m256_op0[0]) = 0x7fffffff; + *((int *)&__m256_op1[7]) = 0x20fc0000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x20fc0000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffff0400; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xffff0400; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x08050501; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x08050501; + *((int *)&__m256_op1[7]) = 0x90909090; + *((int *)&__m256_op1[6]) = 0x90909090; + *((int *)&__m256_op1[5]) = 0x90909090; + *((int *)&__m256_op1[4]) = 0x90909090; + *((int *)&__m256_op1[3]) = 0x90909090; + *((int *)&__m256_op1[2]) = 0x90909090; + *((int *)&__m256_op1[1]) = 0x90909090; + *((int *)&__m256_op1[0]) = 0x90909090; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00001ff8; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xd8d8c000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00001ff8; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xd8d8c000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x02020102; + *((int *)&__m256_op1[6]) = 0x02020102; + *((int *)&__m256_op1[5]) = 0x02020102; + *((int *)&__m256_op1[4]) = 0x02020102; + *((int *)&__m256_op1[3]) = 0x02020102; + *((int *)&__m256_op1[2]) = 0x02020102; + *((int *)&__m256_op1[1]) = 0x02020102; + *((int *)&__m256_op1[0]) = 0x02020102; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00ff00ff; + *((int *)&__m256_op0[6]) = 0x00ff00ff; + *((int *)&__m256_op0[5]) = 0x00ff00ff; + *((int *)&__m256_op0[4]) = 0x00ff00ff; + *((int *)&__m256_op0[3]) = 0x00ff00ff; + *((int *)&__m256_op0[2]) = 0x00ff00ff; + *((int *)&__m256_op0[1]) = 0x00ff00ff; + *((int *)&__m256_op0[0]) = 0x00ff00ff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000001; + *((int *)&__m256_op1[6]) = 0xffe00000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000001; + *((int *)&__m256_op1[2]) = 0xffe00000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x60000108; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x01060005; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x7fef0001; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xfffffff8; + *((int *)&__m256_op1[4]) = 0xfffffff8; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xfffffff8; + *((int *)&__m256_op1[0]) = 0xfc000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x327f0101; + *((int *)&__m256_op0[6]) = 0x01010102; + *((int *)&__m256_op0[5]) = 0x63000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x327f0101; + *((int *)&__m256_op0[2]) = 0x01010102; + *((int *)&__m256_op0[1]) = 0x63000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xce7fffff; + *((int *)&__m256_op1[6]) = 0xfffffffe; + *((int *)&__m256_op1[5]) = 0x63000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xce7fffff; + *((int *)&__m256_op1[2]) = 0xfffffffe; + *((int *)&__m256_op1[1]) = 0x63000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x59800000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x59800000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x0eb7aaaa; + *((int *)&__m256_op1[6]) = 0xa6e6ac80; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x0eb7aaaa; + *((int *)&__m256_op1[2]) = 0xa6e6ac80; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000007; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000007; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xdbc80000; + *((int *)&__m256_op1[6]) = 0x00003fff; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xdbc80000; + *((int *)&__m256_op1[2]) = 0x00003fff; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0xffffffff; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0xffffffff; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000002; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000007f; + *((int *)&__m256_op1[7]) = 0xfffffff3; + *((int *)&__m256_op1[6]) = 0x0000000b; + *((int *)&__m256_op1[5]) = 0xfffffff3; + *((int *)&__m256_op1[4]) = 0xfffffff3; + *((int *)&__m256_op1[3]) = 0xfffffff3; + *((int *)&__m256_op1[2]) = 0x0000000b; + *((int *)&__m256_op1[1]) = 0xfffffff3; + *((int *)&__m256_op1[0]) = 0xfffffff3; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x223d76f0; + *((int *)&__m256_op0[6]) = 0x9f3881ff; + *((int *)&__m256_op0[5]) = 0x3870ca8d; + *((int *)&__m256_op0[4]) = 0x013e76a0; + *((int *)&__m256_op0[3]) = 0x223d76f0; + *((int *)&__m256_op0[2]) = 0x9f37e357; + *((int *)&__m256_op0[1]) = 0x43ec0a1b; + *((int *)&__m256_op0[0]) = 0x2aba7ed0; + *((int *)&__m256_op1[7]) = 0x111ebb78; + *((int *)&__m256_op1[6]) = 0x4f9c4100; + *((int *)&__m256_op1[5]) = 0x1c386546; + *((int *)&__m256_op1[4]) = 0x809f3b50; + *((int *)&__m256_op1[3]) = 0x111ebb78; + *((int *)&__m256_op1[2]) = 0x4f9bf1ac; + *((int *)&__m256_op1[1]) = 0x21f6050d; + *((int *)&__m256_op1[0]) = 0x955d3f68; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x01010101; + *((int *)&__m256_op0[6]) = 0x27272525; + *((int *)&__m256_op0[5]) = 0x23a2a121; + *((int *)&__m256_op0[4]) = 0x179e951d; + *((int *)&__m256_op0[3]) = 0x01010101; + *((int *)&__m256_op0[2]) = 0x27272525; + *((int *)&__m256_op0[1]) = 0x23a2a121; + *((int *)&__m256_op0[0]) = 0x179e951d; + *((int *)&__m256_op1[7]) = 0x00001251; + *((int *)&__m256_op1[6]) = 0x00005111; + *((int *)&__m256_op1[5]) = 0x00000c4f; + *((int *)&__m256_op1[4]) = 0x00004b0f; + *((int *)&__m256_op1[3]) = 0x00001251; + *((int *)&__m256_op1[2]) = 0x00005111; + *((int *)&__m256_op1[1]) = 0x00000c4f; + *((int *)&__m256_op1[0]) = 0x00004b0f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x80000000; + *((int *)&__m256_op1[6]) = 0xff800000; + *((int *)&__m256_op1[5]) = 0x80000000; + *((int *)&__m256_op1[4]) = 0x80000000; + *((int *)&__m256_op1[3]) = 0x80000000; + *((int *)&__m256_op1[2]) = 0xff800000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0x80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_op1[7]) = 0x7ff00000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x7ff00000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x7ff00000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x7ff00000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x000000ff; + *((int *)&__m256_op1[6]) = 0x000000ff; + *((int *)&__m256_op1[5]) = 0x000000ff; + *((int *)&__m256_op1[4]) = 0x000000ff; + *((int *)&__m256_op1[3]) = 0x000000ff; + *((int *)&__m256_op1[2]) = 0x000000ff; + *((int *)&__m256_op1[1]) = 0x000000ff; + *((int *)&__m256_op1[0]) = 0x000000ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xfe01fe01; + *((int *)&__m256_op0[6]) = 0x7e81fd02; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x3fc001fe; + *((int *)&__m256_op0[3]) = 0xfe01fe01; + *((int *)&__m256_op0[2]) = 0x7e81fd02; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x3fc001fe; + *((int *)&__m256_op1[7]) = 0xfe01fe01; + *((int *)&__m256_op1[6]) = 0x7e81fd02; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x3fc001fe; + *((int *)&__m256_op1[3]) = 0xfe01fe01; + *((int *)&__m256_op1[2]) = 0x7e81fd02; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x3fc001fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x80000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x80000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x80000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0ff80100ffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0ff80100ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000017000000080; + *((unsigned long *)&__m256d_op1[2]) = 0xc06500550055ffab; + *((unsigned long *)&__m256d_op1[1]) = 0x0000017000000080; + *((unsigned long *)&__m256d_op1[0]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x01480000052801a2; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffdcff64; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[2]) = 0x0101010101010203; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffff000100000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000fe0100000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000fe0100000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000001900000019; + *((unsigned long *)&__m256d_op1[2]) = 0x0000001900000019; + *((unsigned long *)&__m256d_op1[1]) = 0x0000001900000019; + *((unsigned long *)&__m256d_op1[0]) = 0x0000001900000019; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00ff00ffff00ff00; + *((unsigned long *)&__m256d_op0[2]) = 0x00000fff00004542; + *((unsigned long *)&__m256d_op0[1]) = 0x00ff00ffff00ff00; + *((unsigned long *)&__m256d_op0[0]) = 0x00000fff00004542; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256d_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256d_op0[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256d_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00aa00ab00ff00ff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00aa00ab00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000001e0007ffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffe37fe3001d001d; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000ffff8000; + *((unsigned long *)&__m256d_op1[1]) = 0xffe37fe3001d001d; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000ffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffa30000165a; + *((unsigned long *)&__m256d_op0[2]) = 0x0000104000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffa30000165a; + *((unsigned long *)&__m256d_op0[0]) = 0x0000104000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256d_op1[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256d_op1[0]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffff0008; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffff0008; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000000430207f944; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfe01fe017e81fd02; + *((unsigned long *)&__m256d_op0[2]) = 0x000000003fc001fe; + *((unsigned long *)&__m256d_op0[1]) = 0xfe01fe017e81fd02; + *((unsigned long *)&__m256d_op0[0]) = 0x000000003fc001fe; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_slt_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffff000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffff000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000003868686a20; + *((unsigned long *)&__m256d_op1[2]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256d_op1[1]) = 0x0000003868686a20; + *((unsigned long *)&__m256d_op1[0]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256d_op0[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xfffff8d9ffa7103d; + *((unsigned long *)&__m256d_op1[3]) = 0x001175f10e4330e8; + *((unsigned long *)&__m256d_op1[2]) = 0xff8f0842ff29211e; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0xfffff8d9ffa7103d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000008; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000080000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000b004a00440040; + *((unsigned long *)&__m256d_op0[2]) = 0x8020004a0011002a; + *((unsigned long *)&__m256d_op0[1]) = 0x000b004a00440040; + *((unsigned long *)&__m256d_op0[0]) = 0x8020004a0011002a; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0fff0fff00000020; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0fff0fff00000020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0002000000020000; + *((unsigned long *)&__m256d_op0[2]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0002000000020000; + *((unsigned long *)&__m256d_op0[0]) = 0xfff0000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256d_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256d_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256d_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256d_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256d_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000ff00000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x000000ff00000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xfffefffefffeffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xfffefffefffeffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000860601934; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000800200028; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000860601934; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000800200028; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000002; + *((unsigned long *)&__m256d_op1[2]) = 0x4079808280057efe; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x007ffcfcfd020202; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000400000004; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000400000004; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sult_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sne_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sne_s.c new file mode 100644 index 00000000000..9d015a5c858 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sne_s.c @@ -0,0 +1,756 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x80808080; + *((int *)&__m256_op0[6]) = 0x80808080; + *((int *)&__m256_op0[5]) = 0x80808080; + *((int *)&__m256_op0[4]) = 0x80808080; + *((int *)&__m256_op0[3]) = 0x80808080; + *((int *)&__m256_op0[2]) = 0x80808080; + *((int *)&__m256_op0[1]) = 0x80808080; + *((int *)&__m256_op0[0]) = 0x80808080; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xefefefef; + *((int *)&__m256_op0[6]) = 0xefefefef; + *((int *)&__m256_op0[5]) = 0xefefefef; + *((int *)&__m256_op0[4]) = 0xefefefef; + *((int *)&__m256_op0[3]) = 0xefefefef; + *((int *)&__m256_op0[2]) = 0xefefef6e; + *((int *)&__m256_op0[1]) = 0xeeeeeeee; + *((int *)&__m256_op0[0]) = 0xeeeeeeee; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x7f800000; + *((int *)&__m256_op0[6]) = 0x7f800000; + *((int *)&__m256_op0[5]) = 0x7f800000; + *((int *)&__m256_op0[4]) = 0x7f800000; + *((int *)&__m256_op0[3]) = 0x7f800000; + *((int *)&__m256_op0[2]) = 0x7f800000; + *((int *)&__m256_op0[1]) = 0x7f800000; + *((int *)&__m256_op0[0]) = 0x7f800000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x0000ffff; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x0000ffff; + *((int *)&__m256_op1[7]) = 0x00ff00ff; + *((int *)&__m256_op1[6]) = 0x00ff00ff; + *((int *)&__m256_op1[5]) = 0x00ff00ff; + *((int *)&__m256_op1[4]) = 0x00ff00ff; + *((int *)&__m256_op1[3]) = 0x00ff00ff; + *((int *)&__m256_op1[2]) = 0x00ff00ff; + *((int *)&__m256_op1[1]) = 0x00ff00ff; + *((int *)&__m256_op1[0]) = 0x00ff00ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x80000000; + *((int *)&__m256_op1[4]) = 0x80000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0x80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x40404040; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x40404040; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0xfefefefe; + *((int *)&__m256_op1[4]) = 0x3f800000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0xfefefefe; + *((int *)&__m256_op1[0]) = 0x3f800000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0xffff0101; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0xffff0101; + *((int *)&__m256_op0[0]) = 0x00000001; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_sne_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x01010101; + *((int *)&__m256_op0[5]) = 0x55555501; + *((int *)&__m256_op0[4]) = 0xfefefeab; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x01010101; + *((int *)&__m256_op0[1]) = 0x55555501; + *((int *)&__m256_op0[0]) = 0xfefefeab; + *((int *)&__m256_op1[7]) = 0x0010bfc8; + *((int *)&__m256_op1[6]) = 0x0010bf52; + *((int *)&__m256_op1[5]) = 0xfff1bfca; + *((int *)&__m256_op1[4]) = 0x0011bfcb; + *((int *)&__m256_op1[3]) = 0x0010bfc8; + *((int *)&__m256_op1[2]) = 0x0010bf52; + *((int *)&__m256_op1[1]) = 0xfff1bfca; + *((int *)&__m256_op1[0]) = 0x0011bfcb; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x80008000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x80008000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x80008000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x80008000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00060000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00060000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000166; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000166; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0000004a; + *((int *)&__m256_op0[6]) = 0x557baac4; + *((int *)&__m256_op0[5]) = 0x556caad9; + *((int *)&__m256_op0[4]) = 0xaabbaa88; + *((int *)&__m256_op0[3]) = 0x0000004a; + *((int *)&__m256_op0[2]) = 0x557baac4; + *((int *)&__m256_op0[1]) = 0x556caad9; + *((int *)&__m256_op0[0]) = 0xaabbaa88; + *((int *)&__m256_op1[7]) = 0x09090909; + *((int *)&__m256_op1[6]) = 0x09090909; + *((int *)&__m256_op1[5]) = 0x09090909; + *((int *)&__m256_op1[4]) = 0x09090909; + *((int *)&__m256_op1[3]) = 0x09090909; + *((int *)&__m256_op1[2]) = 0x09090909; + *((int *)&__m256_op1[1]) = 0x09090909; + *((int *)&__m256_op1[0]) = 0x09090909; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x80000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x80000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x80000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x80000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x80000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x80000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x80000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x80000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000020; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000020; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sune_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xbabababababababa; + *((unsigned long *)&__m256d_op0[2]) = 0xbabababababababa; + *((unsigned long *)&__m256d_op0[1]) = 0xbabababababababa; + *((unsigned long *)&__m256d_op0[0]) = 0xbabababababababa; + *((unsigned long *)&__m256d_op1[3]) = 0x88888a6d0962002e; + *((unsigned long *)&__m256d_op1[2]) = 0xdb8a3109fe0f0020; + *((unsigned long *)&__m256d_op1[1]) = 0x0000007fff01fffb; + *((unsigned long *)&__m256d_op1[0]) = 0xdb8e20990cce025a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000009; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256d_op0[2]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256d_op0[1]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256d_op0[0]) = 0xfffffffffffffe00; + *((unsigned long *)&__m256d_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256d_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256d_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sne_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xff00000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256d_op0[1]) = 0xff00000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000000000fe; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xfffffffffffebeb8; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xfffffffffffebeb8; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xfafafafafafafafa; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000fefefe; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[2]) = 0x0101010101010203; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffee0000ff4c; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ff050000ff3c; + *((unsigned long *)&__m256d_op0[1]) = 0x0000fff90000ff78; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ffa80000ff31; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0020002000200020; + *((unsigned long *)&__m256d_op1[2]) = 0x0020000000200000; + *((unsigned long *)&__m256d_op1[1]) = 0x0020002000200020; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000017bfffff0; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000180007fe8; + *((unsigned long *)&__m256d_op0[1]) = 0x000000017bfffff0; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000180007fe8; + *((unsigned long *)&__m256d_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x0100000001000100; + *((unsigned long *)&__m256d_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x0100000001000100; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0c6a240000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0f00204000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0c6a240000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0f00204000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000000a0008; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000000a0008; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x000000010000685e; + *((unsigned long *)&__m256d_op0[2]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256d_op0[1]) = 0x000000010000685e; + *((unsigned long *)&__m256d_op0[0]) = 0x000020a4ffffbe4f; + *((unsigned long *)&__m256d_op1[3]) = 0x0087ff87f807ff87; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0087ff87f807ff87; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256d_op1[2]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256d_op1[1]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256d_op1[0]) = 0xfd02fd02fd02fd02; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256d_op1[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256d_op1[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256d_op1[0]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sune_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sor_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sor_s.c new file mode 100644 index 00000000000..a61681073d5 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sor_s.c @@ -0,0 +1,438 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000001; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000001; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000001; + *((int *)&__m256_op0[1]) = 0x80000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x000000ff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x000000ff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000064; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000781; + *((int *)&__m256_op0[0]) = 0x00000064; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x0c6a2400; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x0f002040; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x0c6a2400; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x0f002040; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x0000000c; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x0000000c; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0feff00000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0feff00000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000003868686a20; + *((unsigned long *)&__m256d_op1[2]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256d_op1[1]) = 0x0000003868686a20; + *((unsigned long *)&__m256d_op1[0]) = 0x0045b8ae81bce1d8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x3ff0000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[2]) = 0x3ff1808001020101; + *((unsigned long *)&__m256d_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256d_op1[0]) = 0x3ff1808001020101; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000005; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000005; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000005; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000005; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000005; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[2]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256d_op0[0]) = 0xffffffffffffffdc; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256d_op0[2]) = 0xfefefefeffe0e0e0; + *((unsigned long *)&__m256d_op0[1]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256d_op0[0]) = 0xfefefefeffe0e0e0; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000040004000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000040004000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op1[2]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op1[1]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256d_op1[0]) = 0xfffffffffffffff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256d_op1[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sor_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sun_s.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sun_s.c new file mode 100644 index 00000000000..41f274920a1 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcmp_sun_s.c @@ -0,0 +1,363 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((int *)&__m256_op0[7]) = 0x1e180000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x1e180000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x1e180000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x1e180000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00802000; + *((int *)&__m256_op1[6]) = 0x00802000; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0x00802000; + *((int *)&__m256_op1[2]) = 0x00802000; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000055; + *((int *)&__m256_op0[6]) = 0x36aaaaac; + *((int *)&__m256_op0[5]) = 0x55555555; + *((int *)&__m256_op0[4]) = 0xaaaaaaac; + *((int *)&__m256_op0[3]) = 0x00000055; + *((int *)&__m256_op0[2]) = 0x36aaaaac; + *((int *)&__m256_op0[1]) = 0x55555555; + *((int *)&__m256_op0[0]) = 0xaaaaaaac; + *((int *)&__m256_op1[7]) = 0x00060000; + *((int *)&__m256_op1[6]) = 0x00040000; + *((int *)&__m256_op1[5]) = 0x00025555; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00060000; + *((int *)&__m256_op1[2]) = 0x00040000; + *((int *)&__m256_op1[1]) = 0x00025555; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xff240000; + *((int *)&__m256_op0[6]) = 0x0000ff00; + *((int *)&__m256_op0[5]) = 0xfffeffe4; + *((int *)&__m256_op0[4]) = 0xfffeff00; + *((int *)&__m256_op0[3]) = 0xff640000; + *((int *)&__m256_op0[2]) = 0x0000ff00; + *((int *)&__m256_op0[1]) = 0xfffeff66; + *((int *)&__m256_op0[0]) = 0xfffeff00; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0xffffffff; + *((int *)&__m256_op1[5]) = 0xffffffff; + *((int *)&__m256_op1[4]) = 0xffffffff; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0xffffffff; + *((int *)&__m256_op1[1]) = 0xffffffff; + *((int *)&__m256_op1[0]) = 0xffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x80808082; + *((int *)&__m256_op0[6]) = 0x80808082; + *((int *)&__m256_op0[5]) = 0x80808082; + *((int *)&__m256_op0[4]) = 0x80808082; + *((int *)&__m256_op0[3]) = 0x80808082; + *((int *)&__m256_op0[2]) = 0x80808080; + *((int *)&__m256_op0[1]) = 0x80808082; + *((int *)&__m256_op0[0]) = 0x80808082; + *((int *)&__m256_op1[7]) = 0x55555555; + *((int *)&__m256_op1[6]) = 0x55555555; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x55555555; + *((int *)&__m256_op1[2]) = 0x55555555; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x6d6d6d6d; + *((int *)&__m256_op0[6]) = 0x6d6d6d6d; + *((int *)&__m256_op0[5]) = 0x6d6d6d6d; + *((int *)&__m256_op0[4]) = 0x6d6d6d6d; + *((int *)&__m256_op0[3]) = 0x6d6d6d6d; + *((int *)&__m256_op0[2]) = 0x6d6d6d6d; + *((int *)&__m256_op0[1]) = 0x6d6d6d6d; + *((int *)&__m256_op0[0]) = 0x6d6d6d6d; + *((int *)&__m256_op1[7]) = 0x6d6d6d6d; + *((int *)&__m256_op1[6]) = 0x6d6d6d6d; + *((int *)&__m256_op1[5]) = 0x6d6d6d6d; + *((int *)&__m256_op1[4]) = 0x6d6d6d6d; + *((int *)&__m256_op1[3]) = 0x6d6d6d6d; + *((int *)&__m256_op1[2]) = 0x6d6d6d6d; + *((int *)&__m256_op1[1]) = 0x6d6d6d6d; + *((int *)&__m256_op1[0]) = 0x6d6d6d6d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0xffffffff; + *((int *)&__m256_op0[6]) = 0xffffffff; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0xffffffff; + *((int *)&__m256_op0[3]) = 0xffffffff; + *((int *)&__m256_op0[2]) = 0xffffffff; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0xffffffff; + *((int *)&__m256_op1[7]) = 0xffffffff; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0xffffffff; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((int *)&__m256_op0[7]) = 0x00000000; + *((int *)&__m256_op0[6]) = 0x00000000; + *((int *)&__m256_op0[5]) = 0x00000000; + *((int *)&__m256_op0[4]) = 0x00000000; + *((int *)&__m256_op0[3]) = 0x00000000; + *((int *)&__m256_op0[2]) = 0x00000000; + *((int *)&__m256_op0[1]) = 0x00000000; + *((int *)&__m256_op0[0]) = 0x00000000; + *((int *)&__m256_op1[7]) = 0x00000000; + *((int *)&__m256_op1[6]) = 0x00000000; + *((int *)&__m256_op1[5]) = 0x00000000; + *((int *)&__m256_op1[4]) = 0x00000000; + *((int *)&__m256_op1[3]) = 0x00000000; + *((int *)&__m256_op1[2]) = 0x00000000; + *((int *)&__m256_op1[1]) = 0x00000000; + *((int *)&__m256_op1[0]) = 0x00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_s (__m256_op0, __m256_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256d_op1[2]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256d_op1[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256d_op1[0]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x00000000ffff0008; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x00000000ffff0008; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[2]) = 0x0000000000000118; + *((unsigned long *)&__m256d_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op1[0]) = 0x0000000000000118; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256d_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256d_op1[3]) = 0x0fffffff10000006; + *((unsigned long *)&__m256d_op1[2]) = 0x0fffffff10000006; + *((unsigned long *)&__m256d_op1[1]) = 0x0fffffff10000006; + *((unsigned long *)&__m256d_op1[0]) = 0x0fffffff10000006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256d_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[2]) = 0x0000000000000027; + *((unsigned long *)&__m256d_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256d_op0[0]) = 0x0000000000000027; + *((unsigned long *)&__m256d_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256d_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvfcmp_sun_d (__m256d_op0, __m256d_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} From patchwork Wed Sep 13 03:43:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138627 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp840564vqx; Tue, 12 Sep 2023 21:08:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELLrj30tKh0wVHLyOAqobP/aLTz0q9J7Y5QIBUvtrv+jFZxnpuCAL43wkLgaTURV/g2XqE X-Received: by 2002:a05:651c:21b:b0:2b9:ba02:436c with SMTP id y27-20020a05651c021b00b002b9ba02436cmr1252154ljn.28.1694578084288; Tue, 12 Sep 2023 21:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694578084; cv=none; d=google.com; s=arc-20160816; b=Lk/dh4KHMR43Hhw+ilBkEbeaBZe2VrbMdBJn0xsUfagG4VmkYkJyFRpypYofBpczXg y/IodNwNNpcK3ffe3wiSFUO4Un9IjLAc4xVRrKvu15Ex5oVdMBaGP2iKLe1hj4NDg8r0 j/haBsEwFK/byPVrzT822Ffm9Yzxzzfg1cZEPjQzBKMPoJFcqYpIX3F5ThW69q7EUkR9 HsWDY2Ws1mPV8xwm4DSLk35ORrx/EhJN4GQOoiPNtiZNUZ2SJ72i/NxANLeeTdq1QekG TEGDlgTXv4JrNwKmWRg0jZCB/6z/qhNcvj+S8lpDpX1A9s3xIQqZTamAVaszymI+8kME QRXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=UnUidVRv26k50ZiHHXg/yGAC7ypnkfSoVQ+K3YvtoTY=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=jd780fdarvyg5NSjVSoLVMGGo+PlEtTwpSgUIlnXHRP/y24VpZ/LLXByMTpSwtvHaR yX54BzUMcmyb1TmQ67iEjPLMhWA4fCvVDq7mcpVQFoKwEJzqxr2MEG7i9pNY5szk4qcH U66nOTjaWeXH8OqG7RGtF+PITCz6NMFbiWWN9kz/ZTdcWnKbFZYp2eKWHXljGQKFmqif 6ygnznCBYyWo0k/fgquJ+avKJKYDY88Cv2MwLzXS3DWD9kX1hzYuPz2V1o3nyi98ho45 NqnJydHWe1eo5Nu4+lbZfMZHF/MDx1AU/AIkMj7DNhnDVJcMVzTo/m7Fl2eu45ILpQpJ qJ2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id si9-20020a170906cec900b009a1f53509a7si10297399ejb.135.2023.09.12.21.08.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 449C9395383C for ; Wed, 13 Sep 2023 03:44:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 747373839C28 for ; Wed, 13 Sep 2023 03:43:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 747373839C28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGmx-0005hI-Ij for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:43:46 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8AxXOroLwFluzEmAA--.47135S3; Wed, 13 Sep 2023 11:43:36 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNzkLwFl+xECAA--.3660S5; Wed, 13 Sep 2023 11:43:35 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 21/22] LoongArch: Add tests for ASX vector xvext2xv/xvexth/xvextins/xvilvh/xvilvl/xvinsgr2vr/ xvinsve0/xvprem/xvpremi instructions. Date: Wed, 13 Sep 2023 11:43:29 +0800 Message-Id: <20230913034330.8377-2-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034330.8377-1-chenxiaolong@loongson.cn> References: <20230913034330.8377-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNzkLwFl+xECAA--.3660S5 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBXwAAsN X-Coremail-Antispam: 1Uk129KBj9DXoWkWw4UJw4rCFWUXr47Aw15KFX_yoW5XF47Wr X_JF1UJFW0gFsa9r1kXr1UZF98Wr17GwnFv3WUCF1vq3WSyw4kA3s8AF12gw17Gw1Uurnx AFyDuryUJrs8Gry8KosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1T uYvTs0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9f nUUIcSsGvfJTRUUUba8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4 v20xvaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0 rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267 AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7Cj xVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zV CFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW8Xw0E3s1lYx0E x4A2jsIE14v26r4UJVWxJr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4 x0Y40E4IxF1VCIxcxG6Fyj6r4UJwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67 kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY 6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIx AIcVC2z280aVAFwI0_Gr1j6F4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcSsG vfC2KfnxnUUI43ZEXa7IUYTbyJUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776893909055550290 X-GMAIL-MSGID: 1776893909055550290 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvext2xv-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvext2xv-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvexth-1.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvexth-2.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvextrins.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvilvh.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvilvl.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvinsgr2vr.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvinsve0.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvprem.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpremi.c: New test. --- .../loongarch/vector/lasx/lasx-xvext2xv-1.c | 515 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvext2xv-2.c | 669 ++++++++++++++++++ .../loongarch/vector/lasx/lasx-xvexth-1.c | 350 +++++++++ .../loongarch/vector/lasx/lasx-xvexth-2.c | 592 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvextrins.c | 515 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvilvh.c | 530 ++++++++++++++ .../loongarch/vector/lasx/lasx-xvilvl.c | 620 ++++++++++++++++ .../loongarch/vector/lasx/lasx-xvinsgr2vr.c | 272 +++++++ .../loongarch/vector/lasx/lasx-xvinsve0.c | 380 ++++++++++ .../loongarch/vector/lasx/lasx-xvprem.c | 20 + .../loongarch/vector/lasx/lasx-xvpremi.c | 20 + 11 files changed, 4483 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-1.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-2.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextrins.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvh.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvl.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsgr2vr.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsve0.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvprem.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpremi.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-1.c new file mode 100644 index 00000000000..94f31019c39 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-1.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2b2b2b2b1bd5d5d6; + *((unsigned long *)&__m256i_op0[2]) = 0x2a2a2a2af2d5d5d6; + *((unsigned long *)&__m256i_op0[1]) = 0x2b2b2b2b1bd5d5d6; + *((unsigned long *)&__m256i_op0[0]) = 0x2a2a2a2af2d5d5d6; + *((unsigned long *)&__m256i_result[3]) = 0x0000002a0000002a; + *((unsigned long *)&__m256i_result[2]) = 0x0000002a0000002a; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff2ffffffd5; + *((unsigned long *)&__m256i_result[0]) = 0xffffffd5ffffffd6; + __m256i_out = __lasx_vext2xv_w_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_w_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_op0[2]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_op0[1]) = 0xfff0fff0ff01ff01; + *((unsigned long *)&__m256i_op0[0]) = 0xfff0fff0fff0fff0; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffffffffff0; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffffffffff0; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[2]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000020000000200; + *((unsigned long *)&__m256i_op0[0]) = 0x0000020000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fe; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000017f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000017f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000017f; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff00fff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffff00fffffff0; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffffffffe20; + *((unsigned long *)&__m256i_result[2]) = 0x0000001dfffffe1f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0200000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x2000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0200000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x2000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000020000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000200000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op0[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[3]) = 0x0000498000000080; + *((unsigned long *)&__m256i_result[2]) = 0x00004843ffffffe0; + *((unsigned long *)&__m256i_result[1]) = 0x0000498000000080; + *((unsigned long *)&__m256i_result[0]) = 0x0000684000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000f6ff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001700170017; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001700170017; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000017; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00020002ff820002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00020002ff820002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffff82; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x03fbfffc03fc07fc; + *((unsigned long *)&__m256i_op0[2]) = 0x8000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x03fbfffc03fc07fc; + *((unsigned long *)&__m256i_op0[0]) = 0x8000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xd100645944100004; + *((unsigned long *)&__m256i_op0[2]) = 0xd1908469108400d1; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000404040104; + *((unsigned long *)&__m256i_op0[0]) = 0xd1108199714910f9; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000004040104; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffd1108199; + *((unsigned long *)&__m256i_result[0]) = 0x00000000714910f9; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-2.c new file mode 100644 index 00000000000..d93201bc469 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvext2xv-2.c @@ -0,0 +1,669 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x639c3fffb5dffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xb8c7800094400001; + *((unsigned long *)&__m256i_result[3]) = 0x0063009c003f00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00b500df00ff00fe; + *((unsigned long *)&__m256i_result[1]) = 0x00b800c700800000; + *((unsigned long *)&__m256i_result[0]) = 0x0094004000000001; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000aaabffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00aa00ab00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00aa00ab00ff00ff; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x01ff01ff01c0003e; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x01ff01ff01c0003e; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000100ff000100ff; + *((unsigned long *)&__m256i_result[0]) = 0x000100c00000003e; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000f0001000f; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000f0001000d; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000f0001000f; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000f0001000d; + *((unsigned long *)&__m256i_result[3]) = 0x000000010000000f; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000000f; + *((unsigned long *)&__m256i_result[1]) = 0x000000010000000f; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000000d; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000080; + __m256i_out = __lasx_vext2xv_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6100000800060005; + *((unsigned long *)&__m256i_op0[2]) = 0x5ee1c073b800c916; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5ff00007fff9fff3; + *((unsigned long *)&__m256i_result[3]) = 0x0000005f000000f0; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000007; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000f9; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000f3; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000008; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000781; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000064; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000029; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000029; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000029; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000000; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_vext2xv_wu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fffffefd; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fd; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff7fff7f; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff7f027f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff7f0100; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fe00fe7f027f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000007f; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000ff; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000003fbfc04; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001fdfe02; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000003fbfc04; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001fdfe02; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fd; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000002; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000b7; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffefff80; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ef; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000080; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op0[2]) = 0x0000002e0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000002e0000002e; + *((unsigned long *)&__m256i_op0[0]) = 0x0000002e0000fffe; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000002e; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000002e; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000002e; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000fffe; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcfee0fe00ffe0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfffcfee0fe00ffe0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffc0000fee0; + *((unsigned long *)&__m256i_result[0]) = 0x0000fe000000ffe0; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000001b0000001b; + *((unsigned long *)&__m256i_op0[2]) = 0x0000001b00fd0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000001b0000001b; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001b00fd0000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000001b; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000001b; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000001b; + *((unsigned long *)&__m256i_result[0]) = 0x000000fd00000000; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000017f7f7f; + *((unsigned long *)&__m256i_op0[2]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000017f7f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x7f00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000017f00007f7f; + *((unsigned long *)&__m256i_result[1]) = 0x00007f0000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff0000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff0000ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff00000000ff; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op0[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op0[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[3]) = 0x0000498000000080; + *((unsigned long *)&__m256i_result[2]) = 0x000048430000ffe0; + *((unsigned long *)&__m256i_result[1]) = 0x0000498000000080; + *((unsigned long *)&__m256i_result[0]) = 0x0000684000000000; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff7eddffff7ed3; + *((unsigned long *)&__m256i_op0[2]) = 0xffff7edfffff7edf; + *((unsigned long *)&__m256i_op0[1]) = 0xffff7eddffff7ed3; + *((unsigned long *)&__m256i_op0[0]) = 0xffff7edfffff7edf; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00007edd; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00007ed3; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff00007edf; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00007edf; + __m256i_out = __lasx_vext2xv_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000801380f380fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000801380f300fb; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008013; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000080f3; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fb; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000483800; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000008000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000008000; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000007f; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_vext2xv_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-1.c new file mode 100644 index 00000000000..9fb4e3ff0be --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-1.c @@ -0,0 +1,350 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[0]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[3]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_result[2]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_result[1]) = 0x005500550055ffab; + *((unsigned long *)&__m256i_result[0]) = 0x005500550055ffab; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000007f007f007f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000007f007f007f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff010ff0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff010ff0; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_h_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffec; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffebd8; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffec; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffebd8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffec; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffec; + __m256i_out = __lasx_xvexth_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvexth_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0xffffff1cffffff1c; + *((unsigned long *)&__m256i_result[2]) = 0xffffff1cffffff1c; + *((unsigned long *)&__m256i_result[1]) = 0xffffff1cffffff1c; + *((unsigned long *)&__m256i_result[0]) = 0xffffff1cffffff1c; + __m256i_out = __lasx_xvexth_w_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001010101; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001010101; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffffff; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000010; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000010; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000010; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvexth_d_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000007f00340040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000007f000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffec; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffec; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00080000002c0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0008000000080000; + *((unsigned long *)&__m256i_op0[1]) = 0x00080000002c0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0008000000080000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00080000002c0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00080000002c0000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f0000007f0060; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_q_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-2.c new file mode 100644 index 00000000000..fe6ff15d8a6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvexth-2.c @@ -0,0 +1,592 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000022; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7f7f7f7f7f7f7f7f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000045f3fb; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000045f3fb; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000004500f300fb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000004500f300fb; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op0[2]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_op0[1]) = 0x41dfffffffc00000; + *((unsigned long *)&__m256i_op0[0]) = 0xc1d75053f0000000; + *((unsigned long *)&__m256i_result[3]) = 0x004100df00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00c000000000; + *((unsigned long *)&__m256i_result[1]) = 0x004100df00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00c000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[1]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_result[0]) = 0x007f00ff007f00ff; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[3]) = 0x0002000200010002; + *((unsigned long *)&__m256i_result[2]) = 0x0002000200010002; + *((unsigned long *)&__m256i_result[1]) = 0x0002000200010002; + *((unsigned long *)&__m256i_result[0]) = 0x0002000200010002; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00ff00ff; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0080000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0080000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_hu_bu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffff8046867f79; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffff328dfff; + *((unsigned long *)&__m256i_op0[0]) = 0x6651bfff80000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ff80; + *((unsigned long *)&__m256i_result[2]) = 0x0000468600007f79; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000f3280000dfff; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000089; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000fffe; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffa30000165a; + *((unsigned long *)&__m256i_op0[2]) = 0x0000104000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffa30000165a; + *((unsigned long *)&__m256i_op0[0]) = 0x0000104000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000165a; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffa3; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000165a; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001010600000106; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001010600000106; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007cfcfd80000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007cfcfd80000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000002000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000020ff790020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000002000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000020ff790020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001ff03fe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffec75c2d209f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001ff03fe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffec75c2d209f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000001ff000003fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000001ff000003fe; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[2]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[1]) = 0x0000010100000101; + *((unsigned long *)&__m256i_result[0]) = 0x0000010100000101; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000ff; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_op0[1]) = 0x00000005ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000007ffffffce; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvexth_wu_hu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x5980000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x5980000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000fff8579f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_du_wu (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_op0[2]) = 0x00d6c1c830160048; + *((unsigned long *)&__m256i_op0[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op0[0]) = 0xe3aebaf4df958004; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x36722a7e66972cd6; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff5f5c; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000102; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000102; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000040; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000010000005e; + *((unsigned long *)&__m256i_op0[2]) = 0x000000a400ff004f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000010000005e; + *((unsigned long *)&__m256i_op0[0]) = 0x000000a400ff004f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000010000005e; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000010000005e; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff0000; + __m256i_out = __lasx_xvexth_qu_du (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextrins.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextrins.c new file mode 100644 index 00000000000..8e61f1c6d32 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvextrins.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000020202; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000002020202; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000020200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x25); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfe02fe02fee5fe22; + *((unsigned long *)&__m256i_op0[0]) = 0xff49fe4200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0xbf28b0686066be60; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0xff49fe4200000000; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0xbf); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_result[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fe; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0xfe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0x9f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0xc4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0x99); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000fffffefc0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000fffffffe0; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000fffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000fffffffff; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x8f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op1[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op1[1]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op1[0]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000061; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000061; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0xe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0x83); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[0]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x000000007bbbbbbb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007bbbbbbb; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x8d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x66); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0xda); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00007f7f00007f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff900000800; + *((unsigned long *)&__m256i_result[3]) = 0x00007f7f00007f00; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00007f7f00007fff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0x87); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0xa5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2b2a292827262524; + *((unsigned long *)&__m256i_op0[2]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_op0[1]) = 0x2b2a292827262524; + *((unsigned long *)&__m256i_op0[0]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000023; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000023; + *((unsigned long *)&__m256i_result[3]) = 0x0000000027262524; + *((unsigned long *)&__m256i_result[2]) = 0x232221201f1e1d1c; + *((unsigned long *)&__m256i_result[1]) = 0x0000000027262524; + *((unsigned long *)&__m256i_result[0]) = 0x232221201f1e1d1c; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0xbd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000080008001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000080000000; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0x33); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0xb8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffc6ffc6003a003a; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffff0000; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0xc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x54); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0xe7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000430207f944; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000430207f944; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x7e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[2]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op0[0]) = 0x0100010001000100; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[2]) = 0xff00010001000100; + *((unsigned long *)&__m256i_result[1]) = 0x0100010001000100; + *((unsigned long *)&__m256i_result[0]) = 0xff00010001000100; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0x7b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0x19); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff0000000f; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff0000000d; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0x56); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x1a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ff0100ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ff01; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ff01; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0x6f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000001010100; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000000000405; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000001010100; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000000000405; + *((unsigned long *)&__m256i_result[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000600000006; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0xf6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000007f8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000007f8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0x7b); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fff8fff8; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fff8fff8; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff00fff8ffc0; + __m256i_out = __lasx_xvextrins_b (__m256i_op0, __m256i_op1, 0x82); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000002000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000002000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000002000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000002000000; + __m256i_out = __lasx_xvextrins_h (__m256i_op0, __m256i_op1, 0x43); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001ffff0001ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvextrins_d (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256i_op1[1]) = 0xfffeb664007ffd61; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe97a1df5b41b0; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff007ffd61; + *((unsigned long *)&__m256i_result[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff007ffd61; + *((unsigned long *)&__m256i_result[0]) = 0xfffe97c020010001; + __m256i_out = __lasx_xvextrins_w (__m256i_op0, __m256i_op1, 0x62); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvh.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvh.c new file mode 100644 index 00000000000..5a047a5083b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvh.c @@ -0,0 +1,530 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xbff0800000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xbff0800000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffff90ffffff81; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffff90ffffff81; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000307fffe72e800; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x2020202020200008; + *((unsigned long *)&__m256i_op0[1]) = 0x0008010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020000020200000; + *((unsigned long *)&__m256i_result[2]) = 0x2020000020200000; + *((unsigned long *)&__m256i_result[1]) = 0x0008000001010000; + *((unsigned long *)&__m256i_result[0]) = 0x0101000001010000; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000001fffe; + *((unsigned long *)&__m256i_op1[3]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op1[2]) = 0x5555555580000000; + *((unsigned long *)&__m256i_op1[1]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op1[0]) = 0x5555555580000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x555555553f800000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x555555553f800000; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000003f00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000003f00000000; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_op0[2]) = 0x2475cef801f0ffdd; + *((unsigned long *)&__m256i_op0[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_op0[0]) = 0x419cd5b11c3c5654; + *((unsigned long *)&__m256i_op1[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_op1[2]) = 0x2475cef801f0ffdd; + *((unsigned long *)&__m256i_op1[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_op1[0]) = 0x419cd5b11c3c5654; + *((unsigned long *)&__m256i_result[3]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_result[2]) = 0x247fe49409620040; + *((unsigned long *)&__m256i_result[1]) = 0x6580668200fe0002; + *((unsigned long *)&__m256i_result[0]) = 0x6580668200fe0002; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xf5f5f5f5f5f5f5f5; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xf5f5f5f5f5f5f5f5; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000004000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000004000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[2]) = 0xff04ff00ff00ff00; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[0]) = 0xff04ff00ff00ff00; + __m256i_out = __lasx_xvilvh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000003f00390035; + *((unsigned long *)&__m256i_op0[2]) = 0x8015003f0006001f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000003f00390035; + *((unsigned long *)&__m256i_op0[0]) = 0x8015003f0006001f; + *((unsigned long *)&__m256i_op1[3]) = 0x80000000001529c1; + *((unsigned long *)&__m256i_op1[2]) = 0x80007073cadc3779; + *((unsigned long *)&__m256i_op1[1]) = 0x80000000001529c1; + *((unsigned long *)&__m256i_op1[0]) = 0x80007073cadc3779; + *((unsigned long *)&__m256i_result[3]) = 0x00008000003f0000; + *((unsigned long *)&__m256i_result[2]) = 0x00390015003529c1; + *((unsigned long *)&__m256i_result[1]) = 0x00008000003f0000; + *((unsigned long *)&__m256i_result[0]) = 0x00390015003529c1; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0020002000200020; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000002c; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000002c; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000002c; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000002c; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000002c0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000002c0000; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7eeefefefefefefe; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x7eeefefefefefefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7e00ee00fe00fe00; + *((unsigned long *)&__m256i_result[2]) = 0xfe00fe00fe00fe00; + *((unsigned long *)&__m256i_result[1]) = 0x7e00ee00fe00fe00; + *((unsigned long *)&__m256i_result[0]) = 0xfe00fe00fe00fe00; + __m256i_out = __lasx_xvilvh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xaad5555500000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xaad5555500000000; + *((unsigned long *)&__m256i_op1[3]) = 0x1f001f00000007ef; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00001fff200007ef; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x1f001f00000007ef; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00001fff200007ef; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff7bfffff1; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff80007fe9; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff7bfffff1; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff80007fe9; + *((unsigned long *)&__m256i_result[3]) = 0x40ff40ff40ff40ff; + *((unsigned long *)&__m256i_result[2]) = 0x407b40ff40ff40f1; + *((unsigned long *)&__m256i_result[1]) = 0x40ff40ff40ff40ff; + *((unsigned long *)&__m256i_result[0]) = 0x407b40ff40ff40f1; + __m256i_out = __lasx_xvilvh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff02000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff02000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffff1fffffff1; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0001fffa; + *((unsigned long *)&__m256i_op0[2]) = 0x0001fffe00018069; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0001fffa; + *((unsigned long *)&__m256i_op0[0]) = 0x0001fffe00018069; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00ff01fffffffeff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff01fffffffaff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff01fffffffeff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff01fffffffaff; + __m256i_out = __lasx_xvilvh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00001ff8d8d8c000; + *((unsigned long *)&__m256i_op0[2]) = 0x00001ff8d8d90000; + *((unsigned long *)&__m256i_op0[1]) = 0x00001ff8d8d8c000; + *((unsigned long *)&__m256i_op0[0]) = 0x00001ff8d8d90000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0200000202000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0200000202000002; + *((unsigned long *)&__m256i_result[3]) = 0x00001ff800000000; + *((unsigned long *)&__m256i_result[2]) = 0xd8d8c00000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00001ff800000000; + *((unsigned long *)&__m256i_result[0]) = 0xd8d8c00000000000; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op0[2]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op0[1]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op0[0]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op1[3]) = 0x4000c08000000080; + *((unsigned long *)&__m256i_op1[2]) = 0x00000080c000c080; + *((unsigned long *)&__m256i_op1[1]) = 0x4000c08000000080; + *((unsigned long *)&__m256i_op1[0]) = 0x00000080c000c080; + *((unsigned long *)&__m256i_result[3]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080ff0080; + *((unsigned long *)&__m256i_result[1]) = 0x8000400080ffc080; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080ff0080; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000000203ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000001ff03ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000001ff03ff; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0x000000019ffdf403; + *((unsigned long *)&__m256i_op1[2]) = 0x000000011ffd97c3; + *((unsigned long *)&__m256i_op1[1]) = 0x000000019ffdf403; + *((unsigned long *)&__m256i_op1[0]) = 0x000000011ffd97c3; + *((unsigned long *)&__m256i_result[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_result[2]) = 0x000000019ffdf403; + *((unsigned long *)&__m256i_result[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_result[0]) = 0x000000019ffdf403; + __m256i_out = __lasx_xvilvh_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x001fffffffe00000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x001f001fffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffe0ffe000000000; + *((unsigned long *)&__m256i_result[1]) = 0x001f001fffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffe0ffe000000000; + __m256i_out = __lasx_xvilvh_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffff8000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvh_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvl.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvl.c new file mode 100644 index 00000000000..4393045c3ac --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvilvl.c @@ -0,0 +1,620 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000900000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000001a00000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000900000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000009; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffefc; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff0000fffe0000; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000fefc0000; + *((unsigned long *)&__m256i_result[1]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000fffe0000; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffffffffffefd; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefdfffffefd; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000007f7f; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000007f7f7f; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000007f7f; + *((unsigned long *)&__m256i_op0[0]) = 0x000000007f007f78; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffffffffbfffc; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x007f00007f7f0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x7f00fffb7f78fffc; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8080808080808081; + *((unsigned long *)&__m256i_op1[1]) = 0x8080808080808081; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000808000008080; + *((unsigned long *)&__m256i_result[2]) = 0x0000808000008081; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op0[1]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0001fffe0001fffe; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00ff01fffffffeff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff01fffffffeff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff01fffffffeff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff01fffffffeff; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_op1[2]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_op1[1]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_op1[0]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x07efefefefefefee; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x07efefefefefefee; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffffffffffff; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000005; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[2]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[1]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_op1[0]) = 0xfff3fff3fff3fff3; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00f300ff00f3; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00f300ff00f3; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00f300ff00f3; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00f300ff00f3; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff00040000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff000c0000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00040000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00fe00ff00fe; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00fe00fe; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00fe00fe; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0102; + *((unsigned long *)&__m256i_op0[2]) = 0x007c000000810081; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0102; + *((unsigned long *)&__m256i_op0[0]) = 0x007c000000810081; + *((unsigned long *)&__m256i_op1[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x007c7fff00007fff; + *((unsigned long *)&__m256i_result[2]) = 0x00817fff00810000; + *((unsigned long *)&__m256i_result[1]) = 0x007c7fff00007fff; + *((unsigned long *)&__m256i_result[0]) = 0x00817fff00810000; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000001d001d; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000001d0000001d; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op0[2]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000e0e0e0e0; + *((unsigned long *)&__m256i_op0[0]) = 0xe0e0e0e0e0e0e0e0; + *((unsigned long *)&__m256i_op1[3]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op1[2]) = 0x7000700070007000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000070007000; + *((unsigned long *)&__m256i_op1[0]) = 0x7000700070007000; + *((unsigned long *)&__m256i_result[3]) = 0xe070e000e070e000; + *((unsigned long *)&__m256i_result[2]) = 0xe070e000e070e000; + *((unsigned long *)&__m256i_result[1]) = 0xe070e000e070e000; + *((unsigned long *)&__m256i_result[0]) = 0xe070e000e070e000; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x003f003f003f0040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x003f003f003f0040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x003f003f003f0040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x003f003f003f0040; + *((unsigned long *)&__m256i_result[3]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_result[2]) = 0x00003f3f00004040; + *((unsigned long *)&__m256i_result[1]) = 0x00003f3f00003f3f; + *((unsigned long *)&__m256i_result[0]) = 0x00003f3f00004040; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000100; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffffffffe98; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000064; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000e000e000e000e; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000e000e; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000e000e; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0003800400038004; + *((unsigned long *)&__m256i_op0[2]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_op0[1]) = 0x0003800400038004; + *((unsigned long *)&__m256i_op0[0]) = 0x000a800b000a800b; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000a0080000b00; + *((unsigned long *)&__m256i_result[2]) = 0x00000a0080000b00; + *((unsigned long *)&__m256i_result[1]) = 0x00000a0080000b00; + *((unsigned long *)&__m256i_result[0]) = 0x00000a0080000b00; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfe01fe01fd02fd02; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op0[1]) = 0xfe01fe01fd02fd02; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003fc03fc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x3f00c0003f00c000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x3f00c0003f00c000; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op0[1]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op0[0]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[3]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op1[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_op1[1]) = 0x498000804843ffe0; + *((unsigned long *)&__m256i_op1[0]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[3]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[2]) = 0x4980008068400000; + *((unsigned long *)&__m256i_result[1]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[0]) = 0x4980008068400000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xf000f000f000f000; + *((unsigned long *)&__m256i_op1[2]) = 0xf000f010f000f010; + *((unsigned long *)&__m256i_op1[1]) = 0xf000f000f000f000; + *((unsigned long *)&__m256i_op1[0]) = 0xf000f010f000f010; + *((unsigned long *)&__m256i_result[3]) = 0x00f0000000f00010; + *((unsigned long *)&__m256i_result[2]) = 0xfff0ff00fff0ff10; + *((unsigned long *)&__m256i_result[1]) = 0x00f0000000f00010; + *((unsigned long *)&__m256i_result[0]) = 0xfff0ff00fff0ff10; + __m256i_out = __lasx_xvilvl_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvilvl_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffed; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffed; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffed; + __m256i_out = __lasx_xvilvl_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsgr2vr.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsgr2vr.c new file mode 100644 index 00000000000..ce28c4857f3 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsgr2vr.c @@ -0,0 +1,272 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_op0[2]) = 0x146014141414146e; + *((unsigned long *)&__m256i_op0[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_op0[0]) = 0xf19998668e5f4b84; + long_op1 = 0x0000007942652524; + *((unsigned long *)&__m256i_result[3]) = 0x8b1414140e0e0e0e; + *((unsigned long *)&__m256i_result[2]) = 0x0000007942652524; + *((unsigned long *)&__m256i_result[1]) = 0x36722a7e66972cd6; + *((unsigned long *)&__m256i_result[0]) = 0xf19998668e5f4b84; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0202020201010000; + int_op1 = 0x00000045eef14fe8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000eef14fe8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0202020201010000; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x012e2110012e2110; + int_op1 = 0x00000000000000ac; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000ac; + *((unsigned long *)&__m256i_result[0]) = 0x012e2110012e2110; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + long_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[2]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_op0[0]) = 0xff800000ff800000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_result[2]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_result[1]) = 0xff800000ff800000; + *((unsigned long *)&__m256i_result[0]) = 0xff80000000000000; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff0000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff0000ff; + int_op1 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff0000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff0000ff; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe800c000fffeeece; + *((unsigned long *)&__m256i_op0[2]) = 0xffff383efffedf0c; + *((unsigned long *)&__m256i_op0[1]) = 0xe800c000fffeeece; + *((unsigned long *)&__m256i_op0[0]) = 0xffff383efffedf0c; + int_op1 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0xe800c000fffeeece; + *((unsigned long *)&__m256i_result[2]) = 0xffff383e000000ff; + *((unsigned long *)&__m256i_result[1]) = 0xe800c000fffeeece; + *((unsigned long *)&__m256i_result[0]) = 0xffff383efffedf0c; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op0[2]) = 0x0020000000200000; + *((unsigned long *)&__m256i_op0[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_op0[0]) = 0x0020000000200000; + long_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[2]) = 0x0020000000200000; + *((unsigned long *)&__m256i_result[1]) = 0x0020002000200020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000040404040; + *((unsigned long *)&__m256i_result[0]) = 0x4040404040404040; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000048; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000048; + long_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000048; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_op1 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff7fffffff7; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff7fffffff7; + *((unsigned long *)&__m256i_result[1]) = 0xfffffff700000000; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff7fffffff7; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_d (__m256i_op0, long_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000d6d6d; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000d6d6d; + int_op1 = 0x00000000090b0906; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000090b0906; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000d6d6d; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x000000000000001e; + *((unsigned long *)&__m256i_result[3]) = 0x0000001e00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_op0[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op0[0]) = 0xfefefefefefefefe; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[2]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000050005; + *((unsigned long *)&__m256i_result[0]) = 0xfefefefefefefefe; + __m256i_out = __lasx_xvinsgr2vr_w (__m256i_op0, int_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsve0.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsve0.c new file mode 100644 index 00000000000..644d2ce4ba2 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvinsve0.c @@ -0,0 +1,380 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[2]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[1]) = 0x0005000500050005; + *((unsigned long *)&__m256i_op1[0]) = 0x0005000500050005; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000050005; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000004fb; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xfffffefe00000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000170017; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000170017; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000170017; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000017; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000170017; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x6); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fffffffe; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffefffffffe; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffefffffffe; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op1[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000040404040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff000200000000; + *((unsigned long *)&__m256i_op0[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff000200000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x001f00e0ff800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x001f00e0ff800000; + *((unsigned long *)&__m256i_result[3]) = 0xff80000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000200000000; + *((unsigned long *)&__m256i_result[1]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff000200000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op0[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_op1[0]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[3]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[2]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[1]) = 0x9090909090909090; + *((unsigned long *)&__m256i_result[0]) = 0x9090909090909090; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000001; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op1[3]) = 0x000040b200002fd4; + *((unsigned long *)&__m256i_op1[2]) = 0x00007fff0000739c; + *((unsigned long *)&__m256i_op1[1]) = 0x000040b200002fd4; + *((unsigned long *)&__m256i_op1[0]) = 0x00007fff0000739c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000739c; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000ff; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffff800080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffff800080000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff800080000000; + *((unsigned long *)&__m256i_result[1]) = 0xffff800000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff800000000000; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_op0[0]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op1[2]) = 0x132feea900000000; + *((unsigned long *)&__m256i_op1[1]) = 0x04e8296f18181818; + *((unsigned long *)&__m256i_op1[0]) = 0x132feea900000000; + *((unsigned long *)&__m256i_result[3]) = 0x6018000000000cd1; + *((unsigned long *)&__m256i_result[2]) = 0x6040190d00000000; + *((unsigned long *)&__m256i_result[1]) = 0x132feea900000000; + *((unsigned long *)&__m256i_result[0]) = 0x6040190d00000000; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ff88ffc0; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_result[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff78ffc0; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x03fbfffc03fc07fc; + *((unsigned long *)&__m256i_op1[2]) = 0x8000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x03fbfffc03fc07fc; + *((unsigned long *)&__m256i_op1[0]) = 0x8000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000ffff0000ffff; + __m256i_out = __lasx_xvinsve0_d (__m256i_op0, __m256i_op1, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_op0[2]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_op0[0]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_result[2]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff8001ffff0001; + __m256i_out = __lasx_xvinsve0_w (__m256i_op0, __m256i_op1, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvprem.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvprem.c new file mode 100644 index 00000000000..9346f9bfb41 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvprem.c @@ -0,0 +1,20 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpremi.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpremi.c new file mode 100644 index 00000000000..9346f9bfb41 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpremi.c @@ -0,0 +1,20 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + return 0; +} From patchwork Wed Sep 13 03:43:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 138630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp841093vqx; Tue, 12 Sep 2023 21:09:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5REt1PjTrWdPZLTCa+qlXVpzyVZIhE/Jbh+ZdF0xVrB0uQYvEKGuVdC4lH3VHtPZotiEw X-Received: by 2002:aa7:dd17:0:b0:523:d1ab:b2ec with SMTP id i23-20020aa7dd17000000b00523d1abb2ecmr1131908edv.35.1694578183243; Tue, 12 Sep 2023 21:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694578183; cv=none; d=google.com; s=arc-20160816; b=FmP+UUPPvAkYGXuawmGLFchwx/etbqAgLApvHC1+AphMIQfT1ydb8I6P/URWn9mjXC +3TpB5iSRsqkvBLZU8g0pXafy88bO+sOAhmXhcQpQkYERL1kgtHntAw2Ywd/vLhK80R6 qciQiU6omGez1z688LXRY09Us2cYILGzqPg2ZlY8FqCW2Pf68t2pGNH9tuyq94aqLBYE yRuEryP3QUDqGTAs6Y2/XGPS8T2xJnuPl7OVhaFsy24dbVP0g7dfmagsRPPiDHzjmRwC Tb0oS7NjkLR1DLhyly9BdZJXgU4HUK+duiyq4ORMGjmqo4+gei4aH0toJFqUuRzlWilP oquA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=yNYSnAikYdF8N4h/LHLqV3wmOXeyzXRi/HCpKYtaqmE=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=LDQqiC2xWNOuzk1e7CQiSvr393CEi5AtLAmiwRR/7AMKbAHzU+VsGj+MZEAr5WbUfG V5gFHD0Y99HsLgxIGlrnRM4KbpqmaHwCFqV4mUWSz1zGMGHrd8YivM8pB6szbLBUgJZT gqkO/Z1U1MvhkdaFOUAWZSCAbL48wWB546BzFwKOB3fUT/ksJZjbnkAZcgor4Xte6Twu P+Kh53LwZ7x7ET5hsfvWtT0WPe7BWRPs+9k3t5fIPlwv3NdwKle6wkaLNoanzN9yEpDD 1pz1r0RCRDuGmVSFMeHDMXxHztdwL+KNFerczNRMqPsWl+uNcDYSPxjQ4BVpydUhyjFu mk4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h7-20020a0564020e8700b0052f248d0057si8284824eda.366.2023.09.12.21.09.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 21:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D6D5A3838A5A for ; Wed, 13 Sep 2023 03:45:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id E7A693831EB6 for ; Wed, 13 Sep 2023 03:43:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E7A693831EB6 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgGn0-0005iA-6q for gcc-patches@gcc.gnu.org; Tue, 12 Sep 2023 23:43:51 -0400 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8CxbevrLwFlvzEmAA--.6322S3; Wed, 13 Sep 2023 11:43:39 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNzkLwFl+xECAA--.3660S6; Wed, 13 Sep 2023 11:43:38 +0800 (CST) From: Xiaolong Chen To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen Subject: [PATCH v4 22/22] LoongArch: Add tests for ASX vector xvpackev/xvpackod/xvpickev/xvpickod/ xvpickve2gr/xvreplgr2vr/xvreplve/xvreplve0/xvreplvei/xvshuf4i/xvshuf instructions. Date: Wed, 13 Sep 2023 11:43:30 +0800 Message-Id: <20230913034330.8377-3-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913034330.8377-1-chenxiaolong@loongson.cn> References: <20230913034330.8377-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxfNzkLwFl+xECAA--.3660S6 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIBYQAAsz X-Coremail-Antispam: 1Uk129KBj9DXoWkur43JrWfGrWxXFWUZw4xAFc_yoW5Zr43JF b_JF1UJFW0gFsa9r1DXr1UZF98Wr17GwnFv3WUCF1vq3WSyw4kA3s8AF12gw17tw1Uurnx AFyDuryUGrs8GryxKosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1T uYvTs0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9f nUUIcSsGvfJTRUUUba8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4 v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0 rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267 AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7Cj xVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zV CFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVW8Xw0E3s1lYx0E x4A2jsIE14v26r4UJVWxJr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4 x0Y40E4IxF1VCIxcxG6Fyj6r4UJwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67 kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY 6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIx AIcVC2z280aVAFwI0_Gr1j6F4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcSsG vfC2KfnxnUUI43ZEXa7IUYfsqJUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776894013399409321 X-GMAIL-MSGID: 1776894013399409321 gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-xvpackev.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpackod.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpickev.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpickod.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpickve.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvpickve2gr.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvreplgr2vr.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvreplve.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvreplve0.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvreplvei.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvshuf4i_b.c: New test. * gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c: New test. --- .../loongarch/vector/lasx/lasx-xvpackev.c | 501 ++++++++++++ .../loongarch/vector/lasx/lasx-xvpackod.c | 575 +++++++++++++ .../loongarch/vector/lasx/lasx-xvpickev.c | 515 ++++++++++++ .../loongarch/vector/lasx/lasx-xvpickod.c | 530 ++++++++++++ .../loongarch/vector/lasx/lasx-xvpickve.c | 130 +++ .../loongarch/vector/lasx/lasx-xvpickve2gr.c | 388 +++++++++ .../loongarch/vector/lasx/lasx-xvreplgr2vr.c | 380 +++++++++ .../loongarch/vector/lasx/lasx-xvreplve.c | 536 ++++++++++++ .../loongarch/vector/lasx/lasx-xvreplve0.c | 471 +++++++++++ .../loongarch/vector/lasx/lasx-xvreplvei.c | 20 + .../loongarch/vector/lasx/lasx-xvshuf4i_b.c | 430 ++++++++++ .../loongarch/vector/lasx/lasx-xvshuf_b.c | 761 ++++++++++++++++++ 12 files changed, 5237 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackev.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackod.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickev.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickod.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve2gr.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplgr2vr.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve0.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplvei.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf4i_b.c create mode 100644 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackev.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackev.c new file mode 100644 index 00000000000..33b96d657dc --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackev.c @@ -0,0 +1,501 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x81f7f2599f0509c2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x51136d3c78388916; + *((unsigned long *)&__m256i_op1[3]) = 0x044819410d87e69a; + *((unsigned long *)&__m256i_op1[2]) = 0x21d3905ae3e93be0; + *((unsigned long *)&__m256i_op1[1]) = 0x5125883a30da0f20; + *((unsigned long *)&__m256i_op1[0]) = 0x6d7b2d3ac2777aeb; + *((unsigned long *)&__m256i_result[3]) = 0x000019410000e69a; + *((unsigned long *)&__m256i_result[2]) = 0xf259905a09c23be0; + *((unsigned long *)&__m256i_result[1]) = 0x0000883a00000f20; + *((unsigned long *)&__m256i_result[0]) = 0x6d3c2d3a89167aeb; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4f8000004f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x4f7fffbf0000fe00; + *((unsigned long *)&__m256i_op0[1]) = 0x000000004f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x4f7fffe64f7fffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfe02fe02fee5fe22; + *((unsigned long *)&__m256i_op1[0]) = 0xff49fe4200000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffbf0000fe000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fe020000fe22; + *((unsigned long *)&__m256i_result[0]) = 0xffe6fe42ffc00000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xc06500550055ffab; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x00550000ffab0001; + *((unsigned long *)&__m256i_result[1]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x00550000ffab0001; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000001000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000401000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000401000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000400000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000400000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000400000000; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff0000ffff; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[1]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_op1[0]) = 0x01fe01fe00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x01fe01fe01fe01fe; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x01fe01fe00000000; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ffffffffff; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000089; + *((unsigned long *)&__m256i_result[3]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[2]) = 0x000000000154dc84; + *((unsigned long *)&__m256i_result[1]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000089; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000200; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000200; + __m256i_out = __lasx_xvpackev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fc000007fc00000; + *((unsigned long *)&__m256i_op1[1]) = 0x7f8000007f800000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fc000007fc00000; + *((unsigned long *)&__m256i_result[3]) = 0x0080010000800100; + *((unsigned long *)&__m256i_result[2]) = 0x00c0000000c00000; + *((unsigned long *)&__m256i_result[1]) = 0x0080010000800100; + *((unsigned long *)&__m256i_result[0]) = 0x00c0000000c00000; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000001fdfffffe02; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000001fefe; + *((unsigned long *)&__m256i_op0[0]) = 0xffff01fefffeff02; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000fd00ffff02ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000001fffeff; + *((unsigned long *)&__m256i_result[0]) = 0xff00fe00feff02ff; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8011ffee804c004c; + *((unsigned long *)&__m256i_op0[2]) = 0x00faff0500c3ff3c; + *((unsigned long *)&__m256i_op0[1]) = 0x80f900f980780078; + *((unsigned long *)&__m256i_op0[0]) = 0x0057ffa800ceff31; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffee0000004c0000; + *((unsigned long *)&__m256i_result[2]) = 0xff050000ff3c0000; + *((unsigned long *)&__m256i_result[1]) = 0x00f9000000780000; + *((unsigned long *)&__m256i_result[0]) = 0xffa80000ff310000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffff00000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001d0000001d; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00001d0000001d00; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003fe000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003fe000000000; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00ffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ffff00000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x6); + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ff890000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff790000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ff890000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff790000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ff790000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ff790000; + __m256i_out = __lasx_xvpackev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffff00ff800000; + *((unsigned long *)&__m256i_op0[1]) = 0x41dffbffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff00ff800000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfbff0000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfbff0000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0xff00000000000000; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffe7ffffffe7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000007b007e; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000007b007e; + *((unsigned long *)&__m256i_result[3]) = 0xffffffe700000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffe7007b007e; + *((unsigned long *)&__m256i_result[1]) = 0xffffffe700000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffe7007b007e; + __m256i_out = __lasx_xvpackev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000008000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0003fffc0803fff8; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000008000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0003fffc0803fff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000fffc0000fff8; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000fffc0000fff8; + __m256i_out = __lasx_xvpackev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackod.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackod.c new file mode 100644 index 00000000000..cdd20e8813d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpackod.c @@ -0,0 +1,575 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7f057f0b7f5b007f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7f00ff00ff00ff00; + *((unsigned long *)&__m256i_result[0]) = 0x7f7fff7fff7fff00; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffff00000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fffffff; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffff5f5c; + *((unsigned long *)&__m256i_op1[3]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_op1[1]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000fff00000fff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[2]) = 0xff00ff0fff005f0f; + *((unsigned long *)&__m256i_result[1]) = 0x0000000f0000000f; + *((unsigned long *)&__m256i_result[0]) = 0xff00ff0fff005f0f; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffff000607f7; + *((unsigned long *)&__m256i_op1[2]) = 0x000000010017e7d1; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffff000607f7; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001001807f1; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000e7; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00000007; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000007; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[2]) = 0x0002555500000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op0[0]) = 0x0002555500000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x555555553f800000; + *((unsigned long *)&__m256i_result[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000003f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000005400; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000005400; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000007fff8; + *((unsigned long *)&__m256i_op1[1]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000007fff8; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0007fff8000ffff0; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0007fff8000ffff0; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_op0[1]) = 0xffefffef00000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffefffefffefffef; + *((unsigned long *)&__m256i_op1[3]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[1]) = 0x0000002000000020; + *((unsigned long *)&__m256i_op1[0]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[3]) = 0xff00ff0000000000; + *((unsigned long *)&__m256i_result[2]) = 0xff00ff00ff00ff00; + *((unsigned long *)&__m256i_result[1]) = 0xff00ff0000000000; + *((unsigned long *)&__m256i_result[0]) = 0xff00ff00ff00ff00; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000f0000000f000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000f0000000f000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvpackod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op0[2]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op0[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op0[0]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000c8; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000c8; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op1[2]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000022beb03f; + *((unsigned long *)&__m256i_op1[0]) = 0x7fffffffa2beb040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000022be22be; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fffa2bea2be; + *((unsigned long *)&__m256i_result[1]) = 0x0000000022be22be; + *((unsigned long *)&__m256i_result[0]) = 0x7fff7fffa2bea2be; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[1]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[0]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff10000fff10000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xfff10000fff10000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfff1000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfff1000000000000; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000008; + *((unsigned long *)&__m256i_op1[3]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_op1[2]) = 0xff00000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffff00ffffff00; + *((unsigned long *)&__m256i_op1[0]) = 0xff00000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000ff0000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000ff0000000000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000555500005555; + *((unsigned long *)&__m256i_op0[2]) = 0x0000555500005555; + *((unsigned long *)&__m256i_op0[1]) = 0x0000555500005555; + *((unsigned long *)&__m256i_op0[0]) = 0x0000555500005555; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_op0[2]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_op0[0]) = 0xfffcfffcfffcfffc; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffcfffcfffc; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000a0008; + *((unsigned long *)&__m256i_op1[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op1[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0x0000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff88ff88; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000fff8ffc0; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ff00fff8ffc0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00000000fff80000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000fff80000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000fff80000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000fff80000; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffff00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x7fffffffffffffff; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpackod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_result[3]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_result[2]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_result[1]) = 0x00007fff00007fff; + *((unsigned long *)&__m256i_result[0]) = 0x00007fff00007fff; + __m256i_out = __lasx_xvpackod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickev.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickev.c new file mode 100644 index 00000000000..66faa74d0ca --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickev.c @@ -0,0 +1,515 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffff90ffffff81; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffff90ffffff81; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ff90ff81; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ff90ff81; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000007f; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffffffe81; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffe81; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000001341c4000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000001000310000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000033e87ef1; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000002e2100; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000011c00; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000e8f1; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000103100; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000002e00; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000002a54290; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000004290; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000004290; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000004290; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000004290; + __m256i_out = __lasx_xvpickev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[3]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_op1[2]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_op1[1]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_op1[0]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xbfbfbfbfbfbfbfbf; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xbfbfbfbfbfbfbfbf; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000010000; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op1[2]) = 0xa020202020206431; + *((unsigned long *)&__m256i_op1[1]) = 0xa020202020202020; + *((unsigned long *)&__m256i_op1[0]) = 0xa020202020206431; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202031; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202031; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0004040404000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0004040404000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0004040404000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0004040404000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0404000004040000; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0404000004040000; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0xf800d0d8ffffeecf; + *((unsigned long *)&__m256i_op1[2]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_op1[1]) = 0xf800d0d8ffffeecf; + *((unsigned long *)&__m256i_op1[0]) = 0x0000383fffffdf0d; + *((unsigned long *)&__m256i_result[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[2]) = 0xd0d8eecf383fdf0d; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0xd0d8eecf383fdf0d; + __m256i_out = __lasx_xvpickev_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000100000001; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xdf80ff20df80ff20; + *((unsigned long *)&__m256i_op0[2]) = 0xdfc2ff20df80ffa7; + *((unsigned long *)&__m256i_op0[1]) = 0xdf80ff20df80ff20; + *((unsigned long *)&__m256i_op0[0]) = 0xdfc2ff20df80ffa7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x80208020c22080a7; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x80208020c22080a7; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000040000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000040000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000400; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000400; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op1[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_op1[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op1[0]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xe07de0801f20607a; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xe07de0801f20607a; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000004; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000400000004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000800080010000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000800080010000; + *((unsigned long *)&__m256i_result[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[2]) = 0x8000800080010000; + *((unsigned long *)&__m256i_result[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_result[0]) = 0x8000800080010000; + __m256i_out = __lasx_xvpickev_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[3]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[2]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[1]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_op1[0]) = 0x00000001fffffff9; + *((unsigned long *)&__m256i_result[3]) = 0x9ffffd8020010001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffff9fffffff9; + *((unsigned long *)&__m256i_result[1]) = 0x9ffffd8020010001; + *((unsigned long *)&__m256i_result[0]) = 0xfffffff9fffffff9; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x000000000000ffff; + __m256i_out = __lasx_xvpickev_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x000000070002000a; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x000000060002000a; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x000000060002000a; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffff80000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickev_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickod.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickod.c new file mode 100644 index 00000000000..a9778809fda --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickod.c @@ -0,0 +1,530 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0003f8040002f607; + *((unsigned long *)&__m256i_op0[0]) = 0x0002728b00000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffffff328dfff; + *((unsigned long *)&__m256i_op1[0]) = 0x6651bfff00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0003f8040002f607; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffff328dfff; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0080200000802000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0080200000802000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x00200020ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x1e0000001e000000; + *((unsigned long *)&__m256i_result[1]) = 0x00200020ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x1e0000001e000000; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0080200000802000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0080200000802000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x00800080ffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x00800080ffffffff; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000ffff8c80; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffffe40; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000040004; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[1]) = 0x0400040004000400; + *((unsigned long *)&__m256i_op1[0]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[0]) = 0x0400040004000400; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xb70036db12c4007e; + *((unsigned long *)&__m256i_op0[2]) = 0xb7146213fc1e0049; + *((unsigned long *)&__m256i_op0[1]) = 0x000000fefe02fffe; + *((unsigned long *)&__m256i_op0[0]) = 0xb71c413b199d04b5; + *((unsigned long *)&__m256i_op1[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_op1[2]) = 0x00ff00ff017e00ff; + *((unsigned long *)&__m256i_op1[1]) = 0x017e00ff017e01fe; + *((unsigned long *)&__m256i_op1[0]) = 0x00ff00ff017e00ff; + *((unsigned long *)&__m256i_result[3]) = 0xb70012c4b714fc1e; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff017e; + *((unsigned long *)&__m256i_result[1]) = 0x0000fe02b71c199d; + *((unsigned long *)&__m256i_result[0]) = 0x017e017e00ff017e; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc080ffff0049ffd2; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0049ffd2; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffeffb9ff9d; + *((unsigned long *)&__m256i_op0[0]) = 0x01620133004b0032; + *((unsigned long *)&__m256i_op1[3]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_op1[2]) = 0xffb7ff80ffd0ffd8; + *((unsigned long *)&__m256i_op1[1]) = 0x00010000002fff9e; + *((unsigned long *)&__m256i_op1[0]) = 0xffb5ff80ffd0ffd8; + *((unsigned long *)&__m256i_result[3]) = 0xc080ffff0049ffd2; + *((unsigned long *)&__m256i_result[2]) = 0x0002ff80ffb70000; + *((unsigned long *)&__m256i_result[1]) = 0x0000fffeffb9ff9d; + *((unsigned long *)&__m256i_result[0]) = 0x00010000002fff9e; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xbabababababababa; + *((unsigned long *)&__m256i_op1[2]) = 0xbabababababababa; + *((unsigned long *)&__m256i_op1[1]) = 0xbabababababababa; + *((unsigned long *)&__m256i_op1[0]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xbabababababababa; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xbabababababababa; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000100000001; + *((unsigned long *)&__m256i_op1[3]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op1[2]) = 0xc6c6c6c68787878a; + *((unsigned long *)&__m256i_op1[1]) = 0x000000003f3f3f3c; + *((unsigned long *)&__m256i_op1[0]) = 0x8787878a00000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00003f3fc6c68787; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00003f3f87870000; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007fff003f; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fff003f; + *((unsigned long *)&__m256i_result[3]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000007fff; + *((unsigned long *)&__m256i_result[1]) = 0x7fffffff7fffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000007fff; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[2]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op0[0]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xf7f7f7f7f7f7f7f7; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000002467db99; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003e143852; + *((unsigned long *)&__m256i_op0[1]) = 0x000000002467db99; + *((unsigned long *)&__m256i_op0[0]) = 0x000000003e143852; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[2]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000044444443; + *((unsigned long *)&__m256i_op1[0]) = 0x7bbbbbbbf7777778; + *((unsigned long *)&__m256i_result[3]) = 0x0000246700003e14; + *((unsigned long *)&__m256i_result[2]) = 0x000044447bbbf777; + *((unsigned long *)&__m256i_result[1]) = 0x0000246700003e14; + *((unsigned long *)&__m256i_result[0]) = 0x000044447bbbf777; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000005; + *((unsigned long *)&__m256i_op1[3]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[2]) = 0x0002000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0006000000040000; + *((unsigned long *)&__m256i_op1[0]) = 0x0002000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0006000000020000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0006000000020000; + __m256i_out = __lasx_xvpickod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op0[0]) = 0x007f00ff007f00ff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_b (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xbff00000bff00000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xbff00000bff00000; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op0[2]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op0[1]) = 0x9ff87ef07f7f817f; + *((unsigned long *)&__m256i_op0[0]) = 0x7f807f007f7f817f; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x9ff87f7f7f807f7f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x9ff87f7f7f807f7f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffe98; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffffffffe98; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x00000000007f0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000007f00000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000007f00000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000007f00000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000007f00000000; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_h (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickod_d (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[2]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op0[0]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x1c1c1c1c1c1c1c1c; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvpickod_w (__m256i_op0, __m256i_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve.c new file mode 100644 index 00000000000..a2edbb80ac3 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve.c @@ -0,0 +1,130 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op0[1]) = 0x010180068080fff9; + *((unsigned long *)&__m256i_op0[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvpickve_d (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickve_w (__m256i_op0, 0x0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_op0[1]) = 0x00fe01f000010000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000c40086; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000c40086; + __m256i_out = __lasx_xvpickve_d (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickve_d (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op0[2]) = 0xff820002ff820002; + *((unsigned long *)&__m256i_op0[1]) = 0x0002000200020002; + *((unsigned long *)&__m256i_op0[0]) = 0xff820002ff820002; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0002000200020002; + __m256i_out = __lasx_xvpickve_d (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x4000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x4000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x4000000000000000; + __m256i_out = __lasx_xvpickve_d (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickve_w (__m256i_op0, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvpickve_d (__m256i_op0, 0x2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvpickve_w (__m256i_op0, 0x3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffffffff; + __m256i_out = __lasx_xvpickve_w (__m256i_op0, 0x1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve2gr.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve2gr.c new file mode 100644 index 00000000000..8bd3a827356 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve2gr.c @@ -0,0 +1,388 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0cc08723ff900001; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xcc9b89f2f6cef440; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x7); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ff80; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + int_result = 0x000000000000ffff; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x6); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff00000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x3); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ff90ff81; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000007f; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ff90ff81; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000007f; + int_result = 0x000000000000007f; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x4); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + int_result = 0x00000000ffffffff; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_int_result = 0x0000000000000000; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffefdfffffefd; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + int_result = 0x00000000fffffefd; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x4); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_int_result = 0x0000000000000000; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op0[2]) = 0x5555555580000000; + *((unsigned long *)&__m256i_op0[1]) = 0x555555553f800000; + *((unsigned long *)&__m256i_op0[0]) = 0x5555555580000000; + int_result = 0x0000000055555555; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x5); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + long_int_result = 0x0000000000000000; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[2]) = 0x0002000400000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffffe; + *((unsigned long *)&__m256i_op0[0]) = 0x0002000200020006; + unsigned_int_result = 0x0000000000020006; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff8000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1f0fdf7f3e3b31d4; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff8000000000000; + long_int_result = 0x1f0fdf7f3e3b31d4; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x3); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00fe01fc01fe01fc; + *((unsigned long *)&__m256i_op0[2]) = 0x012c002c001c0006; + *((unsigned long *)&__m256i_op0[1]) = 0x00fe01fc01fe0000; + *((unsigned long *)&__m256i_op0[0]) = 0x012c002c001c000a; + long_int_result = 0xfe01fc01fe0000; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + unsigned_long_int_result = 0x00000000ffffffff; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, unsigned_long_int_out, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x3); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x5); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0100; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + long_int_result = 0x00000000ffff0100; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7ff0000000000000; + int_result = 0x000000007ff00000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + unsigned_long_int_result = 0x00000000ffffffff; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000ff; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x6); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0xffffffffffffffff; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_int_result = 0x0000000000000000; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x5); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffff0100000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff0100000001; + unsigned_int_result = 0x0000000000000000; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x7); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff0008; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff0008; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x6); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_int_result = 0x0000000000000000; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + long_int_result = 0x0000000000000000; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff00000000; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000ffff; + long_int_result = 0x000000000000ffff; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op0[2]) = 0x0010001000100010; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000100010; + *((unsigned long *)&__m256i_op0[0]) = 0x0010001000100010; + unsigned_int_result = 0x0000000000100010; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_int_result = 0x0000000000000000; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x3); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000100040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000100040; + unsigned_int_result = 0x0000000000000040; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x6); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x3); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x6); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + long_int_result = 0xffffffffffffffff; + long_int_out = __lasx_xvpickve2gr_d (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, long_int_result, long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + unsigned_int_result = 0x00000000ffffffff; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x5); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + unsigned_int_result = 0x00000000ffffffff; + unsigned_int_out = __lasx_xvpickve2gr_wu (__m256i_op0, 0x4); + ASSERTEQ_int (__LINE__, unsigned_int_result, unsigned_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x1); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + unsigned_long_int_result = 0x0000000000000000; + unsigned_long_int_out = __lasx_xvpickve2gr_du (__m256i_op0, 0x3); + ASSERTEQ_int (__LINE__, unsigned_long_int_result, unsigned_long_int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x0); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + int_result = 0x00000000ffffffff; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, int_result, int_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffd880; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffd880; + int_result = 0x0000000000000000; + int_out = __lasx_xvpickve2gr_w (__m256i_op0, 0x2); + ASSERTEQ_int (__LINE__, int_result, int_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplgr2vr.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplgr2vr.c new file mode 100644 index 00000000000..81456bc1bbd --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplgr2vr.c @@ -0,0 +1,380 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + int_op0 = 0x0000001b3c4c0a5c; + *((unsigned long *)&__m256i_result[3]) = 0x3c4c0a5c3c4c0a5c; + *((unsigned long *)&__m256i_result[2]) = 0x3c4c0a5c3c4c0a5c; + *((unsigned long *)&__m256i_result[1]) = 0x3c4c0a5c3c4c0a5c; + *((unsigned long *)&__m256i_result[0]) = 0x3c4c0a5c3c4c0a5c; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000397541c58; + *((unsigned long *)&__m256i_result[3]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_result[2]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_result[1]) = 0x97541c5897541c58; + *((unsigned long *)&__m256i_result[0]) = 0x97541c5897541c58; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000400; + *((unsigned long *)&__m256i_result[3]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[2]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[1]) = 0x0400040004000400; + *((unsigned long *)&__m256i_result[0]) = 0x0400040004000400; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvreplgr2vr_b (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_b (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000084; + *((unsigned long *)&__m256i_result[3]) = 0x0084008400840084; + *((unsigned long *)&__m256i_result[2]) = 0x0084008400840084; + *((unsigned long *)&__m256i_result[1]) = 0x0084008400840084; + *((unsigned long *)&__m256i_result[0]) = 0x0084008400840084; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_b (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_b (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[0]) = 0x0000000020202020; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000020006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000020006; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_b (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff000000ff; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + long_op0 = 0x0000000000020006; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000020006; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000020006; + __m256i_out = __lasx_xvreplgr2vr_d (long_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplgr2vr_h (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + int_op0 = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplgr2vr_w (int_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve.c new file mode 100644 index 00000000000..7aa76c2baf6 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve.c @@ -0,0 +1,536 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000001b3c4c0a5c; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffefb; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffefb; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000fe; + int_op1 = 0x0000000059815d00; + *((unsigned long *)&__m256i_result[3]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[2]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[1]) = 0x00000000000000fe; + *((unsigned long *)&__m256i_result[0]) = 0x00000000000000fe; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op0[0]) = 0x555555ab555555ab; + int_op1 = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[0]) = 0x555555ab555555ab; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_result[0]) = 0x0001000100010001; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000012e2110; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[2]) = 0x0202020202020202; + *((unsigned long *)&__m256i_result[1]) = 0x1010101010101010; + *((unsigned long *)&__m256i_result[0]) = 0x1010101010101010; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000003f; + *((unsigned long *)&__m256i_op0[0]) = 0x000000000000003f; + int_op1 = 0x0000000000000400; + *((unsigned long *)&__m256i_result[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[2]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[0]) = 0x003f003f003f003f; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op0[2]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op0[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_op0[0]) = 0x003f003f003f003f; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[2]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[1]) = 0x003f003f003f003f; + *((unsigned long *)&__m256i_result[0]) = 0x003f003f003f003f; + __m256i_out = __lasx_xvreplve_w (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000003f0000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000003f0000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op0[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_op0[1]) = 0xe161616161616161; + *((unsigned long *)&__m256i_op0[0]) = 0xe161616161614e60; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_result[2]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_result[1]) = 0xe161616161614e60; + *((unsigned long *)&__m256i_result[0]) = 0xe161616161614e60; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + int_op1 = 0x00000000000000ac; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000080; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000400; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff00d5007f00ffff; + *((unsigned long *)&__m256i_op0[2]) = 0xff00ffffff00ffff; + *((unsigned long *)&__m256i_op0[1]) = 0xff00d5007f00ffff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00ffffff00ffff; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_w (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000020202020; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvreplve_w (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fffffffff7fffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fffffffff7fffff; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xc192181230000000; + *((unsigned long *)&__m256i_op0[1]) = 0xbff0000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xc192181230000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000ff00ff; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000ff00ff; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fefffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_result[2]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_result[1]) = 0x7fef7fef7fef7fef; + *((unsigned long *)&__m256i_result[0]) = 0x7fef7fef7fef7fef; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffff00ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffff00ffffffff; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff7fff7fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fe37fe3001d001d; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff7fff7fff0000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x007f010700c70106; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x007f010700c70106; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0106010601060106; + *((unsigned long *)&__m256i_result[2]) = 0x0106010601060106; + *((unsigned long *)&__m256i_result[1]) = 0x0106010601060106; + *((unsigned long *)&__m256i_result[0]) = 0x0106010601060106; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_h (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve_w (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000003fff; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000003fff; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000040; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[0]) = 0x4040404040404040; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000404; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001010101; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000404; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0404040404040404; + *((unsigned long *)&__m256i_result[2]) = 0x0404040404040404; + *((unsigned long *)&__m256i_result[1]) = 0x0404040404040404; + *((unsigned long *)&__m256i_result[0]) = 0x0404040404040404; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000800080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000202; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000800080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000202; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000202; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000202; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000202; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000202; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x000000003ddc5dac; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_d (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + int_op1 = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000200000002; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000200000002; + int_op1 = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve_b (__m256i_op0, int_op1); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve0.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve0.c new file mode 100644 index 00000000000..a2bc2da521d --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplve0.c @@ -0,0 +1,471 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffeffffff88; + *((unsigned long *)&__m256i_op0[2]) = 0x61e0000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffeffffff88; + *((unsigned long *)&__m256i_op0[0]) = 0x61e0000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffff80fe; + *((unsigned long *)&__m256i_op0[2]) = 0xd52aaaaa555555ab; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffff80fe; + *((unsigned long *)&__m256i_op0[0]) = 0xd52aaaaa555555ab; + *((unsigned long *)&__m256i_result[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_result[0]) = 0x555555ab555555ab; + __m256i_out = __lasx_xvreplve0_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000080; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000080; + *((unsigned long *)&__m256i_result[3]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[2]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[1]) = 0x8080808080808080; + *((unsigned long *)&__m256i_result[0]) = 0x8080808080808080; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000003fff3fff; + *((unsigned long *)&__m256i_op0[1]) = 0x3fff3fff3fff4000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000403f3fff; + *((unsigned long *)&__m256i_result[3]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[2]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[1]) = 0x3fff3fff3fff3fff; + *((unsigned long *)&__m256i_result[0]) = 0x3fff3fff3fff3fff; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op0[2]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op0[1]) = 0x8000000080000001; + *((unsigned long *)&__m256i_op0[0]) = 0x8000000080000001; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000001; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000001; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000001; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000001; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000020202020; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000020202020; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff00ff; + *((unsigned long *)&__m256i_op0[2]) = 0x0007fd00000f02ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000001fffeff; + *((unsigned long *)&__m256i_op0[0]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[3]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[2]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[1]) = 0xff00fe00feff02ff; + *((unsigned long *)&__m256i_result[0]) = 0xff00fe00feff02ff; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfc00ffff0000ffff; + *((unsigned long *)&__m256i_op0[2]) = 0x000100fe000100fe; + *((unsigned long *)&__m256i_op0[1]) = 0xfc00ffff0000ffff; + *((unsigned long *)&__m256i_op0[0]) = 0x000100fe000100fe; + *((unsigned long *)&__m256i_result[3]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[2]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[1]) = 0x00fe00fe00fe00fe; + *((unsigned long *)&__m256i_result[0]) = 0x00fe00fe00fe00fe; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_op0[0]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[3]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[2]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[1]) = 0x4040404040404040; + *((unsigned long *)&__m256i_result[0]) = 0x4040404040404040; + __m256i_out = __lasx_xvreplve0_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000781; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000064; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000064; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfffffe20001dfe1f; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000ff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[2]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_op0[1]) = 0xffe0047d00e00480; + *((unsigned long *)&__m256i_op0[0]) = 0x001fc0200060047a; + *((unsigned long *)&__m256i_result[3]) = 0x047a047a047a047a; + *((unsigned long *)&__m256i_result[2]) = 0x047a047a047a047a; + *((unsigned long *)&__m256i_result[1]) = 0x047a047a047a047a; + *((unsigned long *)&__m256i_result[0]) = 0x047a047a047a047a; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x037fe01f001fe020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x037fe01f001fe020; + *((unsigned long *)&__m256i_result[3]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[2]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[1]) = 0x2020202020202020; + *((unsigned long *)&__m256i_result[0]) = 0x2020202020202020; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[1]) = 0xff0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_op0[0]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[3]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[2]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[1]) = 0x0d0d0d0d0d0d0d0d; + *((unsigned long *)&__m256i_result[0]) = 0x0d0d0d0d0d0d0d0d; + __m256i_out = __lasx_xvreplve0_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_op0[0]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[3]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[2]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[1]) = 0x0202010202020102; + *((unsigned long *)&__m256i_result[0]) = 0x0202010202020102; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[2]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[1]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_op0[0]) = 0x000000ff000000ff; + *((unsigned long *)&__m256i_result[3]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[2]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[1]) = 0x00ff00ff00ff00ff; + *((unsigned long *)&__m256i_result[0]) = 0x00ff00ff00ff00ff; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[3]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[2]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[1]) = 0xfffffffe00000001; + *((unsigned long *)&__m256i_result[0]) = 0xfffffffe00000001; + __m256i_out = __lasx_xvreplve0_d (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[2]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op0[0]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_result[3]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_result[2]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_result[1]) = 0x800080ff800080ff; + *((unsigned long *)&__m256i_result[0]) = 0x800080ff800080ff; + __m256i_out = __lasx_xvreplve0_w (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvreplve0_q (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffff97a2; + *((unsigned long *)&__m256i_result[3]) = 0x97a297a297a297a2; + *((unsigned long *)&__m256i_result[2]) = 0x97a297a297a297a2; + *((unsigned long *)&__m256i_result[1]) = 0x97a297a297a297a2; + *((unsigned long *)&__m256i_result[0]) = 0x97a297a297a297a2; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_result[3]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[1]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[0]) = 0x0101010101010101; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_h (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvreplve0_b (__m256i_op0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplvei.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplvei.c new file mode 100644 index 00000000000..9346f9bfb41 --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvreplvei.c @@ -0,0 +1,20 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf4i_b.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf4i_b.c new file mode 100644 index 00000000000..c8a00ca89fd --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf4i_b.c @@ -0,0 +1,430 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00007ffffffff7ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x49d8080067f4f81f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x00007f00fffff7ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xd8490849f467f867; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0xb7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0xdb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0x95); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffb3b4; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffff5ffff4738; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffb3b4; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffff5ffff4738; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0xee); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0x2f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0x6f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_b (__m256i_op0, 0x23); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00007ffffffff7ff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x49d8080067f4f81f; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x7fff7fff7ffff7ff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x080008000800f81f; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0xa8); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_result[3]) = 0xc5c4c5c5c5c5c5c5; + *((unsigned long *)&__m256i_result[2]) = 0xc5c545c545c545c5; + *((unsigned long *)&__m256i_result[1]) = 0xc5c4c5c5c5c5c5c5; + *((unsigned long *)&__m256i_result[0]) = 0xc5c545c545c545c5; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0x3d); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0xf7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0x3a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[2]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0x00000000ffff0000; + *((unsigned long *)&__m256i_result[0]) = 0x00000000ffff0000; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0xa7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_op0[0]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[3]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[2]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[1]) = 0xff1cff1cff1cff1c; + *((unsigned long *)&__m256i_result[0]) = 0xff1cff1cff1cff1c; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0xdc); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_op0[2]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_op0[1]) = 0x00000000ffff0020; + *((unsigned long *)&__m256i_op0[0]) = 0xffff8001ffff0001; + *((unsigned long *)&__m256i_result[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff8001ffff8001; + *((unsigned long *)&__m256i_result[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff8001ffff8001; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0x6e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0x9f); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op0[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op0[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op0[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0002ffff00020002; + *((unsigned long *)&__m256i_result[2]) = 0x04f504f104f504f5; + *((unsigned long *)&__m256i_result[1]) = 0x0002ffff00020002; + *((unsigned long *)&__m256i_result[0]) = 0x04f504f104f504f5; + __m256i_out = __lasx_xvshuf4i_h (__m256i_op0, 0x65); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x1e1800001e180000; + *((unsigned long *)&__m256i_result[2]) = 0x1e18000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x1e1800001e180000; + *((unsigned long *)&__m256i_result[0]) = 0x1e18000000000000; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0xfe); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0x64); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_op0[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_op0[0]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_result[3]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_result[2]) = 0x45c5c5c545c5c5c5; + *((unsigned long *)&__m256i_result[1]) = 0xc5c5c5c4c5c5c5c4; + *((unsigned long *)&__m256i_result[0]) = 0x45c5c5c545c5c5c5; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0xb0); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000f9f900; + *((unsigned long *)&__m256i_op0[2]) = 0x79f9f9f900f9f9e0; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000f9f900; + *((unsigned long *)&__m256i_op0[0]) = 0x79f9f9f900f9f900; + *((unsigned long *)&__m256i_result[3]) = 0x00f9f90079f9f9f9; + *((unsigned long *)&__m256i_result[2]) = 0x79f9f9f900000000; + *((unsigned long *)&__m256i_result[1]) = 0x00f9f90079f9f9f9; + *((unsigned long *)&__m256i_result[0]) = 0x79f9f9f900000000; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0x97); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_op0[2]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_op0[1]) = 0x000000007aff7c00; + *((unsigned long *)&__m256i_op0[0]) = 0xfffffffffd017d00; + *((unsigned long *)&__m256i_result[3]) = 0x7aff7c0000000000; + *((unsigned long *)&__m256i_result[2]) = 0xfd017d0000000000; + *((unsigned long *)&__m256i_result[1]) = 0x7aff7c0000000000; + *((unsigned long *)&__m256i_result[0]) = 0xfd017d0000000000; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0xb3); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op0[2]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op0[1]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_op0[0]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_result[3]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_result[2]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_result[1]) = 0xc3f0c3f0c3f0c3f0; + *((unsigned long *)&__m256i_result[0]) = 0xc3f0c3f0c3f0c3f0; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0x3c); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0xf4); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_result[3]) = 0xff81ff7dffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff81ff7d; + *((unsigned long *)&__m256i_result[1]) = 0xff81ff7dffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffff81ff7d; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0x28); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000002000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x00000020ff790020; + *((unsigned long *)&__m256i_op0[1]) = 0x0000002000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000020ff790020; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000002000000020; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000002000000020; + __m256i_out = __lasx_xvshuf4i_w (__m256i_op0, 0xa5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0101010183f95466; + *((unsigned long *)&__m256i_op1[2]) = 0x0101010101010101; + *((unsigned long *)&__m256i_op1[1]) = 0x01010101d58efe94; + *((unsigned long *)&__m256i_op1[0]) = 0x0101010101010101; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0x0101010183f95466; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0x01010101d58efe94; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0xa7); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0xd9); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op0[2]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op0[1]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op0[0]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[2]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[1]) = 0x00001fff00001fff; + *((unsigned long *)&__m256i_result[0]) = 0x00001fff00001fff; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff80be0000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000f0f0002; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff80be0000; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000f1002; + *((unsigned long *)&__m256i_op1[3]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op1[1]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_op1[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x80000000ff800000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x80000000ff800000; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0xdb); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op1[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000080000009; + *((unsigned long *)&__m256i_op1[0]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x43ef878780000009; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x43ef878780000009; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0x36); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0x5a); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0x5); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0xd); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op0[1]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x7fff00017fff0000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_op1[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_op1[0]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[3]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_result[2]) = 0x04f104f104f504ed; + *((unsigned long *)&__m256i_result[1]) = 0x0000ffff0002fffd; + *((unsigned long *)&__m256i_result[0]) = 0x04f104f104f504ed; + __m256i_out = __lasx_xvshuf4i_d (__m256i_op0, __m256i_op1, 0x7e); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +} diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c new file mode 100644 index 00000000000..641ea2315ff --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c @@ -0,0 +1,761 @@ +/* { dg-do run } */ +/* { dg-options "-mlasx -w -fno-strict-aliasing" } */ +#include "../simd_correctness_check.h" +#include + +int +main () +{ + __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result; + __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result; + __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result; + + int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail; + long int long_op0, long_op1, long_op2, lont_out, lont_result; + long int long_int_out, long_int_result; + unsigned int unsigned_int_out, unsigned_int_result; + unsigned long int unsigned_long_int_out, unsigned_long_int_result; + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000007070707; + *((unsigned long *)&__m256i_op0[2]) = 0x0102040000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000020100; + *((unsigned long *)&__m256i_op0[0]) = 0x0703020000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0xfe02fe02fee5fe22; + *((unsigned long *)&__m256i_op1[0]) = 0xff49fe4200000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[2]) = 0xfffffefefffffcfa; + *((unsigned long *)&__m256i_op1[1]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op1[0]) = 0xfffffefefffffefe; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0xfffffff8fffffff8; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0xfffffff8fc000000; + *((unsigned long *)&__m256i_result[3]) = 0xfafafafafafafafa; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0xfefefefefefefefe; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000fefefe; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000600000006; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x7ff0000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x3ff0010000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x3ff0010000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000ff0000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000ffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x0000ffff0000ffff; + *((unsigned long *)&__m256i_result[3]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_result[1]) = 0xffff000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffff0000ffff0000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op2[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op2[1]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op2[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000000003ffff; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000077fff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffff000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_b (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffffffffffffefe; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op0[1]) = 0xfffffffffffffefe; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000101; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0x67eee33567eee435; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0x67eee33567eee435; + *((unsigned long *)&__m256i_op2[3]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0x00000000ffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffff80000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op1[2]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op1[1]) = 0xefdfefdf00000000; + *((unsigned long *)&__m256i_op1[0]) = 0xefdfefdfefdfefdf; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x7575ffff75757595; + *((unsigned long *)&__m256i_op0[2]) = 0x7575ffff7575f575; + *((unsigned long *)&__m256i_op0[1]) = 0x7575ffff75757595; + *((unsigned long *)&__m256i_op0[0]) = 0x7575ffff7575f575; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000003; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op2[3]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op2[2]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op2[1]) = 0x7575757575757575; + *((unsigned long *)&__m256i_op2[0]) = 0x7575757575757575; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000fffff800; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000fffff800; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x00000000fffff800; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000fffff800; + *((unsigned long *)&__m256i_result[3]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[2]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[1]) = 0xf800f800f800f800; + *((unsigned long *)&__m256i_result[0]) = 0xf800f800f800f800; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op0[1]) = 0x000000000000fffe; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000000000f0; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_op2[1]) = 0x8000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x000000ffff88ff88; + *((unsigned long *)&__m256i_result[3]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_result[2]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_result[1]) = 0xff88ff88ff880000; + *((unsigned long *)&__m256i_result[0]) = 0xff88ff88ff880000; + __m256i_out = __lasx_xvshuf_h (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x000000010000ffe1; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000101001e18; + *((unsigned long *)&__m256i_op0[1]) = 0x000000010000ffe1; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000101001e18; + *((unsigned long *)&__m256i_op1[3]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[2]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[1]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op1[0]) = 0x98111cca98111cca; + *((unsigned long *)&__m256i_op2[3]) = 0x000000010000ffe1; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000101001e18; + *((unsigned long *)&__m256i_op2[1]) = 0x000000010000ffe1; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000101001e18; + *((unsigned long *)&__m256i_result[3]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000101001e18; + *((unsigned long *)&__m256i_result[1]) = 0x0000000100000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000101001e18; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x80008000b3e8fef1; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x80008000802ea100; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000002; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op2[0]) = 0x00000000012e2110; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000200000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x012e2110012e2110; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000082a54290; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000028aa700; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000082a54290; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000002a54287; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x00000000002a542a; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000001; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op0[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[1]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000100010001; + *((unsigned long *)&__m256i_op1[3]) = 0x000000007fc00000; + *((unsigned long *)&__m256i_op1[2]) = 0x000000007fc00000; + *((unsigned long *)&__m256i_op1[1]) = 0x000000007fc00000; + *((unsigned long *)&__m256i_op1[0]) = 0x000000007fc00000; + *((unsigned long *)&__m256i_op2[3]) = 0xdfffffffdfffffff; + *((unsigned long *)&__m256i_op2[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_op2[1]) = 0xdfffffffdfffffff; + *((unsigned long *)&__m256i_op2[0]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[3]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[2]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[1]) = 0x8000000080000000; + *((unsigned long *)&__m256i_result[0]) = 0x8000000080000000; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0001000104000200; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0001000104000200; + *((unsigned long *)&__m256i_op1[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[2]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op1[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op1[0]) = 0xffff0000ffff0000; + *((unsigned long *)&__m256i_op2[3]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op2[2]) = 0x0004000500040005; + *((unsigned long *)&__m256i_op2[1]) = 0x0004000400040004; + *((unsigned long *)&__m256i_op2[0]) = 0x0004000500040005; + *((unsigned long *)&__m256i_result[3]) = 0x0004000500040005; + *((unsigned long *)&__m256i_result[2]) = 0x0004000500040005; + *((unsigned long *)&__m256i_result[1]) = 0x0004000500040005; + *((unsigned long *)&__m256i_result[0]) = 0x0004000500040005; + __m256i_out = __lasx_xvshuf_w (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[2]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[1]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op1[0]) = 0x555555ab555555ab; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000080008000; + *((unsigned long *)&__m256i_op2[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000080008000; + *((unsigned long *)&__m256i_op2[0]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[3]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[2]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[1]) = 0x000000007fff7fff; + *((unsigned long *)&__m256i_result[0]) = 0x000000007fff7fff; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_op2[0]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[3]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[2]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[1]) = 0xffffffffffffffff; + *((unsigned long *)&__m256i_result[0]) = 0xffffffffffffffff; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000fffffe01fe52; + *((unsigned long *)&__m256i_op0[2]) = 0x00000000ff01ff02; + *((unsigned long *)&__m256i_op0[1]) = 0x0000fffffe01fe52; + *((unsigned long *)&__m256i_op0[0]) = 0x00000000ff01ff02; + *((unsigned long *)&__m256i_op1[3]) = 0x0000800000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000800000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000080008001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x000000000000ffff; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000080008001; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000080008001; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0008000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op1[1]) = 0x7fff80007fff0000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000008000; + *((unsigned long *)&__m256i_op2[3]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op2[2]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_op2[1]) = 0x8000800080008000; + *((unsigned long *)&__m256i_op2[0]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_result[3]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_result[2]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_result[1]) = 0x000000ff800000ff; + *((unsigned long *)&__m256i_result[0]) = 0x000000ff800000ff; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000002000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000002000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000080040; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000040; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000080040; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000080040; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[2]) = 0xfffeb8649d0d6250; + *((unsigned long *)&__m256i_op0[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op0[0]) = 0xfffeb8649d0d6250; + *((unsigned long *)&__m256i_op1[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op1[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op1[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op1[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op2[3]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op2[2]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_op2[1]) = 0xfffeb6839ffffd80; + *((unsigned long *)&__m256i_op2[0]) = 0xfffe97c020010001; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op1[3]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[2]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[1]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op1[0]) = 0x0000000000010001; + *((unsigned long *)&__m256i_op2[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_op2[0]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[3]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[2]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[1]) = 0x0000000000000000; + *((unsigned long *)&__m256i_result[0]) = 0x0000000000000000; + __m256i_out = __lasx_xvshuf_d (__m256i_op0, __m256i_op1, __m256i_op2); + ASSERTEQ_64 (__LINE__, __m256i_result, __m256i_out); + + return 0; +}