diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-09-30 10:56:14 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-09-30 12:28:09 -0700 |
commit | f889267adadd62c92d1d3726764598946a961c10 (patch) | |
tree | aa58586aa076fa9766f5c355711ec8cbaaee5d75 /compiler/utils | |
parent | bafedc3424c3660d5d5e3ef190b3ac8313a5a59e (diff) | |
download | art-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.cc | 2 |
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()); } |