Port big-endian support to ARM64
| 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!).
Agreed, Tim. This is not a blocker.
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.
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.
All big endian support has been implemented as of r208577.
I believe this is done