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

            Bug ID: 114890
           Summary: [14/15 Regression] Big-endian addp intrinsics reorder
                    operands
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wilco at gcc dot gnu.org
  Target Milestone: ---

The following example:

#include "arm_neon.h"

uint32x4_t test (uint32x4_t v1, uint32x4_t v2)
{
  return vpaddq_u32 (v1, v2);
}

compiles with -O2 -mlittle-endian into:

test:
        addp    v0.4s, v0.4s, v1.4s
        ret

However -O2 -mbig-endian gives the incorrect:

        addp    v0.4s, v1.4s, v0.4s
        ret

Reply via email to