On 3 June 2023 13:25:32 CEST, Xi Ruoyao via Gcc-patches <[email protected]> wrote:
>There seems no good way to check if the CPU is Intel or AMD from >the built-in macros (maybe we can check every known model like __skylake, >__bdver2, ..., but it will be very error-prune and require an update >whenever we add the support for a new x86 model). The best thing we can >do seems "always try ifunc" here. IIRC there is __builtin_cpu_is (after initialisation) -- A couple of days ago, we wondered if it would be handy to lower that even in fortran without going through C, so i am pretty sure I don't make that up.. ;-) Just a thought,
