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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>
Cc: 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:08:22
Message-ID: abdYBpgtoRQV34PX@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shin Berg 2026-03-16 01:15:24 Re: Inconsistency in owner assignment between INDEX and STATISTICS
Previous Message Michael Paquier 2026-03-16 01:00:41 Re: Streamify more code paths