From patchwork Mon Nov 20 04:12:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 166936 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1971301vqn; Sun, 19 Nov 2023 20:12:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF06H3yoHbiKfUUX2938VxkkzKl83q9Y5ulW1aHD3sgcvR6Kn5BBry2Tl7M/MsLTSFciYDQ X-Received: by 2002:a05:622a:11cc:b0:417:a209:c258 with SMTP id n12-20020a05622a11cc00b00417a209c258mr8396135qtk.41.1700453565688; Sun, 19 Nov 2023 20:12:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700453565; cv=pass; d=google.com; s=arc-20160816; b=wpvzUtdDBCiSdKP/k0Z054KJWfS587PXZs3zVQ4EM+S8CGnd3web9/oKnQ4BpDlKQX oGaED4g/8qwqFNN5uJyqCGbRYzIPaUtV/K1cqGRx6QT091acZeN+V6xtfVZyXZhsGOV2 imVWSnm8e025vBzqbyFxPrJcQabQkVdIhsSzlcT1rEy8QzPz/BTRB9k/pGA5mRAZ8Oqq Yz/ILxfDyez7ClEArCkH895LY9zc0JpVG7DjhUrcatVeLHbpvRieUJwZKgb/t16cGILY IElpUG5IMZqVWijn6mQRpDfysvzmAdnJ1fnhMxnHVA96VlmmuAWh/uKkszIXaV5MHE7T HPuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=ol0RRPdRDL9qBHh+DNADgUA54pglio3rI4ZfDjrRoNY=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=wi2haqNl4MoLiM6k5DxPnXZiyN21aZJTgKERe2pu1/JpP+suhd52h75rArWTniBF5k 5gJiGIF1TzTD6w/tAi1hu+dD0e6BtAChA8hETzorRINl++9qflYIIvBWjsUIbeoRZ54C PqDyCOMTNeTYN1eoH6Om4z0c4BdM9Md5ozHKNAMoElUkc5b97Gixadoo0c8fzIbMayfg RkcLIyWnSK/jntbA6FZUTgM1gf0uLTVh7KfCdgc72/51opqquxX5hQE1nYHUwmg7KlL4 0TltkLRosGcgqmcptwe/1w/LtnjozztyPLjGQsUDEe2PbhnaKYX+/kLKmcrU8KaCPJLO /Jeg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 b21-20020ac87fd5000000b0041cb5fb21b2si6563959qtk.149.2023.11.19.20.12.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 20:12:45 -0800 (PST) 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; arc=pass (i=1); 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 746E0385828E for ; Mon, 20 Nov 2023 04:12:45 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by sourceware.org (Postfix) with ESMTPS id 765763858C50 for ; Mon, 20 Nov 2023 04:12:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 765763858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 765763858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=18.169.211.239 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700453543; cv=none; b=qimDihbAqB7qRpQwC7+rWaKEQekyTYWXTb/OzrGS7YKk7SO9XOr58FS4/fHpeQQlS1BuqKqMmDVGVGF3hpy9aA8X2HSSo7PCq6uCq5MOy0Onju/0onIHAlVNrqmDjk0MyCe+UXbU168HqH2cK/K3t/p2/Yd34Pi3YuYwhwDuLZQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700453543; c=relaxed/simple; bh=9wp6NrvcvgJYsPWXAlACQyjuxa4LVF9FCc+JNHaGiLw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=l0dvPcKRKdj53BNu9kZWJZLNW0xQImqwHPE4vzEB2fnlBAYug4NjqDmaT5B4KPhx2wN4MKzAtf2bal5RaLIcM25c3uA6k4NWQDS6ZCPOCohg1NiyTuZC7H2mYtDLslCfNn+lVssYfUgQqHEXGDwqt5MZYjJBIOsc1Ocd9Twuiao= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp91t1700453533tfbr1y84 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 20 Nov 2023 12:12:12 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: aBJFcW+uBGZeVE3uH4G3Cff94nb5XEY54qSA4XAPyswXc6nNBaZgWSHKMGkoM VEm74GEUQBKOTbZVilH+hLIWAGLQATjR/tsy8Z979YDS9ogJEuk70V7q949hcHSefGhkxBJ 3nrHIn1AX1Htimo/RSO4oZITih7nW3ZbwrkkgWXhTNl3NWDYX2Rst0wzseM11v/oVbfL0Wk Q2o+gbIMcftx9g11uRy883UDRax3r1xLPWVdaGmKPkuMdh6mt7+GIq8tsG9xnH1hu3TBHq4 jDSbRkFD+YYnyulghPIq/v02ufQ+4Ntn0eq//ExVAx/L1KvjEtlFuNU59DdCfm+sBY8cR7Y LLCfvb6LbZKyz1sVj2FbFAJH3/heA7r0pOFxHq0swA5A/9Wo1Nt0BDEFTuaKcf2682n/TZ2 YJRcTjAgj8Q= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 16654982559203904352 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [BUG FIX] RISC-V: Fix VLS DI mode of slide1 instruction attribute Date: Mon, 20 Nov 2023 12:12:11 +0800 Message-Id: <20231120041211.3957366-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783054798168183744 X-GMAIL-MSGID: 1783054798168183744 The slide1 attributes are wrong for SEW=64 VLS modes. This patch fixes the following FAILs: FAIL: gcc.c-torture/execute/pr89369.c -O2 execution test FAIL: gcc.c-torture/execute/pr89369.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test FAIL: gcc.c-torture/execute/pr89369.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test FAIL: gcc.c-torture/execute/pr89369.c -O3 -g execution test FAIL: gcc.dg/pr96239.c execution test FAIL: gcc.dg/vshift-5.c execution test FAIL: gcc.dg/torture/pr61346.c -O2 execution test FAIL: gcc.dg/torture/pr61346.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test FAIL: gcc.dg/torture/pr61346.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gcc.dg/torture/pr61346.c -O3 -g execution test gcc/ChangeLog: * config/riscv/vector-iterators.md: Fix bug. --- gcc/config/riscv/vector-iterators.md | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/gcc/config/riscv/vector-iterators.md b/gcc/config/riscv/vector-iterators.md index 469875ce67c..859f7bd1cdc 100644 --- a/gcc/config/riscv/vector-iterators.md +++ b/gcc/config/riscv/vector-iterators.md @@ -3200,30 +3200,30 @@ (define_mode_attr VDEMOTE [ (RVVM8DI "RVVM8SI") (RVVM4DI "RVVM4SI") (RVVM2DI "RVVM2SI") (RVVM1DI "RVVM1SI") - (V1DI "V1SI") - (V2DI "V2SI") - (V4DI "V4SI") - (V8DI "V8SI") - (V16DI "V16SI") - (V32DI "V32SI") - (V64DI "V64SI") - (V128DI "V128SI") - (V256DI "V256SI") - (V512DI "V512SI") + (V1DI "V2SI") + (V2DI "V4SI") + (V4DI "V8SI") + (V8DI "V16SI") + (V16DI "V32SI") + (V32DI "V64SI") + (V64DI "V128SI") + (V128DI "V256SI") + (V256DI "V512SI") + (V512DI "V1024SI") ]) (define_mode_attr VMDEMOTE [ (RVVM8DI "RVVMF4BI") (RVVM4DI "RVVMF8BI") (RVVM2DI "RVVMF16BI") (RVVM1DI "RVVMF32BI") - (V1DI "V1BI") - (V2DI "V2BI") - (V4DI "V4BI") - (V8DI "V8BI") - (V16DI "V16BI") - (V32DI "V32BI") - (V64DI "V64BI") - (V128DI "V128BI") - (V256DI "V256BI") - (V512DI "V512BI") + (V1DI "V2BI") + (V2DI "V4BI") + (V4DI "V8BI") + (V8DI "V16BI") + (V16DI "V32BI") + (V32DI "V64BI") + (V64DI "V128BI") + (V128DI "V256BI") + (V256DI "V512BI") + (V512DI "V1024BI") ]) (define_mode_attr stride_predicate [