提交 21ee4526 编写于 作者: T tfx2001 提交者: mysterywolf

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

上级 1f134b8d
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册