[llvm] [ARM][Codegen] Fix vector data miscompilation in arm32be (PR #105519)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 20:15:26 PDT 2024
================
@@ -7966,7 +7953,7 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
if (Val.getNode()) {
SDValue Vmov = DAG.getNode(ARMISD::VMOVIMM, dl, VmovVT, Val);
- return DAG.getNode(ISD::BITCAST, dl, VT, Vmov);
+ return DAG.getNode(ARMISD::VECTOR_REG_CAST, dl, VT, Vmov);
}
// Try an immediate VMVN.
----------------
Zhenhang1213 wrote:
> Can you change the MVN below too (and maybe make sure there are tests to ensure it is correct).
only change MVN, and all tests pass, [https://github.com/llvm/llvm-project/pull/105913](url)
https://github.com/llvm/llvm-project/pull/105519
More information about the llvm-commits
mailing list