gaurd thumb instruction for amrc6

pull/5073/head
Shrikant Tudavekar 2017-09-11 20:09:19 -05:00
parent 4b9856604d
commit 45202df55e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static void delay_loop(uint32_t count)
{ {
__asm__ volatile ( __asm__ volatile (
"%=:\n\t" "%=:\n\t"
#if defined(__thumb__) && !defined(__thumb2__) #if defined(__thumb__) && !defined(__thumb2__) && !defined(TOOLCHAIN_ARMC6)
"SUB %0, #1\n\t" "SUB %0, #1\n\t"
#else #else
"SUBS %0, %0, #1\n\t" "SUBS %0, %0, #1\n\t"