From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id CE93538654AD for ; Thu, 15 Feb 2024 16:56:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE93538654AD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CE93538654AD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708016177; cv=none; b=EUlrkmLrMyYD2wJ1xWP5Fa0R9gnh0NEcaOBpZEXZdKGmAVSGGZkQ4uO69amvEbNS8xylqqm0pqL7rJG5syTn3AX6ymV29yon3/z2aFrPmKdW6ghjwdyLp6NvI+fD+yj0URPurgGUyfQod+2aO5o6ydjL6I8iJzxTeiCfXUGjAuw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708016177; c=relaxed/simple; bh=UCn1OH1QhI4FVqEiQxEp8LvZ6maecTH7jEVkRJwf5Ho=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=aXN9BUmupiGIIBmhuSQnXHF93bbWJOaLJDWMoC7UdloXdLk9HCFGeog12pC07HD/Baz7AhBZkxXLiBgIowURYPXhvUrt3Ymj26Fz/miAwbhRR8+hFYEiPlgscPPYm3rCCLg0mDwO02xAESW89ePz7ldTe8hJR9SdraSZ6hGDY5U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708016176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bd83R08NfwBw2IyAOERtPynxX4waC9UsS9wqKZSfPHM=; b=TtHHu0GK/UL9nCzqnYgzmSUTmoS0LYpBn/BmkpdRO1vuXy4LK8zvIuxUbTmEfJLUwGaSNM NxlV7ruDdNd8yYCZ7K55rMihMgEW6tD8c5/RcQOXmxrXgD4soYsQkoGt+JjMym2+Kl8d0o Jl713JRq6CHw0O4S7kTbAj4UOPRbNkA= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-88-nHAFasVNOAq-scZsfb524g-1; Thu, 15 Feb 2024 11:56:07 -0500 X-MC-Unique: nHAFasVNOAq-scZsfb524g-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7831ed4bb2aso148354385a.0 for ; Thu, 15 Feb 2024 08:56:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708016167; x=1708620967; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bd83R08NfwBw2IyAOERtPynxX4waC9UsS9wqKZSfPHM=; b=P/anFyvwa2Rw4+IxaG1vEnoLLCVqOIgbwl4DUww4pJ422O7GpLkilwbhVUjMUClunh ufZRWKseMaQOjoAnNL/3d9Un+DcbYumZ9LX1rPicEnDyogk8w2q7ByYHyE9LD+UMnUSu AljczB4lXU5kDBnUFANwUff+5gl7b/FNyxXMO3mf0zpclAk9PbxlCjEt81FX0VZ1WJa3 ujtJ9JOcHeqfJF96Jpowb0++I3ccO8eWRqcynM8K7+l2i2tfnBy3cx+5B63vuyY6Llxy Au2etHhBglZGuWInDxHNVF714Oy5kR9B3hd0InFsEeku1XYD2vjruglzKCkLgQYtlMGj F91Q== X-Forwarded-Encrypted: i=1; AJvYcCVGqe7269CxwdIhIpIbvnexQmSRYnIVXAmVPdskcl3pMJejAqqkHS8mGvOhHfgyc8uoAvA88Qt4spNE7Cyf2Es= X-Gm-Message-State: AOJu0YxGZPaQHxeLsxVcC2WvRrWbrSkW/6TT0xh5bqzn+49y81NhHzza vL5dH2kXwn5CC9JTrfJOicEiF/DSXzOTk0x52i9fOtGCGMs7Rm4nphowjRNh+jRx8kiIMlIUXB3 R8w/vlx/wylRGg0v8JMUYVPBtCyds7MBDcEXFIONrkkD6 X-Received: by 2002:a05:620a:3902:b0:787:3674:c9be with SMTP id qr2-20020a05620a390200b007873674c9bemr2587057qkn.8.1708016167545; Thu, 15 Feb 2024 08:56:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmRGGU/6LShDuqiIZM4NDUK5q14aqABFSk4DO4GOIaQzJkJ6TayCyLpcYIx9PPacZV6+ucfQ== X-Received: by 2002:a05:620a:3902:b0:787:3674:c9be with SMTP id qr2-20020a05620a390200b007873674c9bemr2587046qkn.8.1708016167320; Thu, 15 Feb 2024 08:56:07 -0800 (PST) Received: from t14s.localdomain (c-76-28-97-5.hsd1.ma.comcast.net. [76.28.97.5]) by smtp.gmail.com with ESMTPSA id f6-20020a05620a15a600b00787224025e0sm733274qkk.130.2024.02.15.08.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:56:06 -0800 (PST) Message-ID: <880ad541f09689b402510cdc2994edad1c55c363.camel@redhat.com> Subject: Re: [PATCH] libgccjit: Add count zeroes builtins to ensure_optimization_builtins_exist From: David Malcolm To: Antoni Boucher , "gcc-patches@gcc.gnu.org" , "jit@gcc.gnu.org" Date: Thu, 15 Feb 2024 11:56:06 -0500 In-Reply-To: <35b8bdf858da6f6cfb2c6fe3a1f6620ff6f8a5a2.camel@zoho.com> References: <35b8bdf858da6f6cfb2c6fe3a1f6620ff6f8a5a2.camel@zoho.com> User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 2024-02-15 at 11:32 -0500, Antoni Boucher wrote: > Hi. > This patch adds some missing builtins that can be generated by > optimizations. > I'm not sure how to add a test for this one. > Do you know the C code that can be optimized to a builtin_clz? I don't. Given a reproducer we could probably figure it out, but it's probably not worth bothering. > Thanks for the review. Thanks, looks good to me for trunk. Dave