2 // RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
4 #include "cmsis_compiler.h"
6 static volatile uint8_t v8;
7 static volatile uint16_t v16;
8 static volatile uint32_t v32;
11 // CHECK-LABEL: <stlexb>:
12 // CHECK: stlexb {{r[0-9]+}}, {{r[0-9]+}}, [{{r[0-9]+}}]
13 volatile uint32_t result = __STLEXB(0x7u, &v8);
14 // CHECK: {{(bx lr)|(pop {.*pc})}}
18 // CHECK-LABEL: <stlexh>:
19 // CHECK: stlexh {{r[0-9]+}}, {{r[0-9]+}}, [{{r[0-9]+}}]
20 volatile uint32_t result = __STLEXH(0x7u, &v16);
21 // CHECK: {{(bx lr)|(pop {.*pc})}}
25 // CHECK-LABEL: <stlex>:
26 // CHECK: stlex {{r[0-9]+}}, {{r[0-9]+}}, [{{r[0-9]+}}]
27 volatile uint32_t result = __STLEX(0x7u, &v32);
28 // CHECK: {{(bx lr)|(pop {.*pc})}}