[llvm-bugs] [Bug 50520] New: PPC SSE emulation wrappers don't work in C++ mode

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 28 07:53:03 PDT 2021


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: unassignedclangbugs at nondot.org
          Reporter: nemanja.i.ibm at gmail.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210528/f32599fe/attachment.html>


More information about the llvm-bugs mailing list