[PATCH] D30811: [Builtin][ARM] Fix test case for uldivmod

Weiming Zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 10 00:15:48 PST 2017


weimingz created this revision.
Herald added a subscriber: aemerson.

the inline asm should set those clobbered registers.


Repository:
  rL LLVM

https://reviews.llvm.org/D30811

Files:
  test/builtins/Unit/arm/aeabi_uldivmod_test.c


Index: test/builtins/Unit/arm/aeabi_uldivmod_test.c
===================================================================
--- test/builtins/Unit/arm/aeabi_uldivmod_test.c
+++ test/builtins/Unit/arm/aeabi_uldivmod_test.c
@@ -34,6 +34,7 @@
         "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",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30811.91273.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170310/fa71a8e0/attachment.bin>


More information about the llvm-commits mailing list