Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly
Date
Msg-id abdYBpgtoRQV34PX@paquier.xyz
Whole thread Raw
In response to pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly
List pgsql-hackers
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..
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Streamify more code paths
Next
From: Shin Berg
Date:
Subject: Re: Inconsistency in owner assignment between INDEX and STATISTICS