mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Make sure to return the result in the right type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
118f1f7186
commit
90217999bd
@ -962,10 +962,12 @@ SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
|
|||||||
assert(CompareOpc>0 && "We only lower altivec predicate compares so far!");
|
assert(CompareOpc>0 && "We only lower altivec predicate compares so far!");
|
||||||
|
|
||||||
// If this is a non-dot comparison, make the VCMP node.
|
// If this is a non-dot comparison, make the VCMP node.
|
||||||
if (!isDot)
|
if (!isDot) {
|
||||||
return DAG.getNode(PPCISD::VCMP, Op.getOperand(2).getValueType(),
|
SDOperand Tmp = DAG.getNode(PPCISD::VCMP, Op.getOperand(2).getValueType(),
|
||||||
Op.getOperand(1), Op.getOperand(2),
|
Op.getOperand(1), Op.getOperand(2),
|
||||||
DAG.getConstant(CompareOpc, MVT::i32));
|
DAG.getConstant(CompareOpc, MVT::i32));
|
||||||
|
return DAG.getNode(ISD::BIT_CONVERT, Op.getValueType(), Tmp);
|
||||||
|
}
|
||||||
|
|
||||||
// Create the PPCISD altivec 'dot' comparison node.
|
// Create the PPCISD altivec 'dot' comparison node.
|
||||||
std::vector<SDOperand> Ops;
|
std::vector<SDOperand> Ops;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user