Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly
Вложения
В списке pgsql-hackers по дате отправления:
| От | Alexander Lakhin |
|---|---|
| Тема | Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly |
| Дата | |
| Msg-id | f1a8853e-b0d4-4e7c-a7b3-b8238dedd272@gmail.com обсуждение исходный текст |
| Ответ на | Re: pgcrypto/des tests fail on riscv64 due to clang's code generation anomaly ("Greg Burd" <greg@burd.me>) |
| Список | pgsql-hackers |
Hello, 16.03.2026 14:13, Greg Burd wrote: >> 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 chimingin as well. I agree this looks like a compiler issue. I know that Thomas (added/CC'ed) you've posted bugs againstclang before, any thoughts on this one? > Please find attached the reduced test code, which works for me as follows: $ clang-20 -O2 -march=rv64gcv crypt-des-test.c -o crypt-des-test && ./crypt-des-test !!!des_init| un_pbox: 15 6 19 20 28 11 27 16 0 14 22 25 4 17 30 9 1 7 23 13 31 26 2 8 18 12 29 5 21 10 3 24 $ clang-20 -O2 -march=rv64gc crypt-des-test.c -o crypt-des-test && ./crypt-des-test !!!des_init| un_pbox: 8 16 22 30 12 27 1 17 23 15 29 5 25 19 9 0 7 13 24 2 3 28 10 18 31 11 21 6 4 26 14 20 $ clang-20 -O1 -march=rv64gcv crypt-des-test.c -o crypt-des-test && ./crypt-des-test !!!des_init| un_pbox: 8 16 22 30 12 27 1 17 23 15 29 5 25 19 9 0 7 13 24 2 3 28 10 18 31 11 21 6 4 26 14 20 $ clang-20 --version Ubuntu clang version 20.1.2 (0ubuntu1~24.04.2) Best regards, Alexander
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера