[Builtin][ARM] Fix test case for uldivmod

Summary: the inline asm should set those clobbered registers.

Reviewers: rengolin, compnerd, jroelofs

Reviewed By: jroelofs

Subscribers: aemerson, llvm-commits

Differential Revision: https://reviews.llvm.org/D30811

llvm-svn: 297487
This commit is contained in:
Weiming Zhao 2017-03-10 18:21:34 +00:00
parent e54cd65399
commit 9dd49054fa
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ int test_aeabi_uldivmod(du_int a, du_int b, du_int expected_q, du_int expected_r
"movs %R[r], r3\n"
: [q] "=r" (q), [r] "=r"(r)
: [a] "r"(a), [b] "r"(b)
: "lr", "r0", "r1", "r2", "r3"
);
if (q != expected_q || r != expected_r)
printf("error in aeabi_uldivmod: %llX / %llX = %llX, R = %llX, expected %llX, %llX\n",