From 67644be6924c9a710260ec493366c13b95262c8e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 11 Dec 2017 16:32:58 +0000 Subject: [PATCH] [X86] Add INT/INTO schedule tests llvm-svn: 320386 --- llvm/test/CodeGen/X86/schedule-x86_32.ll | 74 +++++++++++++++++++++++ llvm/test/CodeGen/X86/schedule-x86_64.ll | 75 +++++++++++++++++++++++- 2 files changed, 147 insertions(+), 2 deletions(-) diff --git a/llvm/test/CodeGen/X86/schedule-x86_32.ll b/llvm/test/CodeGen/X86/schedule-x86_32.ll index 1e7b9c76a358..0d7f0cda46d2 100644 --- a/llvm/test/CodeGen/X86/schedule-x86_32.ll +++ b/llvm/test/CodeGen/X86/schedule-x86_32.ll @@ -931,6 +931,80 @@ define void @test_inc32(i32 %a0, i32* %a1) optsize { ret void } +define void @test_into() optsize { +; GENERIC-LABEL: test_into: +; GENERIC: # %bb.0: +; GENERIC-NEXT: #APP +; GENERIC-NEXT: into +; GENERIC-NEXT: #NO_APP +; GENERIC-NEXT: retl +; +; ATOM-LABEL: test_into: +; ATOM: # %bb.0: +; ATOM-NEXT: #APP +; ATOM-NEXT: into +; ATOM-NEXT: #NO_APP +; ATOM-NEXT: retl # sched: [79:39.50] +; +; SLM-LABEL: test_into: +; SLM: # %bb.0: +; SLM-NEXT: #APP +; SLM-NEXT: into # sched: [100:1.00] +; SLM-NEXT: #NO_APP +; SLM-NEXT: retl # sched: [4:1.00] +; +; SANDY-LABEL: test_into: +; SANDY: # %bb.0: +; SANDY-NEXT: #APP +; SANDY-NEXT: into # sched: [100:0.33] +; SANDY-NEXT: #NO_APP +; SANDY-NEXT: retl # sched: [5:1.00] +; +; HASWELL-LABEL: test_into: +; HASWELL: # %bb.0: +; HASWELL-NEXT: #APP +; HASWELL-NEXT: into # sched: [1:?] +; HASWELL-NEXT: #NO_APP +; HASWELL-NEXT: retl # sched: [7:1.00] +; +; BROADWELL-LABEL: test_into: +; BROADWELL: # %bb.0: +; BROADWELL-NEXT: #APP +; BROADWELL-NEXT: into # sched: [100:0.25] +; BROADWELL-NEXT: #NO_APP +; BROADWELL-NEXT: retl # sched: [6:0.50] +; +; SKYLAKE-LABEL: test_into: +; SKYLAKE: # %bb.0: +; SKYLAKE-NEXT: #APP +; SKYLAKE-NEXT: into # sched: [100:0.25] +; SKYLAKE-NEXT: #NO_APP +; SKYLAKE-NEXT: retl # sched: [6:0.50] +; +; SKX-LABEL: test_into: +; SKX: # %bb.0: +; SKX-NEXT: #APP +; SKX-NEXT: into # sched: [100:0.25] +; SKX-NEXT: #NO_APP +; SKX-NEXT: retl # sched: [6:0.50] +; +; BTVER2-LABEL: test_into: +; BTVER2: # %bb.0: +; BTVER2-NEXT: #APP +; BTVER2-NEXT: into # sched: [100:0.17] +; BTVER2-NEXT: #NO_APP +; BTVER2-NEXT: retl # sched: [4:1.00] +; +; ZNVER1-LABEL: test_into: +; ZNVER1: # %bb.0: +; ZNVER1-NEXT: #APP +; ZNVER1-NEXT: into # sched: [100:?] +; ZNVER1-NEXT: #NO_APP +; ZNVER1-NEXT: retl # sched: [1:0.50] + call void asm sideeffect "into", ""() + ret void +} + define i8 @test_salc() optsize { ; GENERIC-LABEL: test_salc: ; GENERIC: # %bb.0: diff --git a/llvm/test/CodeGen/X86/schedule-x86_64.ll b/llvm/test/CodeGen/X86/schedule-x86_64.ll index 2ff17b9b4212..ad97020af74b 100644 --- a/llvm/test/CodeGen/X86/schedule-x86_64.ll +++ b/llvm/test/CodeGen/X86/schedule-x86_64.ll @@ -3652,8 +3652,79 @@ define void @test_ins() optsize { ret void } -; TODO - test_int -; TODO - test_into +define void @test_int() optsize { +; GENERIC-LABEL: test_int: +; GENERIC: # %bb.0: +; GENERIC-NEXT: #APP +; GENERIC-NEXT: int $7 # sched: [100:0.33] +; GENERIC-NEXT: #NO_APP +; GENERIC-NEXT: retq # sched: [1:1.00] +; +; ATOM-LABEL: test_int: +; ATOM: # %bb.0: +; ATOM-NEXT: #APP +; ATOM-NEXT: int $7 # sched: [127:63.50] +; ATOM-NEXT: #NO_APP +; ATOM-NEXT: retq # sched: [79:39.50] +; +; SLM-LABEL: test_int: +; SLM: # %bb.0: +; SLM-NEXT: #APP +; SLM-NEXT: int $7 # sched: [100:1.00] +; SLM-NEXT: #NO_APP +; SLM-NEXT: retq # sched: [4:1.00] +; +; SANDY-LABEL: test_int: +; SANDY: # %bb.0: +; SANDY-NEXT: #APP +; SANDY-NEXT: int $7 # sched: [100:0.33] +; SANDY-NEXT: #NO_APP +; SANDY-NEXT: retq # sched: [1:1.00] +; +; HASWELL-LABEL: test_int: +; HASWELL: # %bb.0: +; HASWELL-NEXT: #APP +; HASWELL-NEXT: int $7 # sched: [100:0.25] +; HASWELL-NEXT: #NO_APP +; HASWELL-NEXT: retq # sched: [7:1.00] +; +; BROADWELL-LABEL: test_int: +; BROADWELL: # %bb.0: +; BROADWELL-NEXT: #APP +; BROADWELL-NEXT: int $7 # sched: [100:0.25] +; BROADWELL-NEXT: #NO_APP +; BROADWELL-NEXT: retq # sched: [7:1.00] +; +; SKYLAKE-LABEL: test_int: +; SKYLAKE: # %bb.0: +; SKYLAKE-NEXT: #APP +; SKYLAKE-NEXT: int $7 # sched: [100:0.25] +; SKYLAKE-NEXT: #NO_APP +; SKYLAKE-NEXT: retq # sched: [7:1.00] +; +; SKX-LABEL: test_int: +; SKX: # %bb.0: +; SKX-NEXT: #APP +; SKX-NEXT: int $7 # sched: [100:0.25] +; SKX-NEXT: #NO_APP +; SKX-NEXT: retq # sched: [7:1.00] +; +; BTVER2-LABEL: test_int: +; BTVER2: # %bb.0: +; BTVER2-NEXT: #APP +; BTVER2-NEXT: int $7 # sched: [100:0.17] +; BTVER2-NEXT: #NO_APP +; BTVER2-NEXT: retq # sched: [4:1.00] +; +; ZNVER1-LABEL: test_int: +; ZNVER1: # %bb.0: +; ZNVER1-NEXT: #APP +; ZNVER1-NEXT: int $7 # sched: [100:?] +; ZNVER1-NEXT: #NO_APP +; ZNVER1-NEXT: retq # sched: [1:0.50] + call void asm sideeffect "int $0", "i"(i8 7) + ret void +} define void @test_invlpg_invlpga(i8 *%a0) optsize { ; GENERIC-LABEL: test_invlpg_invlpga: