summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/clflushopt.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/clflushopt.ll')
-rw-r--r--test/CodeGen/X86/clflushopt.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/clflushopt.ll b/test/CodeGen/X86/clflushopt.ll
new file mode 100644
index 0000000000000..ee416eb96c5e5
--- /dev/null
+++ b/test/CodeGen/X86/clflushopt.ll
@@ -0,0 +1,13 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=clflushopt | FileCheck %s
+
+define void @clflushopt(i8* %p) nounwind {
+; CHECK-LABEL: clflushopt:
+; CHECK: ## BB#0:
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: clflushopt (%eax)
+; CHECK-NEXT: retl
+ tail call void @llvm.x86.clflushopt(i8* %p)
+ ret void
+}
+declare void @llvm.x86.clflushopt(i8*) nounwind