1 ; RUN: llc < %s -mtriple=thumbv7m-none-eabi -mcpu=cortex-m4 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V7
2 ; RUN: llc < %s -mtriple=thumbv8m.main-none-eabi | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V8
3 ; RUN: llc < %s -mtriple=thumbv8m.base-none-eabi | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V8
7 define i64 @f0(ptr %p) nounwind readonly {
9 %0 = load atomic i64, ptr %p seq_cst, align 8
15 define void @f1(ptr %p) nounwind readonly {
17 store atomic i64 0, ptr %p seq_cst, align 8
24 define i64 @f2(ptr %p) nounwind readonly {
26 %0 = atomicrmw add ptr %p, i64 1 seq_cst
33 define i32 @f3(ptr %p) nounwind readonly {
35 %0 = load atomic i32, ptr %p seq_cst, align 4
42 define i8 @f4(ptr %p) nounwind readonly {
44 %0 = load atomic i8, ptr %p seq_cst, align 4
51 define void @f5(ptr %p) nounwind readonly {
53 store atomic i32 0, ptr %p seq_cst, align 4
62 define i32 @f6(ptr %p) nounwind readonly {
64 %0 = atomicrmw add ptr %p, i32 1 seq_cst