[llvm] 2bcbf13 - [X86] Add generic cpu target for the slow division tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 11:38:40 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-15T19:38:29+01:00
New Revision: 2bcbf1319e9c3a348432dde8449ff961de35ca68
URL: https://github.com/llvm/llvm-project/commit/2bcbf1319e9c3a348432dde8449ff961de35ca68
DIFF: https://github.com/llvm/llvm-project/commit/2bcbf1319e9c3a348432dde8449ff961de35ca68.diff
LOG: [X86] Add generic cpu target for the slow division tests
Baseline for any change due to D75567
Added:
Modified:
llvm/test/CodeGen/X86/bypass-slow-division-tune.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/bypass-slow-division-tune.ll b/llvm/test/CodeGen/X86/bypass-slow-division-tune.ll
index 84355448d1cd..75a00dd03a31 100644
--- a/llvm/test/CodeGen/X86/bypass-slow-division-tune.ll
+++ b/llvm/test/CodeGen/X86/bypass-slow-division-tune.ll
@@ -1,6 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; Check that a division is bypassed when appropriate only.
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mcpu=atom < %s | FileCheck -check-prefixes=CHECK,ATOM %s
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mcpu=x86-64 < %s | FileCheck -check-prefixes=CHECK,REST,X64 %s
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mcpu=silvermont < %s | FileCheck -check-prefixes=CHECK,REST,SLM %s
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mcpu=skylake < %s | FileCheck -check-prefixes=CHECK,REST,SKL %s
; RUN: llc -profile-summary-huge-working-set-size-threshold=1 -mtriple=x86_64-unknown-linux-gnu -mcpu=skylake < %s | FileCheck -check-prefixes=HUGEWS %s
@@ -62,6 +63,13 @@ define i64 @div64(i64 %a, i64 %b) {
; ATOM-NEXT: # kill: def $eax killed $eax def $rax
; ATOM-NEXT: retq
;
+; X64-LABEL: div64:
+; X64: # %bb.0: # %entry
+; X64-NEXT: movq %rdi, %rax
+; X64-NEXT: cqto
+; X64-NEXT: idivq %rsi
+; X64-NEXT: retq
+;
; SLM-LABEL: div64:
; SLM: # %bb.0: # %entry
; SLM-NEXT: movq %rdi, %rcx
@@ -167,6 +175,13 @@ define i64 @div64_hugews(i64 %a, i64 %b) {
; ATOM-NEXT: # kill: def $eax killed $eax def $rax
; ATOM-NEXT: retq
;
+; X64-LABEL: div64_hugews:
+; X64: # %bb.0:
+; X64-NEXT: movq %rdi, %rax
+; X64-NEXT: cqto
+; X64-NEXT: idivq %rsi
+; X64-NEXT: retq
+;
; SLM-LABEL: div64_hugews:
; SLM: # %bb.0:
; SLM-NEXT: movq %rdi, %rcx
More information about the llvm-commits
mailing list