]> granicus.if.org Git - llvm/commitdiff
[X86] Add the test case for r315613 that I forgot to 'git add'.
authorCraig Topper <craig.topper@intel.com>
Fri, 13 Oct 2017 00:20:47 +0000 (00:20 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 13 Oct 2017 00:20:47 +0000 (00:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315649 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/clwb.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/clwb.ll b/test/CodeGen/X86/clwb.ll
new file mode 100644 (file)
index 0000000..fe11383
--- /dev/null
@@ -0,0 +1,13 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=clwb | FileCheck %s
+
+define void @clwb(i8* %p) nounwind {
+; CHECK-LABEL: clwb:
+; CHECK:       ## BB#0:
+; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT:    clwb (%eax)
+; CHECK-NEXT:    retl
+  tail call void @llvm.x86.clwb(i8* %p)
+  ret void
+}
+declare void @llvm.x86.clwb(i8*) nounwind