aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/FP/ThumbVFP.c
diff options
context:
space:
mode:
authorBen Cheng <bccheng@android.com>2011-01-25 11:00:18 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-25 11:00:18 -0800
commit047ef3379244dc0140314dc9dc5d3c9cd9a89ff0 (patch)
tree543c50d70a8fc93fc5dcfdf9538b37fc13baa8ad /vm/compiler/codegen/arm/FP/ThumbVFP.c
parentdc35d18b7f86a738d6dd33dca18c56eea56d3fa3 (diff)
parent6958e9edbf0cbc04c7c2aab7ccd63516b794a92d (diff)
Merge "Fix armv5te-vfp build." into dalvik-dev
Diffstat (limited to 'vm/compiler/codegen/arm/FP/ThumbVFP.c')
-rw-r--r--vm/compiler/codegen/arm/FP/ThumbVFP.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/vm/compiler/codegen/arm/FP/ThumbVFP.c b/vm/compiler/codegen/arm/FP/ThumbVFP.c
index 18cc38f76..bec54ca77 100644
--- a/vm/compiler/codegen/arm/FP/ThumbVFP.c
+++ b/vm/compiler/codegen/arm/FP/ThumbVFP.c
@@ -158,37 +158,37 @@ static bool genConversion(CompilationUnit *cUnit, MIR *mir)
bool longDest = false;
RegLocation rlSrc;
RegLocation rlDest;
- TemplateOpcode template;
+ TemplateOpcode templateOpcode;
switch (opcode) {
case OP_INT_TO_FLOAT:
longSrc = false;
longDest = false;
- template = TEMPLATE_INT_TO_FLOAT_VFP;
+ templateOpcode = TEMPLATE_INT_TO_FLOAT_VFP;
break;
case OP_FLOAT_TO_INT:
longSrc = false;
longDest = false;
- template = TEMPLATE_FLOAT_TO_INT_VFP;
+ templateOpcode = TEMPLATE_FLOAT_TO_INT_VFP;
break;
case OP_DOUBLE_TO_FLOAT:
longSrc = true;
longDest = false;
- template = TEMPLATE_DOUBLE_TO_FLOAT_VFP;
+ templateOpcode = TEMPLATE_DOUBLE_TO_FLOAT_VFP;
break;
case OP_FLOAT_TO_DOUBLE:
longSrc = false;
longDest = true;
- template = TEMPLATE_FLOAT_TO_DOUBLE_VFP;
+ templateOpcode = TEMPLATE_FLOAT_TO_DOUBLE_VFP;
break;
case OP_INT_TO_DOUBLE:
longSrc = false;
longDest = true;
- template = TEMPLATE_INT_TO_DOUBLE_VFP;
+ templateOpcode = TEMPLATE_INT_TO_DOUBLE_VFP;
break;
case OP_DOUBLE_TO_INT:
longSrc = true;
longDest = false;
- template = TEMPLATE_DOUBLE_TO_INT_VFP;
+ templateOpcode = TEMPLATE_DOUBLE_TO_INT_VFP;
break;
case OP_LONG_TO_DOUBLE:
case OP_FLOAT_TO_LONG:
@@ -212,7 +212,7 @@ static bool genConversion(CompilationUnit *cUnit, MIR *mir)
}
loadValueAddressDirect(cUnit, rlDest, r0);
loadValueAddressDirect(cUnit, rlSrc, r1);
- genDispatchToHandler(cUnit, template);
+ genDispatchToHandler(cUnit, templateOpcode);
if (rlDest.wide) {
rlDest = dvmCompilerUpdateLocWide(cUnit, rlDest);
dvmCompilerClobber(cUnit, rlDest.highReg);
@@ -226,31 +226,31 @@ static bool genConversion(CompilationUnit *cUnit, MIR *mir)
static bool genCmpFP(CompilationUnit *cUnit, MIR *mir, RegLocation rlDest,
RegLocation rlSrc1, RegLocation rlSrc2)
{
- TemplateOpcode template;
+ TemplateOpcode templateOpcode;
RegLocation rlResult = dvmCompilerGetReturn(cUnit);
bool wide = true;
switch(mir->dalvikInsn.opcode) {
case OP_CMPL_FLOAT:
- template = TEMPLATE_CMPL_FLOAT_VFP;
+ templateOpcode = TEMPLATE_CMPL_FLOAT_VFP;
wide = false;
break;
case OP_CMPG_FLOAT:
- template = TEMPLATE_CMPG_FLOAT_VFP;
+ templateOpcode = TEMPLATE_CMPG_FLOAT_VFP;
wide = false;
break;
case OP_CMPL_DOUBLE:
- template = TEMPLATE_CMPL_DOUBLE_VFP;
+ templateOpcode = TEMPLATE_CMPL_DOUBLE_VFP;
break;
case OP_CMPG_DOUBLE:
- template = TEMPLATE_CMPG_DOUBLE_VFP;
+ templateOpcode = TEMPLATE_CMPG_DOUBLE_VFP;
break;
default:
return true;
}
loadValueAddressDirect(cUnit, rlSrc1, r0);
loadValueAddressDirect(cUnit, rlSrc2, r1);
- genDispatchToHandler(cUnit, template);
+ genDispatchToHandler(cUnit, templateOpcode);
storeValue(cUnit, rlDest, rlResult);
return false;
}