https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107849

            Bug ID: 107849
           Summary: All SIMD instrinsics are missing
           Product: gcc
           Version: 11.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: andreas_roever at web dot de
  Target Milestone: ---

Created attachment 53956
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53956&action=edit
A simple example showing the problem

It seems like the jit library only provies builtin functions for the "standard"
builtin functions. All the i386 SSE, AVX, ... stuff is missing.

I attache a silly little program to show what I mean.

The program defines a jit function that takes an argument, calculates the sqrt
using the builtin function and returns that value. It als calls the builtin
directly and then prints out the results


When compiled without defining VECTOR it uses a single float and everything
works as expected. 

When VECTOR is defines everything gets redefined to use an 256bit vector with 8
floats and also uses the appropriate builtin function. In that case the jit
function doesn't find the builtin.



I guess that that is the case because these builtins are not defined in the
same .def file as the functions that are known by libgccjit.

The library only uses the builtins defined in the gcc subdirectoy, but the SIMD
builtins are defined in the folder gcc/config/i386
  • [Bug jit/107849] New: All SIMD i... andreas_roever at web dot de via Gcc-bugs

Reply via email to