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.96) (envelope-from ) id 1w26q1-000t8B-0S for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 12:14:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w26pz-009mnK-2x for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 12:14:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w26pz-009mnC-0D for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 12:14:24 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w26pw-00000000QAo-2qzX for pgsql-hackers@postgresql.org; Mon, 16 Mar 2026 12:14:23 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id D2A021D0016D; Mon, 16 Mar 2026 08:14:17 -0400 (EDT) Received: from phl-imap-14 ([10.202.2.87]) by phl-compute-02.internal (MEProxy); Mon, 16 Mar 2026 08:14:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burd.me; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1773663257; x=1773749657; bh=ABIQ/bQRqFutiVBbS77pkrrvOUga4+qQ1xo8FH36Y50=; b= yQM/yKF0fPKz0YKE9+JwlXyrhF1PVsp7ZlYxjIqFUNgDGiQvKiL2GSyogOcw8ngp 45A9kdyVp9wUEXGdkZQAtapiMHiqZDxEzm/lHqZJcpLH7LeqcaAQt5a33c9+n7Tp Yc8IHDEXqZxuvXJD8og1RTRqkOuoNfNZncI7GVcHskyNM0NTS6lEeCEEP/fkI+Px uXMXCkm+ear0wGSKo8Bya4Zz/Lijy5pYJ+P8IGEEvZ/PNev0Xztubiy2CkqLY3AU yhumTG0PbrPiOONej+zgSJ6kmrGZ1sgcHC42GYjvk6dxtSiLa/v3xRa/MVFAhcaq z9vMp7sEtOFu0HiIHZLfxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1773663257; x= 1773749657; bh=ABIQ/bQRqFutiVBbS77pkrrvOUga4+qQ1xo8FH36Y50=; b=I iUTQctLDNR2AeWxVURL48RObJ6dJHMawS/irVv2sGWOLh8HHIEAqsg6XzFjyHz0z m/LVhh9cimDNmmFfdk8mXUZBXML66+6HyXpl3ORL7IASSfBrwnyIClkJPiT6UJkF /XQM17+2N58TmD+A0SUHFR0bD2R6G//JXPtNIq4C1ZxNXG+ruTuIBqhhbetuOO/f KDB2YYGQUeLTdHja2s6VwujSm31+NubCOtC721blbk5w4NVqfMzCvVcZ1Kjy414r CsAhEQ34NX9AyzNlDyXKZK3sqZJPoBIkShsiJZIcOiDehijW0FdvaAeLobG9t73Z UqmGzR8JNMHvGmMNQr4wg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleekfeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfifhrvghg uceuuhhrugdfuceoghhrvghgsegsuhhrugdrmhgvqeenucggtffrrghtthgvrhhnpedvue fhffdtvdevueffteehheefleevtedvfedtueefffeijeefudelveeftdffudenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvghessghurh gurdhmvgdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepvgigtghluhhsihhonhesghhmrghilhdrtghomhdprhgtphhtthhopehthhhomhgrsh drmhhunhhrohesghhmrghilhdrtghomhdprhgtphhtthhopehmihgthhgrvghlsehprghq uhhivghrrdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtgh hrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: i675e48f3:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id CBF85C4006E; Mon, 16 Mar 2026 08:14:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: Aa8bv-zTnt9c Date: Mon, 16 Mar 2026 08:13:55 -0400 From: "Greg Burd" To: "Tom Lane" , "Michael Paquier" , "Alexander Lakhin" Cc: pgsql-hackers , "Thomas Munro" Message-Id: In-Reply-To: <2284079.1773625237@sss.pgh.pa.us> References: <2284079.1773625237@sss.pgh.pa.us> Subject: Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Mar 15, 2026, at 9:40 PM, Tom Lane wrote: > Michael Paquier writes: >> On Sun, Mar 15, 2026 at 02:00:00PM +0200, Alexander Lakhin wrote: >>> adding -march=rv64gcv to CFLAGS makes clang generate different (wrong?) >>> code for crypt-des.c. Namely, having reproduced the diff locally, with >>> this debugging addition: >>> when the code compiled with CC=clang-20 CPPFLAGS="-march=rv64gcv". > >> Thanks for the detailed investigation. I was puzzled by it myself for >> a couple of hours, and did not see something else than a broken >> compiler here.. > > Seems like this might be worth a bug report to the clang people. Thanks Alexander for digging and a solid report of the issue, and Michael for spending some time on this, and Tom for chiming in as well. I agree this looks like a compiler issue. I know that Thomas (added/CC'ed) you've posted bugs against clang before, any thoughts on this one? > > regards, tom lane best. -greg