[Bug 262910] immintrin.h fails on arm64: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?

[email protected]
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262910

            Bug ID: 262910
           Summary: immintrin.h fails on arm64: error: use of undeclared
                    identifier '__builtin_ia32_emms'; did you mean
                    '__builtin_isless'?
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: [email protected]
          Reporter: [email protected]

The science/opensph port fails on arm64:

> In file included from /usr/lib/clang/11.0.1/include/immintrin.h:15:
> /usr/lib/clang/11.0.1/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
>     __builtin_ia32_emms();
>     ^
> /usr/include/c++/v1/math.h:649:12: note: '__builtin_isless' declared here
>     return isless(__lcpp_x, __lcpp_y);
           ^
> /usr/include/math.h:120:23: note: expanded from macro 'isless'
> #define isless(x, y)            __builtin_isless((x), (y))
>                                 ^

It seems that just include of immintrin.h causes the problem.

Log:
http://ampere3.nyi.freebsd.org/data/130arm64-default/60ab72786154/logs/OpenSPH-0.3.8_4.log

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.