diff options
-rw-r--r-- | runtime/arch/stub_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/arch/stub_test.cc b/runtime/arch/stub_test.cc index cf7db34ca1..195b3b3d65 100644 --- a/runtime/arch/stub_test.cc +++ b/runtime/arch/stub_test.cc @@ -126,7 +126,7 @@ class StubTest : public CommonRuntimeTest { // Use the result from r0 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), [referrer] "r"(referrer) - : "memory"); // clobber. + : "r0", "memory"); // clobber. #elif defined(__aarch64__) __asm__ __volatile__( // Spill x0-x7 which we say we don't clobber. May contain args. @@ -479,7 +479,7 @@ class StubTest : public CommonRuntimeTest { // Use the result from r0 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), [referrer] "r"(referrer), [hidden] "r"(hidden) - : "memory"); // clobber. + : "r0", "memory"); // clobber. #elif defined(__aarch64__) __asm__ __volatile__( // Spill x0-x7 which we say we don't clobber. May contain args. |