1 // 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
3 #include "cmsis_compiler.h"
5 static volatile uint32_t a = 10u;
6 static volatile uint32_t b = 2u;
10 // CHECK-THUMB: ror{{ne|s|.w}} {{r[0-9]+}}, {{r[0-9]+}}
11 // CHECK-ARM: {{ror|rorne}} {{r[0-9]+}}, {{r[0-9]+}}, {{r[0-9]+}}
12 volatile uint32_t c = __ROR(a, b);
13 // CHECK: {{(bx lr)|(pop {.*pc})}}