From 45202df55e9b6b85cf369008b1773923b381f4a0 Mon Sep 17 00:00:00 2001 From: Shrikant Tudavekar Date: Mon, 11 Sep 2017 20:09:19 -0500 Subject: [PATCH] gaurd thumb instruction for amrc6 --- TESTS/mbed_hal/flash/functional_tests/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TESTS/mbed_hal/flash/functional_tests/main.cpp b/TESTS/mbed_hal/flash/functional_tests/main.cpp index 40ab6341a0..b6fa8cf740 100644 --- a/TESTS/mbed_hal/flash/functional_tests/main.cpp +++ b/TESTS/mbed_hal/flash/functional_tests/main.cpp @@ -80,7 +80,7 @@ static void delay_loop(uint32_t count) { __asm__ volatile ( "%=:\n\t" -#if defined(__thumb__) && !defined(__thumb2__) +#if defined(__thumb__) && !defined(__thumb2__) && !defined(TOOLCHAIN_ARMC6) "SUB %0, #1\n\t" #else "SUBS %0, %0, #1\n\t"