From 19a3d8702981d8c01fdbdba992be51867ada3212 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 13 Oct 2017 00:20:47 +0000 Subject: [PATCH] [X86] Add the test case for r315613 that I forgot to 'git add'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315649 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/clwb.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeGen/X86/clwb.ll diff --git a/test/CodeGen/X86/clwb.ll b/test/CodeGen/X86/clwb.ll new file mode 100644 index 00000000000..fe11383481a --- /dev/null +++ b/test/CodeGen/X86/clwb.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=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 -- 2.50.1