summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/mfence.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/mfence.ll')
-rw-r--r--test/CodeGen/X86/mfence.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/mfence.ll b/test/CodeGen/X86/mfence.ll
new file mode 100644
index 00000000000..6056adddcb4
--- /dev/null
+++ b/test/CodeGen/X86/mfence.ll
@@ -0,0 +1,8 @@
+; 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
+
+define void @test() {
+ fence seq_cst
+ ret void
+}