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

            Bug ID: 102522
           Summary: Multiplication by scalar on arm-v7 seems to generate
                    scalar code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: denis.yaroshevskij at gmail dot com
  Target Milestone: ---

ARM-V7 Neon has intrinsics like vmulq_n_u32 that are suppose to generate one
mul instruction.


However it seems that gcc decomposes it into scalar:

```
        vmov.i32        d7, #0  @ v2si
        vmov.32 d7[0], r0
        vmul.i32        q0, q0, d7[0]
        bx      lr
```

https://godbolt.org/z/zv8o1KKW1

Is this an expected behaviour?

Reply via email to