mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-08 04:52:50 +00:00
18 lines
408 B
LLVM
18 lines
408 B
LLVM
|
; RUN: llc < %s -march=thumb -mcpu=cortex-a8 | FileCheck %s
|
||
|
|
||
|
declare void @llvm.memory.barrier( i1 , i1 , i1 , i1 , i1 )
|
||
|
|
||
|
define void @t1() {
|
||
|
; CHECK: t1:
|
||
|
; CHECK: dsb
|
||
|
call void @llvm.memory.barrier( i1 false, i1 false, i1 false, i1 true, i1 true )
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
define void @t2() {
|
||
|
; CHECK: t2:
|
||
|
; CHECK: dmb
|
||
|
call void @llvm.memory.barrier( i1 false, i1 false, i1 false, i1 true, i1 false )
|
||
|
ret void
|
||
|
}
|