1 ; RUN: llc < %s -mtriple=thumbv7m-none-eabi -mcpu=cortex-m4 | FileCheck %s
5 define i64 @f0(i64* %p) nounwind readonly {
7 %0 = load atomic i64, i64* %p seq_cst, align 8
13 define void @f1(i64* %p) nounwind readonly {
15 store atomic i64 0, i64* %p seq_cst, align 8
22 define i64 @f2(i64* %p) nounwind readonly {
24 %0 = atomicrmw add i64* %p, i64 1 seq_cst
30 define i32 @f3(i32* %p) nounwind readonly {
32 %0 = load atomic i32, i32* %p seq_cst, align 4
38 define i8 @f4(i8* %p) nounwind readonly {
40 %0 = load atomic i8, i8* %p seq_cst, align 4
46 define void @f5(i32* %p) nounwind readonly {
48 store atomic i32 0, i32* %p seq_cst, align 4
55 define i32 @f6(i32* %p) nounwind readonly {
57 %0 = atomicrmw add i32* %p, i32 1 seq_cst