Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Alexander Lakhin <exclusion(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Greg Burd <greg(at)burd(dot)me>
Subject: Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly
Date: 2026-03-16 01:40:37
Message-ID: 2284079.1773625237@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Paquier <michael(at)paquier(dot)xyz> 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.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Chao Li 2026-03-16 01:36:36 Re: client_connection_check_interval default value