mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Fix type mismatch error in PPC Altivec (only causes
a problem when asserts are on). From vecLib. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5927d8e94d
commit
296c176141
@ -2570,14 +2570,14 @@ static SDOperand LowerBUILD_VECTOR(SDOperand Op, SelectionDAG &DAG) {
|
||||
if (SextVal >= 0 && SextVal <= 31) {
|
||||
SDOperand LHS = BuildSplatI(SextVal-16, SplatSize, MVT::Other, DAG);
|
||||
SDOperand RHS = BuildSplatI(-16, SplatSize, MVT::Other, DAG);
|
||||
LHS = DAG.getNode(ISD::SUB, Op.getValueType(), LHS, RHS);
|
||||
LHS = DAG.getNode(ISD::SUB, LHS.getValueType(), LHS, RHS);
|
||||
return DAG.getNode(ISD::BIT_CONVERT, Op.getValueType(), LHS);
|
||||
}
|
||||
// Odd, in range [-31,-17]: (vsplti C)+(vsplti -16).
|
||||
if (SextVal >= -31 && SextVal <= 0) {
|
||||
SDOperand LHS = BuildSplatI(SextVal+16, SplatSize, MVT::Other, DAG);
|
||||
SDOperand RHS = BuildSplatI(-16, SplatSize, MVT::Other, DAG);
|
||||
LHS = DAG.getNode(ISD::ADD, Op.getValueType(), LHS, RHS);
|
||||
LHS = DAG.getNode(ISD::ADD, LHS.getValueType(), LHS, RHS);
|
||||
return DAG.getNode(ISD::BIT_CONVERT, Op.getValueType(), LHS);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user