https://bugs.llvm.org/show_bug.cgi?id=50520
Bug ID: 50520
Summary: PPC SSE emulation wrappers don't work in C++ mode
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Headers
Assignee: unassignedclangb...@nondot.org
Reporter: nemanja.i....@gmail.com
CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs