summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/MethodBitcode.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-11-01 12:06:54 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-11-01 12:06:54 -0700
commit5b3c889b316746ddc835289aa6600cd967f2ecfe (patch)
tree683a71d08dc8b70cb16d9c064f1f0abd7c14b0b3 /src/compiler/codegen/MethodBitcode.cc
parente46cd75f182a3d738c5e2ef3cc90b2f0b1de56ee (diff)
parentb046e16d8b8da318d6055f9308950131f1255e08 (diff)
Merge "Remove all TARGET_[ARM|X86|MIPS] #ifdefs" into dalvik-dev
Diffstat (limited to 'src/compiler/codegen/MethodBitcode.cc')
-rw-r--r--src/compiler/codegen/MethodBitcode.cc31
1 files changed, 10 insertions, 21 deletions
diff --git a/src/compiler/codegen/MethodBitcode.cc b/src/compiler/codegen/MethodBitcode.cc
index 79208833f1..f3ebf09ab1 100644
--- a/src/compiler/codegen/MethodBitcode.cc
+++ b/src/compiler/codegen/MethodBitcode.cc
@@ -1722,23 +1722,22 @@ void convertExtendedMIR(CompilationUnit* cUnit, BasicBlock* bb, MIR* mir,
}
break;
-#if defined(TARGET_ARM)
+ // TODO: need GBC intrinsic to take advantage of fused operations
case kMirOpFusedCmplFloat:
- UNIMPLEMENTED(WARNING) << "unimp kMirOpFusedCmpFloat";
+ UNIMPLEMENTED(FATAL) << "kMirOpFusedCmpFloat unsupported";
break;
case kMirOpFusedCmpgFloat:
- UNIMPLEMENTED(WARNING) << "unimp kMirOpFusedCmgFloat";
+ UNIMPLEMENTED(FATAL) << "kMirOpFusedCmgFloat unsupported";
break;
case kMirOpFusedCmplDouble:
- UNIMPLEMENTED(WARNING) << "unimp kMirOpFusedCmplDouble";
+ UNIMPLEMENTED(FATAL) << "kMirOpFusedCmplDouble unsupported";
break;
case kMirOpFusedCmpgDouble:
- UNIMPLEMENTED(WARNING) << "unimp kMirOpFusedCmpgDouble";
+ UNIMPLEMENTED(FATAL) << "kMirOpFusedCmpgDouble unsupported";
break;
case kMirOpFusedCmpLong:
- UNIMPLEMENTED(WARNING) << "unimp kMirOpLongCmpBranch";
+ UNIMPLEMENTED(FATAL) << "kMirOpLongCmpBranch unsupported";
break;
-#endif
default:
break;
}
@@ -1863,12 +1862,6 @@ bool methodBlockBitcodeConversion(CompilationUnit* cUnit, BasicBlock* bb)
Instruction::Format dalvikFormat =
Instruction::FormatOf(mir->dalvikInsn.opcode);
- /* If we're compiling for the debugger, generate an update callout */
- if (cUnit->genDebugger) {
- UNIMPLEMENTED(FATAL) << "Need debug codegen";
- //genDebuggerUpdate(cUnit, mir->offset);
- }
-
if (opcode == kMirOpCheck) {
// Combine check and work halves of throwing instruction.
MIR* workHalf = mir->meta.throwInsn;
@@ -2521,13 +2514,10 @@ void cvtICmpBr(CompilationUnit* cUnit, llvm::Instruction* inst,
RegLocation rlSrc1 = getLoc(cUnit, inst->getOperand(0));
rlSrc1 = loadValue(cUnit, rlSrc1, kCoreReg);
llvm::Value* rhs = inst->getOperand(1);
-#if defined(TARGET_MIPS)
- // Compare and branch in one shot
- (void)taken;
- (void)cond;
- (void)rhs;
- UNIMPLEMENTED(FATAL);
-#else
+ if (cUnit->instructionSet == kMips) {
+ // Compare and branch in one shot
+ UNIMPLEMENTED(FATAL);
+ }
//Compare, then branch
// TODO: handle fused CMP_LONG/IF_xxZ case
if (llvm::ConstantInt* src2 = llvm::dyn_cast<llvm::ConstantInt>(rhs)) {
@@ -2540,7 +2530,6 @@ void cvtICmpBr(CompilationUnit* cUnit, llvm::Instruction* inst,
opRegReg(cUnit, kOpCmp, rlSrc1.lowReg, rlSrc2.lowReg);
}
opCondBranch(cUnit, cond, taken);
-#endif
// Fallthrough
opUnconditionalBranch(cUnit, fallThrough);
}