xref: /aosp_15_r20/external/llvm/test/CodeGen/Thumb/barrier.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv6-apple-darwin %s -o - | FileCheck %s -check-prefix=V6
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-apple-darwin -mattr=-db %s -o - | FileCheck %s -check-prefix=V6
3*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-m0 %s -o - | FileCheck %s -check-prefix=V6M
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @t1() {
6*9880d681SAndroid Build Coastguard Worker; V6-LABEL: t1:
7*9880d681SAndroid Build Coastguard Worker; V6: bl {{_*}}sync_synchronize
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; V6M-LABEL: t1:
10*9880d681SAndroid Build Coastguard Worker; V6M: dmb sy
11*9880d681SAndroid Build Coastguard Worker  fence seq_cst
12*9880d681SAndroid Build Coastguard Worker  ret void
13*9880d681SAndroid Build Coastguard Worker}
14