You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce:
$ cat xmm.cpp
#include <xmmintrin.h>
int test(int a) { return a + 2; }
$ clang++ xmm.cpp -S -DNO_WARN_X86_INTRINSICS -O3
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:978:42: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
result = (__vector unsigned long long) vec_cts (rounded, 0);
^~~~~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:1035:42: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
result = (__vector unsigned long long) vec_cts (temp, 0);
^~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:1204:10: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
temp = vec_cts (rounded, 0);
^~~~~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:1221:11: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
tmp_i = vec_cts (rounded, 0);
^~~~~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
4 errors generated.
The text was updated successfully, but these errors were encountered:
Thanks, Nemanja! I was not available last week and I saw failure report in comments following that revision (https://reviews.llvm.org/D103386) so I didn't fill the commit hash. Now the failure looks more like a libcxx issue, not a blocker of this.
Extended Description
To reproduce:
$ cat xmm.cpp
#include <xmmintrin.h>
int test(int a) { return a + 2; }
$ clang++ xmm.cpp -S -DNO_WARN_X86_INTRINSICS -O3
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:978:42: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
result = (__vector unsigned long long) vec_cts (rounded, 0);
^~~~~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:1035:42: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
result = (__vector unsigned long long) vec_cts (temp, 0);
^~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:1204:10: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
temp = vec_cts (rounded, 0);
^~~~~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
In file included from xmm.cpp:1:
clang/13.0.0/include/ppc_wrappers/xmmintrin.h:1221:11: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
tmp_i = vec_cts (rounded, 0);
^~~~~~~~~~~~~~~~~~~~
clang/13.0.0/include/altivec.h:3248:12: note: expanded from macro 'vec_cts'
_Generic((__a), vector float
^~~~~
4 errors generated.
The text was updated successfully, but these errors were encountered: