https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100758

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot 
gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Erich Eckner from comment #2)
> We use this in archlinux32 to detect, if we can install packages, that have
> sse2 opcodes:
> 
> If one sets "Architecture = auto" in /etc/pacman.conf, uname only gives
> "i686" in both cases (this is how archlinux does/did the probing), and then,
> we probe for sse2 to check, if we really are "i686" or "pentium4" (our
> nomenclature for "i686" + sse2). This works well on amd and intel cpus, but
> fails on via cpus.
> 
> Details about expected features: https://archlinux32.org/architecture/

I see.

> 
> We can add some cumbersome code which probes for sse2, but I'd really prefer
> some compiler builtin instead :-)

I can implement it for GCC 12.1 if you want (May 2022 release date). As I don't
have access to the VIA machines, can you please paste the content of %eax,
%ebx, %ecx and %edx for 'cpuid' instruction?

Reply via email to