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