summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/GenInvoke.cc
diff options
context:
space:
mode:
author jeffhao <jeffhao@google.com> 2012-08-02 15:55:30 -0700
committer jeffhao <jeffhao@google.com> 2012-08-02 15:57:46 -0700
commitbabda950caf2d577aa57102c3281f0f3c36f3d6d (patch)
tree469a16ecb709ab0bad151f01bb15253be0d9512e /src/compiler/codegen/GenInvoke.cc
parent8302576126efae240eb21c7545cda7982437bd26 (diff)
Populate call info and inline float/double conversions on x86.
Also cleaned up neg-float/neg-double implementation. Change-Id: I8e7fe76e36d3c31bae0a82a956691202c09b8e0c
Diffstat (limited to 'src/compiler/codegen/GenInvoke.cc')
-rw-r--r--src/compiler/codegen/GenInvoke.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/codegen/GenInvoke.cc b/src/compiler/codegen/GenInvoke.cc
index e6714aa807..9f1d58e304 100644
--- a/src/compiler/codegen/GenInvoke.cc
+++ b/src/compiler/codegen/GenInvoke.cc
@@ -752,7 +752,7 @@ bool genInlinedAbsLong(CompilationUnit *cUnit, CallInfo* info)
bool genInlinedFloatCvt(CompilationUnit *cUnit, CallInfo* info)
{
-#if defined(TARGET_ARM)
+#if defined(TARGET_ARM) || defined(TARGET_X86)
RegLocation rlSrc = info->args[0];
RegLocation rlDest = inlineTarget(cUnit, info);
storeValue(cUnit, rlDest, rlSrc);
@@ -764,7 +764,7 @@ bool genInlinedFloatCvt(CompilationUnit *cUnit, CallInfo* info)
bool genInlinedDoubleCvt(CompilationUnit *cUnit, CallInfo* info)
{
-#if defined(TARGET_ARM)
+#if defined(TARGET_ARM) || defined(TARGET_X86)
RegLocation rlSrc = info->args[0];
RegLocation rlDest = inlineTargetWide(cUnit, info);
storeValueWide(cUnit, rlDest, rlSrc);