diff options
Diffstat (limited to 'test/CodeGen/X86/lfence.ll')
-rw-r--r-- | test/CodeGen/X86/lfence.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/lfence.ll b/test/CodeGen/X86/lfence.ll new file mode 100644 index 0000000..7a96ca3 --- /dev/null +++ b/test/CodeGen/X86/lfence.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=x86 -mattr=+sse2 | grep lfence + +declare void @llvm.memory.barrier( i1 , i1 , i1 , i1 , i1) + +define void @test() { + call void @llvm.memory.barrier( i1 true, i1 false, i1 false, i1 false, i1 true) + ret void +} |