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

            Bug ID: 127268
           Summary: ix86_default_vector_cost doesn't use
                    sse_to_integer/integer_to_sse
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86

ix86_default_vector_cost has

      case vec_to_scalar:
      case scalar_to_vec:
        return ix86_vec_cost (mode, ix86_cost->sse_op);

which uses

  const int sse_op;             /* cost of cheap SSE instruction.  */

It should use

  const int sse_to_integer;     /* cost of moving SSE register to integer.  */
  const int integer_to_sse;     /* cost of moving integer register to SSE. */

Reply via email to