Skip to content

Commit

Permalink
[Builtin][ARM] Fix test case for uldivmod
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Weiming Zhao committed Mar 10, 2017
1 parent e54cd65 commit 9dd4905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/test/builtins/Unit/arm/aeabi_uldivmod_test.c
Expand Up @@ -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",
Expand Down

0 comments on commit 9dd4905

Please sign in to comment.