]> begriffs open source - cmsis/blob - CMSIS/Core/Test/revsh.c
Add LLVM LIT/FileCheck tests for Core files
[cmsis] / CMSIS / Core / Test / revsh.c
1 // RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
2
3 #include "cmsis_compiler.h"
4
5 static volatile uint32_t a = 10u;
6
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