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

This commit is contained in:
tfx2001
2022-08-11 08:35:42 -04:00
committed by Man, Jianting (Meco)
parent 1f134b8dc4
commit 21ee452661
3 changed files with 11 additions and 11 deletions
+3 -3
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"