[libcpu][arm] fix armclang error when enable LTO

This commit is contained in:
tfx2001 2022-08-11 14:45:43 +08:00 committed by Man, Jianting (Meco)
parent 1f134b8dc4
commit 21ee452661
3 changed files with 11 additions and 11 deletions

View File

@ -389,12 +389,12 @@ exit
int __rt_ffs(int value)
{
__asm volatile(
"CMP r0, #0x00 \n"
"CMP %1, #0x00 \n"
"BEQ 1f \n"
"RBIT r0, r0 \n"
"CLZ r0, r0 \n"
"ADDS r0, r0, #0x01 \n"
"RBIT %1, %1 \n"
"CLZ %0, %1 \n"
"ADDS %0, %0, #0x01 \n"
"1: \n"

View File

@ -474,11 +474,11 @@ exit
int __rt_ffs(int value)
{
__asm volatile(
"CMP %0, #0x00 \n"
"CMP %1, #0x00 \n"
"BEQ 1f \n"
"RBIT %0, %0 \n"
"CLZ %0, %0 \n"
"RBIT %1, %1 \n"
"CLZ %0, %1 \n"
"ADDS %0, %0, #0x01 \n"
"1: \n"

View File

@ -473,12 +473,12 @@ exit
int __rt_ffs(int value)
{
__asm volatile(
"CMP r0, #0x00 \n"
"CMP %1, #0x00 \n"
"BEQ 1f \n"
"RBIT r0, r0 \n"
"CLZ r0, r0 \n"
"ADDS r0, r0, #0x01 \n"
"RBIT %1, %1 \n"
"CLZ %0, %1 \n"
"ADDS %0, %0, #0x01 \n"
"1: \n"