1 // REQUIRES: thumb-2
2 // 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 
4 #include "cmsis_compiler.h"
5 
6 static volatile uint32_t a = 10u;
7 
rbit()8 void rbit() {
9     // CHECK-LABEL: <rbit>:
10     // CHECK: rbit {{r[0-9]+}}, {{r[0-9]+}}
11     volatile uint32_t c = __RBIT(a);
12     // CHECK: {{(bx lr)|(pop {.*pc})}}
13 }
14 
15