summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-04-19 17:50:42 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-04-19 17:50:42 +0000
commitbdadd87c4de95b38d5ff7d7370c7a1f88a6669c3 (patch)
treeeaebcbdf93851d796ad81979586981bb662aae9c /compiler-rt
parent165361044941232faa26ed98574014d093b47ed9 (diff)
downloadbcm5719-llvm-bdadd87c4de95b38d5ff7d7370c7a1f88a6669c3.tar.gz
bcm5719-llvm-bdadd87c4de95b38d5ff7d7370c7a1f88a6669c3.zip
Make use of LOCAL_LABEL macro
llvm-svn: 129767
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/arm/udivmodsi4.S10
-rw-r--r--compiler-rt/lib/arm/udivsi3.S10
-rw-r--r--compiler-rt/lib/arm/umodsi3.S4
3 files changed, 12 insertions, 12 deletions
diff --git a/compiler-rt/lib/arm/udivmodsi4.S b/compiler-rt/lib/arm/udivmodsi4.S
index a2bda6312f8..d164a751d08 100644
--- a/compiler-rt/lib/arm/udivmodsi4.S
+++ b/compiler-rt/lib/arm/udivmodsi4.S
@@ -42,12 +42,12 @@ DEFINE_COMPILERRT_FUNCTION(__udivmodsi4)
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 @@ L_mainLoop:
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 @@ L_mainLoop:
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
diff --git a/compiler-rt/lib/arm/udivsi3.S b/compiler-rt/lib/arm/udivsi3.S
index d721b6299b1..59a71b0b2e4 100644
--- a/compiler-rt/lib/arm/udivsi3.S
+++ b/compiler-rt/lib/arm/udivsi3.S
@@ -42,12 +42,12 @@ DEFINE_COMPILERRT_FUNCTION(__udivsi3)
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 @@ L_mainLoop:
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
diff --git a/compiler-rt/lib/arm/umodsi3.S b/compiler-rt/lib/arm/umodsi3.S
index e3e391bafcf..3a2ab2b8775 100644
--- a/compiler-rt/lib/arm/umodsi3.S
+++ b/compiler-rt/lib/arm/umodsi3.S
@@ -33,7 +33,7 @@ DEFINE_COMPILERRT_FUNCTION(__umodsi3)
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 @@ L_mainLoop:
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.
OpenPOWER on IntegriCloud