diff options
| author | tfx2001 <[email protected]> | 2022-08-11 14:45:43 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-08-11 08:35:42 -0400 |
| commit | 21ee452661d754848e7975ad41fb8da7bedb54ae (patch) | |
| tree | ec87734cfb1701c43fed0dfbf04e28bbaee43f40 /libcpu/arm/cortex-m3 | |
| parent | 1f134b8dc46d16bd26a58ac08f430a524d23a45a (diff) | |
[libcpu][arm] fix armclang error when enable LTO
Diffstat (limited to 'libcpu/arm/cortex-m3')
| -rw-r--r-- | libcpu/arm/cortex-m3/cpuport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcpu/arm/cortex-m3/cpuport.c b/libcpu/arm/cortex-m3/cpuport.c index 66e2aa4809..0f09930554 100644 --- a/libcpu/arm/cortex-m3/cpuport.c +++ b/libcpu/arm/cortex-m3/cpuport.c @@ -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" |
