From 989d3202bf9e0910e82c2becf88e93fe742e4046 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 7 Dec 2017 15:46:58 +0000 Subject: [PATCH] [X86] Add SALC scheduling test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320052 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/schedule-x86_32.ll | 74 +++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/test/CodeGen/X86/schedule-x86_32.ll b/test/CodeGen/X86/schedule-x86_32.ll index bfe342493cf..e950dc30dbb 100644 --- a/test/CodeGen/X86/schedule-x86_32.ll +++ b/test/CodeGen/X86/schedule-x86_32.ll @@ -516,3 +516,77 @@ define i8 @test_das(i8 %a0) optsize { %1 = tail call i8 asm "das", "=r,r"(i8 %a0) nounwind ret i8 %1 } + +define i8 @test_salc() optsize { +; GENERIC-LABEL: test_salc: +; GENERIC: # %bb.0: +; GENERIC-NEXT: #APP +; GENERIC-NEXT: salc +; GENERIC-NEXT: #NO_APP +; GENERIC-NEXT: retl +; +; ATOM-LABEL: test_salc: +; ATOM: # %bb.0: +; ATOM-NEXT: #APP +; ATOM-NEXT: salc +; ATOM-NEXT: #NO_APP +; ATOM-NEXT: retl # sched: [79:39.50] +; +; SLM-LABEL: test_salc: +; SLM: # %bb.0: +; SLM-NEXT: #APP +; SLM-NEXT: salc +; SLM-NEXT: #NO_APP +; SLM-NEXT: retl # sched: [4:1.00] +; +; SANDY-LABEL: test_salc: +; SANDY: # %bb.0: +; SANDY-NEXT: #APP +; SANDY-NEXT: salc +; SANDY-NEXT: #NO_APP +; SANDY-NEXT: retl # sched: [5:1.00] +; +; HASWELL-LABEL: test_salc: +; HASWELL: # %bb.0: +; HASWELL-NEXT: #APP +; HASWELL-NEXT: salc +; HASWELL-NEXT: #NO_APP +; HASWELL-NEXT: retl # sched: [5:0.50] +; +; BROADWELL-LABEL: test_salc: +; BROADWELL: # %bb.0: +; BROADWELL-NEXT: #APP +; BROADWELL-NEXT: salc +; BROADWELL-NEXT: #NO_APP +; BROADWELL-NEXT: retl # sched: [6:0.50] +; +; SKYLAKE-LABEL: test_salc: +; SKYLAKE: # %bb.0: +; SKYLAKE-NEXT: #APP +; SKYLAKE-NEXT: salc +; SKYLAKE-NEXT: #NO_APP +; SKYLAKE-NEXT: retl # sched: [6:0.50] +; +; SKX-LABEL: test_salc: +; SKX: # %bb.0: +; SKX-NEXT: #APP +; SKX-NEXT: salc +; SKX-NEXT: #NO_APP +; SKX-NEXT: retl # sched: [6:0.50] +; +; BTVER2-LABEL: test_salc: +; BTVER2: # %bb.0: +; BTVER2-NEXT: #APP +; BTVER2-NEXT: salc +; BTVER2-NEXT: #NO_APP +; BTVER2-NEXT: retl # sched: [4:1.00] +; +; ZNVER1-LABEL: test_salc: +; ZNVER1: # %bb.0: +; ZNVER1-NEXT: #APP +; ZNVER1-NEXT: salc +; ZNVER1-NEXT: #NO_APP +; ZNVER1-NEXT: retl # sched: [1:0.50] + %1 = tail call i8 asm "salc", "=r"() nounwind + ret i8 %1 +} -- 2.11.0