diff options
author | Andreas Gampe <agampe@google.com> | 2014-05-21 14:39:45 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-05-21 14:39:45 -0700 |
commit | 3ecbbfcae28a5798a86b85e42b0bb0636eb6e060 (patch) | |
tree | b59e71e35c6ca359da7e98f9d36afc87a2eb74a1 /runtime/arch/stub_test.cc | |
parent | 9c47134233b3f191690eb142141de95aeeb62d2a (diff) | |
download | art-3ecbbfcae28a5798a86b85e42b0bb0636eb6e060.zip art-3ecbbfcae28a5798a86b85e42b0bb0636eb6e060.tar.gz art-3ecbbfcae28a5798a86b85e42b0bb0636eb6e060.tar.bz2 |
ART: Fix stub test inline assembly for x86
Clang can handle the register pressure, but GCC can't. Make one
a memory constraint.
Change-Id: I49f048b29f5677449bf6ee6282516462332ee645
Diffstat (limited to 'runtime/arch/stub_test.cc')
-rw-r--r-- | runtime/arch/stub_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/arch/stub_test.cc b/runtime/arch/stub_test.cc index 667feff..fac9883 100644 --- a/runtime/arch/stub_test.cc +++ b/runtime/arch/stub_test.cc @@ -304,7 +304,7 @@ class StubTest : public CommonRuntimeTest { "addl $4, %%esp" // Pop referrer : "=a" (result) // Use the result from eax - : "a"(arg0), "c"(arg1), "d"(arg2), "D"(code), [referrer]"r"(referrer), [hidden]"r"(hidden) + : "a"(arg0), "c"(arg1), "d"(arg2), "D"(code), [referrer]"m"(referrer), [hidden]"r"(hidden) // This places code into edi, arg0 into eax, arg1 into ecx, and arg2 into edx : ); // clobber. // TODO: Should we clobber the other registers? EBX gets clobbered by some of the stubs, |