Message ID | 20230913033148.5752-2-chenxiaolong@loongson.cn |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp829852vqx; Tue, 12 Sep 2023 20:32:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEG3BV+Ywoypj5h5Pbl2qXocnJB5wRqLnAOTPkswQjm+UZ2qG0OZiCyMkB2m5/DdRNKn+n+ X-Received: by 2002:a05:6402:493:b0:525:644f:134b with SMTP id k19-20020a056402049300b00525644f134bmr1064468edv.25.1694575972615; Tue, 12 Sep 2023 20:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694575972; cv=none; d=google.com; s=arc-20160816; b=nvo6Y7Wj97DCq652nvrJjejrbY0jxnNao09OoYoU977hYL/6vZmG8CZuuFPdhaR+ip h/jaGwpnNq6Ywr/rs2JSmYvOrloM4rjDamqdtEGCS6M+3aBKt+RtgrdDW0dJwpkUCk8a jYJM8OP50v9ww9v13aXj2vkmiMkgGsGHMcA7QsSqe0g+qClMe/6w14LwzsDI2U6kyZOV vTZzKvSkvhvZ57Nsm4wjNfw1G4OmqFFFLjmtzOp3RcB20LOqvI8bitM44McHEaBlSiai 3k6vfY5orh3gjILjKn0gcSMCROFHnXAu4sDfgYG+2Kc9jpfme6pNp/juP2irkF436R+8 THtg== 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=R7V73w2jK8oRRkWKth5D455cY8tZTNMUbYiRVEfG9go=; fh=3pFUYcpS/27XRzOf17GfR86AuNQu+P1CET04YURgCLs=; b=CQkSS01DeyEj5IEozHr+hCK21exVMaSiRx7U0VSchxe1SNkRenANU6/Z+83/PP4JvB otUkwyaKXwoRi0jA5D+tfNOkssRI4WoIQTlkosTZmBBCkQkfP6Yvxh6nfR83Z7nGYXD/ VI85pkrQn2AofI/oyjK0PLf/Aknv2kTbW7BTkIDEbKw9sOAw1/3JcWi3IChuBMEjIFX6 zY9EzfOMfZfinRNUrmmEtAbkknB/6gZh2/Vf4arKSr8kkZSBmUQivTxTDalImR7kEVzL a3SNwhECzJL1KGu8bnBgHO6tMtIjQIVWe1y5nWi0YHoQn3h5j3opaeQejMlMrGUK20XJ E++g== 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 a6-20020aa7d746000000b00522205a4d35si9381100eds.103.2023.09.12.20.32.52 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 20:32:52 -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 67FF9385DC0B for <ouuuleilei@gmail.com>; Wed, 13 Sep 2023 03:32:27 +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 4B6A93858D3C for <gcc-patches@gcc.gnu.org>; Wed, 13 Sep 2023 03:32:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B6A93858D3C 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 _____8CxyOguLQFlJzAmAA--.38406S3; Wed, 13 Sep 2023 11:31:58 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxrdwqLQFlxQ4CAA--.3491S5; Wed, 13 Sep 2023 11:31:57 +0800 (CST) From: Xiaolong Chen <chenxiaolong@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, Xiaolong Chen <chenxiaolong@loongson.cn> Subject: [PATCH v4 01/23] LoongArch: Add tests of -mstrict-align option. Date: Wed, 13 Sep 2023 11:31:26 +0800 Message-Id: <20230913033148.5752-2-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913033148.5752-1-chenxiaolong@loongson.cn> References: <20230913033148.5752-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxrdwqLQFlxQ4CAA--.3491S5 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQANBWUBHCIA6AAAs7 X-Coremail-Antispam: 1Uk129KBj9xXoWruw4kJw4fJw13Zw13Gw13Jrc_yoWfJrcEyF y7X3s3Gr4Uua1xCFW0vryUCF9akws3XFySqFWFqFs7XFyDXFs0yFWDJFZrZFyjkr18JFZx Ga9avrnayF9xtosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8wNVDUUUUU== X-Spam-Status: No, score=-12.5 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776891695040718541 X-GMAIL-MSGID: 1776891695040718541 |
Series |
Add tests for SX vector instructions.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
chenxiaolong
Sept. 13, 2023, 3:31 a.m. UTC
gcc/testsuite/ChangeLog: * gcc.target/loongarch/strict-align.c: New test. --- gcc/testsuite/gcc.target/loongarch/strict-align.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.target/loongarch/strict-align.c
diff --git a/gcc/testsuite/gcc.target/loongarch/strict-align.c b/gcc/testsuite/gcc.target/loongarch/strict-align.c new file mode 100644 index 00000000000..040d849584b --- /dev/null +++ b/gcc/testsuite/gcc.target/loongarch/strict-align.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-Ofast -mstrict-align -mlasx" } */ +/* { dg-final { scan-assembler-not "vfadd.s" } } */ + +void +foo (float *restrict x, float *restrict y) +{ + x[0] = x[0] + y[0]; + x[1] = x[1] + y[1]; + x[2] = x[2] + y[2]; + x[3] = x[3] + y[3]; +}