mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
VDUP doesn't support vectors with 64-bit elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2876,12 +2876,12 @@ static SDValue LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) {
|
|||||||
return SDValue();
|
return SDValue();
|
||||||
|
|
||||||
// Use VDUP for non-constant splats.
|
// Use VDUP for non-constant splats.
|
||||||
if (usesOnlyOneValue)
|
unsigned EltSize = VT.getVectorElementType().getSizeInBits();
|
||||||
|
if (usesOnlyOneValue && EltSize <= 32)
|
||||||
return DAG.getNode(ARMISD::VDUP, dl, VT, Value);
|
return DAG.getNode(ARMISD::VDUP, dl, VT, Value);
|
||||||
|
|
||||||
// Vectors with 32- or 64-bit elements can be built by directly assigning
|
// Vectors with 32- or 64-bit elements can be built by directly assigning
|
||||||
// the subregisters.
|
// the subregisters.
|
||||||
unsigned EltSize = VT.getVectorElementType().getSizeInBits();
|
|
||||||
if (EltSize >= 32) {
|
if (EltSize >= 32) {
|
||||||
// Do the expansion with floating-point types, since that is what the VFP
|
// Do the expansion with floating-point types, since that is what the VFP
|
||||||
// registers are defined to use, and since i64 is not legal.
|
// registers are defined to use, and since i64 is not legal.
|
||||||
|
Reference in New Issue
Block a user