<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PPC SSE emulation wrappers don't work in C++ mode"
   href="https://bugs.llvm.org/show_bug.cgi?id=50520">50520</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PPC SSE emulation wrappers don't work in C++ mode
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Headers
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nemanja.i.ibm@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>