llvm / llvm/llvm-project

`vmull_p64` mismatch with GCC on big-endian

Open
#196,999 2 comments 0 reactions 0 assignees View on GitHub
backend:AArch64 llvm:codegen
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

There's a mismatch in the behavior of `vmull_p64` (ARM Neon intrinsic) with GCC on AArch64-BE - clang seems to add an extra `rev64`. [Godbolt](https://godbolt.org/z/j77KW3bcT).
I am not too sure which one's the correct behavior (ARM-BE references are scarce), but I am pretty sure that it shouldn't depend on the compiler lol.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Godbolt reproducer and compare vmull_p64 behavior between Clang and GCC on AArch64 big-endian. Consult the available ARM big-endian references to establish the expected behavior; done means the compiler behavior is consistent and covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.