[llvm-commits] [compiler-rt] r129767 - in /compiler-rt/trunk/lib/arm: udivmodsi4.S udivsi3.S umodsi3.S
Anton Korobeynikov
asl at math.spbu.ru
Tue Apr 19 10:50:42 PDT 2011
Author: asl
Date: Tue Apr 19 12:50:42 2011
New Revision: 129767
URL: http://llvm.org/viewvc/llvm-project?rev=129767&view=rev
Log:
Make use of LOCAL_LABEL macro
Modified:
compiler-rt/trunk/lib/arm/udivmodsi4.S
compiler-rt/trunk/lib/arm/udivsi3.S
compiler-rt/trunk/lib/arm/umodsi3.S
Modified: compiler-rt/trunk/lib/arm/udivmodsi4.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/arm/udivmodsi4.S?rev=129767&r1=129766&r2=129767&view=diff
==============================================================================
--- compiler-rt/trunk/lib/arm/udivmodsi4.S (original)
+++ compiler-rt/trunk/lib/arm/udivmodsi4.S Tue Apr 19 12:50:42 2011
@@ -42,12 +42,12 @@
tst b, b // detect divide-by-zero
clz r3, b
mov q, #0
- beq L_return // return 0 if b is zero.
+ beq LOCAL_LABEL(return) // return 0 if b is zero.
mov one, #1
subs i, r3, r4
- blt L_return // return 0 if MSB(a) < MSB(b)
+ blt LOCAL_LABEL(return) // return 0 if MSB(a) < MSB(b)
-L_mainLoop:
+LOCAL_LABEL(mainLoop):
// This loop basically implements the following:
//
// do {
@@ -65,7 +65,7 @@
orrhs q, q,one, lsl i
movhs a, r
subsne i, i, #1
- bhi L_mainLoop
+ bhi LOCAL_LABEL(mainLoop)
// Do the final test subtraction and update of quotient (i == 0), as it is
// not performed in the main loop.
@@ -73,7 +73,7 @@
orrhs q, #1
movhs a, r
-L_return:
+LOCAL_LABEL(return):
// Store the remainder, and move the quotient to r0, then return.
str a, [r2]
mov r0, q
Modified: compiler-rt/trunk/lib/arm/udivsi3.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/arm/udivsi3.S?rev=129767&r1=129766&r2=129767&view=diff
==============================================================================
--- compiler-rt/trunk/lib/arm/udivsi3.S (original)
+++ compiler-rt/trunk/lib/arm/udivsi3.S Tue Apr 19 12:50:42 2011
@@ -42,12 +42,12 @@
tst b, b // detect divide-by-zero
clz r3, b
mov q, #0
- beq L_return // return 0 if b is zero.
+ beq LOCAL_LABEL(return) // return 0 if b is zero.
mov one, #1
subs i, r3, r2
- blt L_return // return 0 if MSB(a) < MSB(b)
+ blt LOCAL_LABEL(return) // return 0 if MSB(a) < MSB(b)
-L_mainLoop:
+LOCAL_LABEL(mainLoop):
// This loop basically implements the following:
//
// do {
@@ -65,14 +65,14 @@
orrhs q, q,one, lsl i
movhs a, r
subsne i, i, #1
- bhi L_mainLoop
+ bhi LOCAL_LABEL(mainLoop)
// Do the final test subtraction and update of quotient (i == 0), as it is
// not performed in the main loop.
subs r, a, b
orrhs q, #1
-L_return:
+LOCAL_LABEL(return):
// Move the quotient to r0 and return.
mov r0, q
CLEAR_FRAME_AND_RETURN
Modified: compiler-rt/trunk/lib/arm/umodsi3.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/arm/umodsi3.S?rev=129767&r1=129766&r2=129767&view=diff
==============================================================================
--- compiler-rt/trunk/lib/arm/umodsi3.S (original)
+++ compiler-rt/trunk/lib/arm/umodsi3.S Tue Apr 19 12:50:42 2011
@@ -33,7 +33,7 @@
subs i, r3, r2
bxlt lr // return a if MSB(a) < MSB(b)
-L_mainLoop:
+LOCAL_LABEL(mainLoop):
// This loop basically implements the following:
//
// do {
@@ -49,7 +49,7 @@
subs r, a, b, lsl i
movhs a, r
subsne i, i, #1
- bhi L_mainLoop
+ bhi LOCAL_LABEL(mainLoop)
// Do the final test subtraction and update of remainder (i == 0), as it is
// not performed in the main loop.
More information about the llvm-commits
mailing list