From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 38ECF3858407 for ; Tue, 5 Dec 2023 14:57:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38ECF3858407 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 38ECF3858407 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::331 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701788255; cv=none; b=Rqku5rVV4ubnpphSgcJwwt+bhoTQgTfZC6CmtApyeyF/9KyRCB7dgSJI6usXuuveLmxQjwbuqRY0NQoUhwkirKLtaMpX3jSd+G1vvDTUgodMuKzi889xMZGVzVEIdGCsrcBffA9yBbUf2mhdBJt8wQZA3f8dleo+p6J7HlUKiTU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701788255; c=relaxed/simple; bh=0ZiWL7RRHBPE9TVI4d1c2WVsl2264lQVxaIvjO5aut4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=fdr0sOubJ2RAKHaLNodPZThWXMOmiESKdbYuaGGATBLoCYmrE9zl7ZaeFj+SLE+Pi5fTjDDMalTrniQwUBv/wpgGnfXboBG6JsXfj/ee4svUTsjP+QV7+EtTciWfPSkQ2CK+5MPAXcOcMuxvyZFjGD55sa5XAk8/xIIO9gCxqak= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40b4746ae3bso53661115e9.0 for ; Tue, 05 Dec 2023 06:57:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701788253; x=1702393053; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yW/Z6qfrKEZN67aml36zbWK3oiDOGw943hB4UV6hdoU=; b=nd7HAPqxZhRHEbuu6PzgZfJB/3GwHW5KGuCZfTAxEGpuNU1AhmKdmJrzleM2oRIH0K AT29B/E+ofI6sjXTo3Vh7gSNGR9up9skUs8ZDghLUR0dfzC5iTxQvDOUizGBiqoQJxqQ kNUUGRmceWOtTDeqU/77WiyWd9AFzH4leWX9+Xi99HoFV9sbR2ChpStDQrE/elygLfn/ KepdvwUV3jfiky3GRh8QultTA9fX+FlsyR3pgXlh1eI1olTixf5lSlHfwZv5HCEl7PE0 rnIirctA6/4Q1iwpBAeGT2GmCCm/6726Bnc0JUhngfR5hp1gU15Y+G9vexTiQxMecFRG Z4Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701788253; x=1702393053; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yW/Z6qfrKEZN67aml36zbWK3oiDOGw943hB4UV6hdoU=; b=P23NRpQXRGm13XrlnUZ8+zpNiq90abcNERvzCc8LTkjOA3lLvBKRvfacJR3oqNXb+9 8agk1/ECwTVCoKOpzI7N2dM21aeZMbkBkH1h1GWxcWkaQHeQSuzDbVF8kj0LtscC5wv0 au3PjDYLys37aBlWmFYxSj5dT+DouS5mxK/26JpV2yIVVoN5ThiPl8R+ezoxBsDQo8zm Iys7tpVPsB7TXqxu8MH4tF813a6PC7wgJpNulIKP1siHbfmqvDl1IIdQ+9QSCtGSVdEU WIevzvM/YMQ1fhUDlVZYzyhg5b4eQi2W/4dhucJD/cp0JDekLjBXs+t5UlAZsj2sOolr F+Qg== X-Gm-Message-State: AOJu0YwHz/cjMfooUNx9GnPhdwXynJvxgZfEJgoXWnUkqYyPL2/ksjnX KNVJfA+jaOCd9F3vDblwBmg= X-Google-Smtp-Source: AGHT+IEOoqcaxg+1XDYih0RXjnKKi4KU31THtAPUgpNTGhSC1zq5+YhK7ngbD7Ue3+i+5WHiF5b/Gg== X-Received: by 2002:a05:600c:3ac4:b0:40c:c00:de8f with SMTP id d4-20020a05600c3ac400b0040c0c00de8fmr566819wms.180.1701788252616; Tue, 05 Dec 2023 06:57:32 -0800 (PST) Received: from [192.168.1.23] (ip-149-172-150-237.um42.pools.vodafone-ip.de. [149.172.150.237]) by smtp.gmail.com with ESMTPSA id st2-20020a170907c08200b00a1d2ece1e0bsm39356ejc.25.2023.12.05.06.57.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 06:57:32 -0800 (PST) Message-ID: <40aacdb9-b64f-49b9-bf66-d102a6a7af5d@gmail.com> Date: Tue, 5 Dec 2023 15:57:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: rdapp.gcc@gmail.com, "kito.cheng" , "kito.cheng" , Jeff Law Subject: Re: [PATCH] RISC-V: Block VLSmodes according to TARGET_MAX_LMUL and BITS_PER_RISCV_VECTOR Content-Language: en-US To: =?UTF-8?B?6ZKf5bGF5ZOy?= , gcc-patches References: <20231205125727.1805615-1-juzhe.zhong@rivai.ai> <016004C9F7197EBC+2023120522485442058610@rivai.ai> From: Robin Dapp In-Reply-To: <016004C9F7197EBC+2023120522485442058610@rivai.ai> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 List-Id: > I think the VLS modes are excluded exactly meet we expected. > For example, when zvl128b, LMUL = 1. > We allow allow VLS modes <= 128bit, exclude VLS modes > 128bits. > We have the same behavior as ARM SVE. I just found the ordered_p a bit unintuitive here at first sight. But when thinking about it, not so bad. So we only allow modes that are either known larger, equal or smaller but not either. LGTM. > This check is already in the vls_mode_valid_p. Seems I'm blind... sorry. Regards Robin