summaryrefslogtreecommitdiffstats
path: root/compiler/utils
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-09-30 10:56:14 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2014-09-30 12:28:09 -0700
commitf889267adadd62c92d1d3726764598946a961c10 (patch)
treeaa58586aa076fa9766f5c355711ec8cbaaee5d75 /compiler/utils
parentbafedc3424c3660d5d5e3ef190b3ac8313a5a59e (diff)
downloadart-f889267adadd62c92d1d3726764598946a961c10.zip
art-f889267adadd62c92d1d3726764598946a961c10.tar.gz
art-f889267adadd62c92d1d3726764598946a961c10.tar.bz2
Fix x86_64 assembler LoadRef to use movl.
As references are 32-bit, we should use movl instead movq. Change-Id: Iffefbb9d86d5f40375f73994fd481f9bd28499b2
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/x86_64/assembler_x86_64.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/x86_64/assembler_x86_64.cc b/compiler/utils/x86_64/assembler_x86_64.cc
index 1dcd4b3..f432e66 100644
--- a/compiler/utils/x86_64/assembler_x86_64.cc
+++ b/compiler/utils/x86_64/assembler_x86_64.cc
@@ -1991,7 +1991,7 @@ void X86_64Assembler::LoadRef(ManagedRegister mdest, ManagedRegister base,
MemberOffset offs) {
X86_64ManagedRegister dest = mdest.AsX86_64();
CHECK(dest.IsCpuRegister() && dest.IsCpuRegister());
- movq(dest.AsCpuRegister(), Address(base.AsX86_64().AsCpuRegister(), offs));
+ movl(dest.AsCpuRegister(), Address(base.AsX86_64().AsCpuRegister(), offs));
if (kPoisonHeapReferences) {
negl(dest.AsCpuRegister());
}