// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s #include "cmsis_compiler.h" static volatile uint32_t a = 10u; static volatile uint32_t b = 2u; void ror() { // CHECK-LABEL: : // CHECK-THUMB: ror{{s|.w}} {{r[0-9]+}}, {{r[0-9]+}} // CHECK-ARM: ror {{r[0-9]+}}, {{r[0-9]+}}, {{r[0-9]+}} volatile uint32_t c = __ROR(a, b); // CHECK: {{(bx lr)|(pop {.*pc})}} }