Skip to content

Commit 45202df

Browse files
author
Shrikant Tudavekar
committed
gaurd thumb instruction for amrc6
1 parent 4b98566 commit 45202df

File tree

1 file changed

+1
-1
lines changed
  • TESTS/mbed_hal/flash/functional_tests

1 file changed

+1
-1
lines changed

TESTS/mbed_hal/flash/functional_tests/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void delay_loop(uint32_t count)
8080
{
8181
__asm__ volatile (
8282
"%=:\n\t"
83-
#if defined(__thumb__) && !defined(__thumb2__)
83+
#if defined(__thumb__) && !defined(__thumb2__) && !defined(TOOLCHAIN_ARMC6)
8484
"SUB %0, #1\n\t"
8585
#else
8686
"SUBS %0, %0, #1\n\t"

0 commit comments

Comments
 (0)