llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Port big-endian support to ARM64

Open TNorthover opened this issue 12 years ago • 5 comments

Bugzilla Link 19400
Version trunk
OS Linux
CC @jmolloy,@TNorthover

Extended Description

Big-endian support is currently being implemented on AArch64, and this will probably need to be ported to ARM64 before the merge can be called complete.

This may mean the (hopefully temporary) creation of an arm64_be triple to do the redirection (yuck!).

TNorthover avatar Apr 11 '14 13:04 TNorthover

Agreed, Tim. This is not a blocker.

jmolloy avatar May 16 '14 12:05 jmolloy

It's safe to say that ARM64 BE support is at least as good as AArch64 though, isn't it? Assuming so, I'm removing the blocking status.

TNorthover avatar May 16 '14 12:05 TNorthover

A rather nasty issue regarding GCC incompatibility has been discovered, that makes it necessary to reopen this issue.

During a discussion with the GCC folks, two faults in Clang were identified:

The lane index to the lane-based vector intrinsics (such as vget_lane) is being treated as the logical lane, not the architectural lane. Richard Earnshaw has confirmed that it should be the architectural lane "as if" loaded by LDR.

The LD1 intrinsic is a user override and the compiler should not undo the LD1. The LD1 intrinsic is lowered to a normal LOAD node, so the compiler treats it like any load and ensures it acts as if the load had been performed by LDR. But LD1 should override this behaviour, and the load should be performed as if it were loaded with LD1, not LDR.

Also of note is that the GCC vector extension initializer list syntax:

uint32x2_t x = {0, 1};

Is not allowed to be mixed with NEON intrinsics. Clang should warn about this.

jmolloy avatar May 16 '14 12:05 jmolloy

All big endian support has been implemented as of r208577.

jmolloy avatar May 12 '14 17:05 jmolloy

I believe this is done

arsenm avatar Aug 15 '23 01:08 arsenm