Skip to content

[AArch64][SVE] can fold svmul by -1 to svneg #122026

@k-arrows

Description

@k-arrows

Test case:

#include <arm_sve.h>

svuint64_t foo (svuint64_t x, svbool_t pg)
{
  return svmul_n_u64_x (pg, x, -1);
}

https://godbolt.org/z/GoEnMcc9s

I referred to the following GCC patch.
patch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions