1 ; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s -check-prefix=V6
2 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=-db | FileCheck %s -check-prefix=V6
3 ; RUN: llc < %s -march=thumb -mcpu=cortex-m0 | FileCheck %s -check-prefix=V6M
5 declare void @llvm.memory.barrier(i1 , i1 , i1 , i1 , i1)
9 ; V6: blx {{_*}}sync_synchronize
13 call void @llvm.memory.barrier(i1 false, i1 false, i1 false, i1 true, i1 true)
19 ; V6: blx {{_*}}sync_synchronize
23 call void @llvm.memory.barrier(i1 true, i1 false, i1 false, i1 true, i1 false)