mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +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
|
||
|
}
|