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