2017-08-18 23:26:51 +08:00
|
|
|
; 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=+aes | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=slm | FileCheck %s --check-prefix=CHECK --check-prefix=SLM
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=goldmont | FileCheck %s --check-prefix=CHECK --check-prefix=SLM
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=sandybridge | FileCheck %s --check-prefix=CHECK --check-prefix=SANDY
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=ivybridge | FileCheck %s --check-prefix=CHECK --check-prefix=SANDY
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
|
2017-10-17 21:45:39 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
|
2017-08-30 16:08:50 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
|
2017-08-18 23:26:51 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
|
|
|
|
|
|
|
|
define <2 x i64> @test_aesdec(<2 x i64> %a0, <2 x i64> %a1, <2 x i64> *%a2) {
|
|
|
|
; GENERIC-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GENERIC: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; GENERIC-NEXT: aesdec %xmm1, %xmm0 # sched: [7:1.00]
|
|
|
|
; GENERIC-NEXT: aesdec (%rdi), %xmm0 # sched: [13:1.00]
|
|
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; SLM-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SLM: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SLM-NEXT: aesdec %xmm1, %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: aesdec (%rdi), %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; SANDY-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SANDY: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SANDY-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
|
|
|
; SANDY-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; SANDY-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; HASWELL-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; HASWELL: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; HASWELL-NEXT: retq # sched: [7:1.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
;
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BROADWELL: # %bb.0:
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [12:1.00]
|
|
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
;
|
2017-08-30 16:08:50 +08:00
|
|
|
; SKYLAKE-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKYLAKE: # %bb.0:
|
2017-09-19 14:19:27 +08:00
|
|
|
; SKYLAKE-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
|
2017-10-17 14:47:04 +08:00
|
|
|
; SKYLAKE-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [10:1.00]
|
|
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
2017-08-30 16:08:50 +08:00
|
|
|
;
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BTVER2: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
|
|
|
|
; BTVER2-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [8:1.00]
|
|
|
|
; BTVER2-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; ZNVER1-LABEL: test_aesdec:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ZNVER1: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; ZNVER1-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
|
|
|
|
; ZNVER1-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [11:0.50]
|
AMD family 17h (znver1) scheduler model update.
Summary:
This patch enables the following:
1) Regex based Instruction itineraries for integer instructions.
2) The instructions are grouped as per the nature of the instructions
(move, arithmetic, logic, Misc, Control Transfer).
3) FP instructions and their itineraries are added which includes values
for SSE4A, BMI, BMI2 and SHA instructions.
Patch by Ganesh Gopalasubramanian
Reviewers: RKSimon, craig.topper
Subscribers: vprasad, shivaram, ddibyend, andreadb, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D36617
llvm-svn: 312237
2017-08-31 20:38:35 +08:00
|
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
2017-08-18 23:26:51 +08:00
|
|
|
%1 = load <2 x i64>, <2 x i64> *%a2, align 16
|
|
|
|
%2 = call <2 x i64> @llvm.x86.aesni.aesdec(<2 x i64> %a0, <2 x i64> %a1)
|
|
|
|
%3 = call <2 x i64> @llvm.x86.aesni.aesdec(<2 x i64> %2, <2 x i64> %1)
|
|
|
|
ret <2 x i64> %3
|
|
|
|
}
|
|
|
|
declare <2 x i64> @llvm.x86.aesni.aesdec(<2 x i64>, <2 x i64>)
|
|
|
|
|
|
|
|
define <2 x i64> @test_aesdeclast(<2 x i64> %a0, <2 x i64> %a1, <2 x i64> *%a2) {
|
|
|
|
; GENERIC-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GENERIC: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; GENERIC-NEXT: aesdeclast %xmm1, %xmm0 # sched: [7:1.00]
|
|
|
|
; GENERIC-NEXT: aesdeclast (%rdi), %xmm0 # sched: [13:1.00]
|
|
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; SLM-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SLM: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SLM-NEXT: aesdeclast %xmm1, %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: aesdeclast (%rdi), %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; SANDY-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SANDY: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SANDY-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
|
|
|
; SANDY-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; SANDY-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; HASWELL-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; HASWELL: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; HASWELL-NEXT: retq # sched: [7:1.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
;
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BROADWELL: # %bb.0:
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [12:1.00]
|
|
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
;
|
2017-08-30 16:08:50 +08:00
|
|
|
; SKYLAKE-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKYLAKE: # %bb.0:
|
2017-09-19 14:19:27 +08:00
|
|
|
; SKYLAKE-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
|
2017-10-17 14:47:04 +08:00
|
|
|
; SKYLAKE-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [10:1.00]
|
|
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
2017-08-30 16:08:50 +08:00
|
|
|
;
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BTVER2: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
|
|
|
|
; BTVER2-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [8:1.00]
|
|
|
|
; BTVER2-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; ZNVER1-LABEL: test_aesdeclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ZNVER1: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; ZNVER1-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
|
|
|
|
; ZNVER1-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [11:0.50]
|
AMD family 17h (znver1) scheduler model update.
Summary:
This patch enables the following:
1) Regex based Instruction itineraries for integer instructions.
2) The instructions are grouped as per the nature of the instructions
(move, arithmetic, logic, Misc, Control Transfer).
3) FP instructions and their itineraries are added which includes values
for SSE4A, BMI, BMI2 and SHA instructions.
Patch by Ganesh Gopalasubramanian
Reviewers: RKSimon, craig.topper
Subscribers: vprasad, shivaram, ddibyend, andreadb, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D36617
llvm-svn: 312237
2017-08-31 20:38:35 +08:00
|
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
2017-08-18 23:26:51 +08:00
|
|
|
%1 = load <2 x i64>, <2 x i64> *%a2, align 16
|
|
|
|
%2 = call <2 x i64> @llvm.x86.aesni.aesdeclast(<2 x i64> %a0, <2 x i64> %a1)
|
|
|
|
%3 = call <2 x i64> @llvm.x86.aesni.aesdeclast(<2 x i64> %2, <2 x i64> %1)
|
|
|
|
ret <2 x i64> %3
|
|
|
|
}
|
|
|
|
declare <2 x i64> @llvm.x86.aesni.aesdeclast(<2 x i64>, <2 x i64>)
|
|
|
|
|
|
|
|
define <2 x i64> @test_aesenc(<2 x i64> %a0, <2 x i64> %a1, <2 x i64> *%a2) {
|
|
|
|
; GENERIC-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GENERIC: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; GENERIC-NEXT: aesenc %xmm1, %xmm0 # sched: [7:1.00]
|
|
|
|
; GENERIC-NEXT: aesenc (%rdi), %xmm0 # sched: [13:1.00]
|
|
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; SLM-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SLM: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SLM-NEXT: aesenc %xmm1, %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: aesenc (%rdi), %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; SANDY-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SANDY: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SANDY-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
|
|
|
; SANDY-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; SANDY-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; HASWELL-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; HASWELL: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; HASWELL-NEXT: retq # sched: [7:1.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
;
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BROADWELL: # %bb.0:
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [12:1.00]
|
|
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
;
|
2017-08-30 16:08:50 +08:00
|
|
|
; SKYLAKE-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKYLAKE: # %bb.0:
|
2017-09-19 14:19:27 +08:00
|
|
|
; SKYLAKE-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
|
2017-10-17 14:47:04 +08:00
|
|
|
; SKYLAKE-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [10:1.00]
|
|
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
2017-08-30 16:08:50 +08:00
|
|
|
;
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BTVER2: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
|
|
|
|
; BTVER2-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [8:1.00]
|
|
|
|
; BTVER2-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; ZNVER1-LABEL: test_aesenc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ZNVER1: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; ZNVER1-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
|
|
|
|
; ZNVER1-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [11:0.50]
|
AMD family 17h (znver1) scheduler model update.
Summary:
This patch enables the following:
1) Regex based Instruction itineraries for integer instructions.
2) The instructions are grouped as per the nature of the instructions
(move, arithmetic, logic, Misc, Control Transfer).
3) FP instructions and their itineraries are added which includes values
for SSE4A, BMI, BMI2 and SHA instructions.
Patch by Ganesh Gopalasubramanian
Reviewers: RKSimon, craig.topper
Subscribers: vprasad, shivaram, ddibyend, andreadb, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D36617
llvm-svn: 312237
2017-08-31 20:38:35 +08:00
|
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
2017-08-18 23:26:51 +08:00
|
|
|
%1 = load <2 x i64>, <2 x i64> *%a2, align 16
|
|
|
|
%2 = call <2 x i64> @llvm.x86.aesni.aesenc(<2 x i64> %a0, <2 x i64> %a1)
|
|
|
|
%3 = call <2 x i64> @llvm.x86.aesni.aesenc(<2 x i64> %2, <2 x i64> %1)
|
|
|
|
ret <2 x i64> %3
|
|
|
|
}
|
|
|
|
declare <2 x i64> @llvm.x86.aesni.aesenc(<2 x i64>, <2 x i64>)
|
|
|
|
|
|
|
|
define <2 x i64> @test_aesenclast(<2 x i64> %a0, <2 x i64> %a1, <2 x i64> *%a2) {
|
|
|
|
; GENERIC-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GENERIC: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; GENERIC-NEXT: aesenclast %xmm1, %xmm0 # sched: [7:1.00]
|
|
|
|
; GENERIC-NEXT: aesenclast (%rdi), %xmm0 # sched: [13:1.00]
|
|
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; SLM-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SLM: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SLM-NEXT: aesenclast %xmm1, %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: aesenclast (%rdi), %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; SANDY-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SANDY: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SANDY-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
|
|
|
; SANDY-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; SANDY-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; HASWELL-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; HASWELL: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
|
|
|
|
; HASWELL-NEXT: retq # sched: [7:1.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
;
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BROADWELL: # %bb.0:
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [12:1.00]
|
|
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
;
|
2017-08-30 16:08:50 +08:00
|
|
|
; SKYLAKE-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKYLAKE: # %bb.0:
|
2017-09-19 14:19:27 +08:00
|
|
|
; SKYLAKE-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
|
2017-10-17 14:47:04 +08:00
|
|
|
; SKYLAKE-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [10:1.00]
|
|
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
2017-08-30 16:08:50 +08:00
|
|
|
;
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BTVER2: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
|
|
|
|
; BTVER2-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [8:1.00]
|
|
|
|
; BTVER2-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; ZNVER1-LABEL: test_aesenclast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ZNVER1: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; ZNVER1-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
|
|
|
|
; ZNVER1-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [11:0.50]
|
AMD family 17h (znver1) scheduler model update.
Summary:
This patch enables the following:
1) Regex based Instruction itineraries for integer instructions.
2) The instructions are grouped as per the nature of the instructions
(move, arithmetic, logic, Misc, Control Transfer).
3) FP instructions and their itineraries are added which includes values
for SSE4A, BMI, BMI2 and SHA instructions.
Patch by Ganesh Gopalasubramanian
Reviewers: RKSimon, craig.topper
Subscribers: vprasad, shivaram, ddibyend, andreadb, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D36617
llvm-svn: 312237
2017-08-31 20:38:35 +08:00
|
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
2017-08-18 23:26:51 +08:00
|
|
|
%1 = load <2 x i64>, <2 x i64> *%a2, align 16
|
|
|
|
%2 = call <2 x i64> @llvm.x86.aesni.aesenclast(<2 x i64> %a0, <2 x i64> %a1)
|
|
|
|
%3 = call <2 x i64> @llvm.x86.aesni.aesenclast(<2 x i64> %2, <2 x i64> %1)
|
|
|
|
ret <2 x i64> %3
|
|
|
|
}
|
|
|
|
declare <2 x i64> @llvm.x86.aesni.aesenclast(<2 x i64>, <2 x i64>)
|
|
|
|
|
|
|
|
define <2 x i64> @test_aesimc(<2 x i64> %a0, <2 x i64> *%a1) {
|
|
|
|
; GENERIC-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GENERIC: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; GENERIC-NEXT: aesimc %xmm0, %xmm1 # sched: [12:2.00]
|
|
|
|
; GENERIC-NEXT: aesimc (%rdi), %xmm0 # sched: [18:2.00]
|
|
|
|
; GENERIC-NEXT: por %xmm1, %xmm0 # sched: [1:0.33]
|
|
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; SLM-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SLM: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SLM-NEXT: aesimc %xmm0, %xmm1 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: aesimc (%rdi), %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: por %xmm1, %xmm0 # sched: [1:0.50]
|
|
|
|
; SLM-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; SANDY-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SANDY: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SANDY-NEXT: vaesimc %xmm0, %xmm0 # sched: [12:2.00]
|
|
|
|
; SANDY-NEXT: vaesimc (%rdi), %xmm1 # sched: [18:2.00]
|
|
|
|
; SANDY-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
|
|
|
; SANDY-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; HASWELL-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; HASWELL: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vaesimc %xmm0, %xmm0 # sched: [14:2.00]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: vaesimc (%rdi), %xmm1 # sched: [20:2.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: retq # sched: [7:1.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
;
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BROADWELL: # %bb.0:
|
2017-12-13 02:40:58 +08:00
|
|
|
; BROADWELL-NEXT: vaesimc (%rdi), %xmm1 # sched: [19:2.00]
|
2017-12-13 03:11:31 +08:00
|
|
|
; BROADWELL-NEXT: vaesimc %xmm0, %xmm0 # sched: [14:2.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
;
|
2017-08-30 16:08:50 +08:00
|
|
|
; SKYLAKE-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKYLAKE: # %bb.0:
|
2017-09-19 14:19:27 +08:00
|
|
|
; SKYLAKE-NEXT: vaesimc %xmm0, %xmm0 # sched: [8:2.00]
|
2017-10-17 14:47:04 +08:00
|
|
|
; SKYLAKE-NEXT: vaesimc (%rdi), %xmm1 # sched: [14:2.00]
|
|
|
|
; SKYLAKE-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
|
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
2017-08-30 16:08:50 +08:00
|
|
|
;
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BTVER2: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-NEXT: vaesimc (%rdi), %xmm1 # sched: [7:1.00]
|
|
|
|
; BTVER2-NEXT: vaesimc %xmm0, %xmm0 # sched: [2:1.00]
|
|
|
|
; BTVER2-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
|
|
|
|
; BTVER2-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; ZNVER1-LABEL: test_aesimc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ZNVER1: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; ZNVER1-NEXT: vaesimc (%rdi), %xmm1 # sched: [11:0.50]
|
|
|
|
; ZNVER1-NEXT: vaesimc %xmm0, %xmm0 # sched: [4:0.50]
|
|
|
|
; ZNVER1-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.25]
|
AMD family 17h (znver1) scheduler model update.
Summary:
This patch enables the following:
1) Regex based Instruction itineraries for integer instructions.
2) The instructions are grouped as per the nature of the instructions
(move, arithmetic, logic, Misc, Control Transfer).
3) FP instructions and their itineraries are added which includes values
for SSE4A, BMI, BMI2 and SHA instructions.
Patch by Ganesh Gopalasubramanian
Reviewers: RKSimon, craig.topper
Subscribers: vprasad, shivaram, ddibyend, andreadb, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D36617
llvm-svn: 312237
2017-08-31 20:38:35 +08:00
|
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
2017-08-18 23:26:51 +08:00
|
|
|
%1 = load <2 x i64>, <2 x i64> *%a1, align 16
|
|
|
|
%2 = call <2 x i64> @llvm.x86.aesni.aesimc(<2 x i64> %a0)
|
|
|
|
%3 = call <2 x i64> @llvm.x86.aesni.aesimc(<2 x i64> %1)
|
|
|
|
%4 = or <2 x i64> %2, %3
|
|
|
|
ret <2 x i64> %4
|
|
|
|
}
|
|
|
|
declare <2 x i64> @llvm.x86.aesni.aesimc(<2 x i64>)
|
|
|
|
|
|
|
|
define <2 x i64> @test_aeskeygenassist(<2 x i64> %a0, <2 x i64> *%a1) {
|
|
|
|
; GENERIC-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GENERIC: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; GENERIC-NEXT: aeskeygenassist $7, %xmm0, %xmm1 # sched: [8:3.67]
|
|
|
|
; GENERIC-NEXT: aeskeygenassist $7, (%rdi), %xmm0 # sched: [8:3.33]
|
|
|
|
; GENERIC-NEXT: por %xmm1, %xmm0 # sched: [1:0.33]
|
|
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; SLM-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SLM: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SLM-NEXT: aeskeygenassist $7, %xmm0, %xmm1 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: aeskeygenassist $7, (%rdi), %xmm0 # sched: [8:5.00]
|
|
|
|
; SLM-NEXT: por %xmm1, %xmm0 # sched: [1:0.50]
|
|
|
|
; SLM-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; SANDY-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SANDY: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; SANDY-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [8:3.67]
|
|
|
|
; SANDY-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [8:3.33]
|
|
|
|
; SANDY-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
|
|
|
; SANDY-NEXT: retq # sched: [1:1.00]
|
|
|
|
;
|
|
|
|
; HASWELL-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; HASWELL: # %bb.0:
|
2017-08-28 18:04:16 +08:00
|
|
|
; HASWELL-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [29:7.00]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [34:7.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
2017-12-08 17:48:44 +08:00
|
|
|
; HASWELL-NEXT: retq # sched: [7:1.00]
|
2017-08-18 23:26:51 +08:00
|
|
|
;
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BROADWELL: # %bb.0:
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [29:7.00]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [33:7.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
2017-10-25 04:19:47 +08:00
|
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
2017-10-17 21:45:39 +08:00
|
|
|
;
|
2017-08-30 16:08:50 +08:00
|
|
|
; SKYLAKE-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKYLAKE: # %bb.0:
|
2017-09-19 14:19:27 +08:00
|
|
|
; SKYLAKE-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [20:6.00]
|
2017-10-17 14:47:04 +08:00
|
|
|
; SKYLAKE-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [25:6.00]
|
|
|
|
; SKYLAKE-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
|
|
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
2017-08-30 16:08:50 +08:00
|
|
|
;
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; BTVER2: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; BTVER2-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [7:1.00]
|
|
|
|
; BTVER2-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [2:1.00]
|
|
|
|
; BTVER2-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
|
|
|
|
; BTVER2-NEXT: retq # sched: [4:1.00]
|
|
|
|
;
|
|
|
|
; ZNVER1-LABEL: test_aeskeygenassist:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ZNVER1: # %bb.0:
|
2017-08-18 23:26:51 +08:00
|
|
|
; ZNVER1-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [11:0.50]
|
|
|
|
; ZNVER1-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [4:0.50]
|
|
|
|
; ZNVER1-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.25]
|
AMD family 17h (znver1) scheduler model update.
Summary:
This patch enables the following:
1) Regex based Instruction itineraries for integer instructions.
2) The instructions are grouped as per the nature of the instructions
(move, arithmetic, logic, Misc, Control Transfer).
3) FP instructions and their itineraries are added which includes values
for SSE4A, BMI, BMI2 and SHA instructions.
Patch by Ganesh Gopalasubramanian
Reviewers: RKSimon, craig.topper
Subscribers: vprasad, shivaram, ddibyend, andreadb, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D36617
llvm-svn: 312237
2017-08-31 20:38:35 +08:00
|
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
2017-08-18 23:26:51 +08:00
|
|
|
%1 = load <2 x i64>, <2 x i64> *%a1, align 16
|
|
|
|
%2 = call <2 x i64> @llvm.x86.aesni.aeskeygenassist(<2 x i64> %a0, i8 7)
|
|
|
|
%3 = call <2 x i64> @llvm.x86.aesni.aeskeygenassist(<2 x i64> %1, i8 7)
|
|
|
|
%4 = or <2 x i64> %2, %3
|
|
|
|
ret <2 x i64> %4
|
|
|
|
}
|
|
|
|
declare <2 x i64> @llvm.x86.aesni.aeskeygenassist(<2 x i64>, i8)
|