mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 06:27:16 +00:00
"fix" support for FP constants (this code asserts in the scheduler,
though) llvm-svn: 24152
This commit is contained in:
parent
e89d6f5197
commit
7975eea64d
@ -322,10 +322,12 @@ SDOperand IA64DAGToDAGISel::Select(SDOperand Op) {
|
||||
* case ISD::DYNAMIC_STACKALLOC:
|
||||
*/
|
||||
case ISD::ConstantFP: {
|
||||
SDOperand Chain = CurDAG->getEntryNode(); // this is a constant, so..
|
||||
|
||||
if (cast<ConstantFPSDNode>(N)->isExactlyValue(+0.0))
|
||||
return CurDAG->getRegister(IA64::F0, MVT::f64); // load 0.0
|
||||
return CurDAG->getCopyFromReg(Chain, IA64::F0, MVT::f64);
|
||||
else if (cast<ConstantFPSDNode>(N)->isExactlyValue(+1.0))
|
||||
return CurDAG->getRegister(IA64::F1, MVT::f64); // load 1.0
|
||||
return CurDAG->getCopyFromReg(Chain, IA64::F1, MVT::f64);
|
||||
else
|
||||
assert(0 && "Unexpected FP constant!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user