forked from OSchip/llvm-project
[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:
parent
e54cd65399
commit
9dd49054fa
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue