summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2009-03-17 16:45:16 +0000
committerScott Michel <scottm@aero.org>2009-03-17 16:45:16 +0000
commitdf52d3d477263e058b8cb63992c85b56caef913d (patch)
treeec7955acc2e1166915b6e72acd88b37f2b6cc967 /llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
parentaf41991c8f924a28353ea0cc936b6e04b881ef31 (diff)
downloadbcm5719-llvm-df52d3d477263e058b8cb63992c85b56caef913d.tar.gz
bcm5719-llvm-df52d3d477263e058b8cb63992c85b56caef913d.zip
CellSPU:
Revert inadvertent mis-fix of fneg. llvm-svn: 67084
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
index d1486220099..dd2ef6448ca 100644
--- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
@@ -865,12 +865,12 @@ SPUDAGToDAGISel::Select(SDValue Op) {
SDValue negConst = CurDAG->getConstant(0x8000000000000000ULL, MVT::i64);
SDNode *signMask = 0;
- unsigned Opc = SPU::ORfneg64;
+ unsigned Opc = SPU::XORfneg64;
if (OpVT == MVT::f64) {
signMask = SelectI64Constant(negConst, MVT::i64, dl);
} else if (OpVT == MVT::v2f64) {
- Opc = SPU::ORfnegvec;
+ Opc = SPU::XORfnegvec;
signMask = emitBuildVector(CurDAG->getNode(ISD::BUILD_VECTOR, dl,
MVT::v2i64,
negConst, negConst));
OpenPOWER on IntegriCloud