mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
916 B
LLVM
21 lines
916 B
LLVM
; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep sfence
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep lfence
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | grep mfence
|
|
|
|
|
|
declare void @llvm.memory.barrier( i1 , i1 , i1 , i1 , i1)
|
|
|
|
define void @test() {
|
|
call void @llvm.memory.barrier( i1 true, i1 true, i1 false, i1 false, i1 true)
|
|
call void @llvm.memory.barrier( i1 true, i1 false, i1 true, i1 false, i1 true)
|
|
call void @llvm.memory.barrier( i1 true, i1 false, i1 false, i1 true, i1 true)
|
|
|
|
call void @llvm.memory.barrier( i1 true, i1 true, i1 true, i1 false, i1 true)
|
|
call void @llvm.memory.barrier( i1 true, i1 true, i1 false, i1 true, i1 true)
|
|
call void @llvm.memory.barrier( i1 true, i1 false, i1 true, i1 true, i1 true)
|
|
|
|
call void @llvm.memory.barrier( i1 true, i1 true, i1 true, i1 true , i1 true)
|
|
call void @llvm.memory.barrier( i1 false, i1 false, i1 false, i1 false , i1 true)
|
|
ret void
|
|
}
|