@mbr Note I also requested that clang adds __builtin_assoc_barrier for compatibility with GCC:
Conversation
Notices
-
Embed this notice
pinskia (pinskia@hachyderm.io)'s status on Wednesday, 13-Nov-2024 03:01:13 JST pinskia
-
Embed this notice
Marc B. Reynolds (mbr@mastodon.gamedev.place)'s status on Wednesday, 13-Nov-2024 03:01:15 JST Marc B. Reynolds
Via a comment by @pinskia
So you can (in GCC/clang) prevent add/sub re-associations with built-ins in both. Sadly clang isn't consistently handling FMA prevention yet.
-
Embed this notice