From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id B7BC5384640E for ; Thu, 25 Apr 2024 05:07:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B7BC5384640E 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 B7BC5384640E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714021662; cv=none; b=J2/X1RcLKL5EqmWtljRn3g8fhnM2HdE090wZOg2m49skzMNdd3NXgosejLTqdaM7ezXNKV5UD2XeJ0BR5ZCteHhPbq20II70mM787zOxYl+qMW8RExX89gtG/FaAvLR5ew6h1KyX2JnLth7sTc63v+rdBFTXETF62ZO4TDdFo3Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714021662; c=relaxed/simple; bh=3KKiR4AP3nIk5HoBBdDAzMYduVbGmIb+dI4yFZTCgDE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=kTwhijlzhj5Jm4BFxF5Q08MLRHJdntQSKqYqTJo04cZ94K4m1A1cbakC3h5+mN6ERIPnbCDsGBUMuU1fPsocVXD7nhYObcZxFtodPEoJI6gzG37/aHbs/91a9MF9Urs0yoJcuUd0p220WsQDqmNC65JMn8ET9JJC4e2Dfpw2EFs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1e3c3aa8938so3889445ad.1 for ; Wed, 24 Apr 2024 22:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714021659; x=1714626459; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dzotdOkURq9iTrfmPFtb3atEVIp0bQmT8MF9Z10FGes=; b=K/8huu4BzuNHuWH9kUG8/Bfaw7XZDt8KzdrJ9cdF2bD/cZS53sJK/Q3yPBw0UXu8QR CTST6eCdsagW8fDMMJ+bhECEPaYsxd+wsHmdDRUepf017/qZJm3vIdmAbLyarQYTdUZS y387rY8OlqOh+d/1zg9mxrINcjptWHhR8Zt8Q6VcPnHq6GOE1O0ZNT4M9o0xZDdCRtGD U+fFeMSJwU4lJnOdOUHySDIhvtWrjcx0obBJZL4ms5wXwT5Yn8ZI1t1AaX07xRmNQorI vg+IGhWkAfAPyGCdNIf7RL67BAqwq8oLOo6BxTa2HocPbjINQk0oMAdaIOCvC53MXyEM iG5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714021659; x=1714626459; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dzotdOkURq9iTrfmPFtb3atEVIp0bQmT8MF9Z10FGes=; b=gLEaQk0I78y5g1ZBFAzcnL74dRJM9+BPwpBXJD0vuHUfP6nXmKZmMBSzU4YeOG5NDS n/AWcIq6Cb0duyBfdR6OwHEo+0AEV+yjfN/LSob16c2+wD+aD/8w6Q4Gs8g5qi08cZbp MCP82GXR/xz1I2OfUMIBUpMURm4XJQweDhXKgkkink5BhtUAw+5WTIbwfVMloYltnt8s ssSrH1jud3uvvHRZtCyU3dFdYpLq425apHjxtHs8tGHJlv9IMJXEt4+VxZ70gykq2NyG w8EVN2QXvMyrFKhTxHBIUH+CyG73O023daFZyruYn8srFqLJNLOLk2cTEzdu1VVKpc5n pF9Q== X-Forwarded-Encrypted: i=1; AJvYcCXYKKB9Iq5+6ScPZPDN6gETkGPyONMeKNtOqmcOlLVzmPR9uNRciI9CltE9VPuemprg18wns220a3U0Uie5X2BlPcMLaelIbV2a X-Gm-Message-State: AOJu0Yzn+axVs1r6Zf+5JB5Sl6DRnt4BGsh7yw86bmBJ9uBjyDG2mMG2 1WGsfhDhPyoLBtL5EfyXFafqVv3yJXBzWG9cMKOC3kX4UG0cHyuz X-Google-Smtp-Source: AGHT+IHY1XLVEukgVwvD03sM882BKoWOKffGB4aYiiWQQdPcLxkg1O4Xc64xyyfSkRg4L5ZMa+8WAQ== X-Received: by 2002:a17:902:ce83:b0:1e4:34f5:4021 with SMTP id f3-20020a170902ce8300b001e434f54021mr6152622plg.5.1714021659313; Wed, 24 Apr 2024 22:07:39 -0700 (PDT) Received: from [172.31.0.109] ([136.36.72.243]) by smtp.gmail.com with ESMTPSA id jj1-20020a170903048100b001e2526a5cc3sm12768306plb.307.2024.04.24.22.07.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 22:07:38 -0700 (PDT) Message-ID: Date: Wed, 24 Apr 2024 23:07:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: [RFC V4] Enable libmvec support for RISC-V Content-Language: en-US To: shiyulong@iscas.ac.cn, libc-alpha@sourceware.org Cc: palmer@dabbelt.com, darius@bluespec.com, andrew@sifive.com, maskray@google.com, kito.cheng@sifive.com, wuwei2016@iscas.ac.cn, jiawei@iscas.ac.cn, shihua@iscas.ac.cn, chenyixuan@iscas.ac.cn References: <20240415072108.3741341-1-shiyulong@iscas.ac.cn> From: Jeff Law In-Reply-To: <20240415072108.3741341-1-shiyulong@iscas.ac.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 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 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: On 4/15/24 1:21 AM, shiyulong@iscas.ac.cn wrote: > From: yulong > > Diff: Chande the version from GLIBC_2.39 to GLIBC_2.40. > This patch tries to enable libmvec on RISC-V. I also have demonstrated > how this all fits together by adding implementations for vector cos. > This patch is a try and we hope to receive valuable comments. Just an FYI -- Palmer's team over at Rivos have implementations for a number of routines that would fit into libmvec. You might reach out to Ping Tak Peter Tang for information in his implementation. > https://github.com/rivosinc/veclibm/ THeir implementations may provide good guidance on performant implementations of various routines that libmvec typically provides. jeff