[llvm] r320644 - [X86] Add CLWB schedule test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 14:09:09 PST 2017
Author: rksimon
Date: Wed Dec 13 14:09:09 2017
New Revision: 320644
URL: http://llvm.org/viewvc/llvm-project?rev=320644&view=rev
Log:
[X86] Add CLWB schedule test
Added:
llvm/trunk/test/CodeGen/X86/clwb-schedule.ll
Added: llvm/trunk/test/CodeGen/X86/clwb-schedule.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/clwb-schedule.ll?rev=320644&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/clwb-schedule.ll (added)
+++ llvm/trunk/test/CodeGen/X86/clwb-schedule.ll Wed Dec 13 14:09:09 2017
@@ -0,0 +1,18 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=x86-64 -mattr=+clwb | FileCheck %s --check-prefix=GENERIC
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=SKX
+
+define void @clwb(i8* %a0) nounwind {
+; GENERIC-LABEL: clwb:
+; GENERIC: # %bb.0:
+; GENERIC-NEXT: clwb (%rdi) # sched: [4:0.50]
+; GENERIC-NEXT: retq # sched: [1:1.00]
+;
+; SKX-LABEL: clwb:
+; SKX: # %bb.0:
+; SKX-NEXT: clwb (%rdi) # sched: [5:0.50]
+; SKX-NEXT: retq # sched: [7:1.00]
+ tail call void @llvm.x86.clwb(i8* %a0)
+ ret void
+}
+declare void @llvm.x86.clwb(i8*) nounwind
More information about the llvm-commits
mailing list