Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uRI60-009dBm-3H for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jun 2025 22:14:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uRI5w-003uIP-Rk for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jun 2025 22:14:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uRI5w-003uIH-IL for pgsql-hackers@lists.postgresql.org; Mon, 16 Jun 2025 22:14:25 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uRI5v-002O5D-19 for pgsql-hackers@lists.postgresql.org; Mon, 16 Jun 2025 22:14:24 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3ddd1cf40cfso17453235ab.1 for ; Mon, 16 Jun 2025 15:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750112062; x=1750716862; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=+/LnHw/Gj6fzHtKeozVO85nxqEwW2TlHWw0SiRX/97I=; b=iBZS0ajnlxMadWAyqzPq6qgmTvuXF3u9MmgC4GAa0ig+9zIs6Y1thxenhXxZdmJ0Uf d/4GVIIKOhRaqAiSV7FmXlI9J1SBu8/TaMsihrysQwSXRynuwZkNBv59P/Y3F4zi4cu6 n/Rqhp/fg6uf4iSnoKblxcTzBghsy/AhJOeyiYJg6Pjs8EPo2QHW0gfN1OdpTReYmUJH Q13mCvBewLS7AdZmMk9eRMRNUxo/yVV+wkS906ZS+N7kqifMlzB7GhEZZpoUmcmREyaj 7F1IHEYue82neY7mnEDYrSvfwvAQnbfBD63dsStOnYkFnGDnt6cQBtn6OBGh8e9krcSz sbNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750112062; x=1750716862; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+/LnHw/Gj6fzHtKeozVO85nxqEwW2TlHWw0SiRX/97I=; b=e4QqCOMrV6JuTTB79qDAF636lX/qQ2DpMhMnAO8e7yp9JmTivxU9lauwCyQCi1yWKv ed5JSkgcoxM6AcOoLOGxxBfv8fc0gLW40WwvASp29XAUV4JVZJcDLdKt0l3D27zj2ppI F/4MnSDSYCclWJDFjDTkcDH0wbrEuY2pjCgb+wgw0MHK3blwo7KONXCUobrIhF8EeQDg M/gXlj8n8eUaA2Byag7asknEQbY/5pLXE+lisfELJZjShB88l4dXZoMZ23CLP8GDNCpL n3HGTDnVLLAueJw5GKaWO0xqEpd89JHo3dafHiB3sevCkzFAEprELHqvfEd4+hDKOVIF 2SaA== X-Forwarded-Encrypted: i=1; AJvYcCXk+hpTrznY6fVOWa+SsJi0Jkbyq3Z1qGGov3iMC5pX+sbkflNu9dqPtDb1N+YV5wa4wWQyL1HtXL13yjhE@lists.postgresql.org X-Gm-Message-State: AOJu0Yzn3j5CsyDBQ33NcJkeHBZmlFoZgBC8s5iJvpcdhbhK34p5kmLg gUo0kKZxC908iL3fXIquqm11VsuUF85vgtgoEhjVSg5QE4s21MUgm7Yb X-Gm-Gg: ASbGnctP4rx9ae7tWJoNtx/cdU58x9zWqSs/LvDpypa87GUQ6+dQamkh/+uZZzkGVeh Y/Z/j/c1VHQqKMAiiLGWv0vrCAKZp8hn8lE0HKqi4o7MIV7QYcaDiSKlQsIdfFmFa0JQM0ehIHk 9Al4z/i2qnik6m0MPXb0TjPAXO0742ZWpTHi9SWvVqgsJ1F0tEIRnxvNpEVANIqj3y4+qstjCjX +hlidsrZljfkxWJCmQExM58k5KOaTPewo+ok+lkcPIZYwN6bgx26IoA+Tmj2ixxBZIYAh+Cje+G +uABv69AEHUD8pNXUCF/+nFVKKryYamrjq+S8CYoF7dgo5ys39WJfLT9mvzYnKJMOGLfWJY5//N wDxeo6TkBiWAyuADxq1WGcnqXUeli1ZS4f9o6UXzs/8firvwYC/yl X-Google-Smtp-Source: AGHT+IHrDotXTvLxByjqOGPC3SOlu3PGQV1LCG/AD8/19EtsCYKIeOsw3X1KSAKl8BHzJvGjXM+shw== X-Received: by 2002:a92:ca0e:0:b0:3dd:d6d5:2d03 with SMTP id e9e14a558f8ab-3de07d50c0bmr105016975ab.11.1750112062506; Mon, 16 Jun 2025 15:14:22 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-501499f89f7sm1918720173.0.2025.06.16.15.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jun 2025 15:14:21 -0700 (PDT) Date: Mon, 16 Jun 2025 17:14:19 -0500 From: Nathan Bossart To: "Devulapalli, Raghuveer" Cc: John Naylor , Andy Fan , Jesper Pedersen , Tomas Vondra , "pgsql-hackers@lists.postgresql.org" , "Shankaran, Akash" Subject: Re: Improve CRC32C performance on SSE4.2 Message-ID: References: <87o6uqd3iv.fsf@163.com> <029f0848-8bc2-4d99-aebd-345949f97622@gmail.com> <87frg1dc3k.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jun 16, 2025 at 06:31:11PM +0000, Devulapalli, Raghuveer wrote: > Attached is a simple reproducer. It passes with clang v16 -O0, but fails > with 17 and 18 only when built with -O0.. I've just started looking into this, but the difference in code generated for _mm512_castsi128_si512() between gcc, clang 16, and clang 17 looks interesting. -- nathan