diff options
| author | xieyangrun <[email protected]> | 2020-06-18 09:18:48 +0800 |
|---|---|---|
| committer | xieyangrun <[email protected]> | 2020-06-18 09:19:10 +0800 |
| commit | d2eaa452d652c205aef16ee7385cb1a5d188c942 (patch) | |
| tree | 48980590438bd9ab9abbf3d97b36af7c5013768c /libcpu/arm/cortex-m3 | |
| parent | d7d6dbe774e6d497a235984b9247f1aa4a86d83a (diff) | |
[libcpu/arm/*/cpuport.c]fixed __rt_ffs bug on account of armclang LTO.
Diffstat (limited to 'libcpu/arm/cortex-m3')
| -rw-r--r-- | libcpu/arm/cortex-m3/cpuport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/cortex-m3/cpuport.c b/libcpu/arm/cortex-m3/cpuport.c index d17d4fdf2e..d58782e2c5 100644 --- a/libcpu/arm/cortex-m3/cpuport.c +++ b/libcpu/arm/cortex-m3/cpuport.c @@ -388,13 +388,13 @@ int __rt_ffs(int value) { __asm volatile( "CMP r0, #0x00 \n" - "BEQ exit \n" + "BEQ 1f \n" "RBIT r0, r0 \n" "CLZ r0, r0 \n" "ADDS r0, r0, #0x01 \n" - "exit: \n" + "1: \n" : "=r"(value) : "r"(value) |
