NFC.
Added the Broadwell cpu and the BROADWELL prefix to all the scheduling regression tests, as part of prepartion for a larger commit of adding all Broadwell scheduiling.
Reviewers: RKSimon, zvi, aaboud
Differential Revision: https://reviews.llvm.org/D38994
Change-Id: I54bc9065168844c107b1729fcdc1d311ce3ea0a9
llvm-svn: 315998
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; 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
; HASWELL-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_aesdec:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: vaesdec (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_aesdec:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaesdec %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_aesdeclast:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: vaesdeclast (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_aesdeclast:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaesdeclast %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_aesenc:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: vaesenc (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_aesenc:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaesenc %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_aesenclast:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: vaesenclast (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_aesenclast:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaesenclast %xmm1, %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_aesimc:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaesimc %xmm0, %xmm0 # sched: [14:2.00]
+; BROADWELL-NEXT: vaesimc (%rdi), %xmm1 # sched: [14:2.00]
+; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_aesimc:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaesimc %xmm0, %xmm0 # sched: [8:2.00]
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_aeskeygenassist:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [29:7.00]
+; BROADWELL-NEXT: vaeskeygenassist $7, (%rdi), %xmm1 # sched: [28:7.00]
+; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_aeskeygenassist:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaeskeygenassist $7, %xmm0, %xmm0 # sched: [20:6.00]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: vaddpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddsubpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addsubpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddsubpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddsubpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addsubpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddsubpd %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddsubps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addsubps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddsubps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddsubps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addsubps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddsubps %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andnotpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandnpd %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandnpd (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andnotpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandnpd %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andnotps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandnps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandnps (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andnotps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandnps %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandpd %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandpd (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandpd %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandps (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandps %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vblendpd {{.*#+}} ymm0 = ymm0[0],mem[1,2],ymm0[3] sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1,2],ymm0[3] sched: [1:0.33]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vblendpd {{.*#+}} ymm0 = ymm0[0],mem[1,2],ymm0[3] sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1,2],ymm0[3] sched: [1:0.33]
; HASWELL-NEXT: vblendps {{.*#+}} ymm0 = ymm0[0,1],mem[2],ymm0[3],mem[4,5,6],ymm0[7] sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendps {{.*#+}} ymm0 = ymm0[0],ymm1[1,2],ymm0[3,4,5,6,7] sched: [1:0.33]
+; BROADWELL-NEXT: vblendps {{.*#+}} ymm0 = ymm0[0,1],mem[2],ymm0[3],mem[4,5,6],ymm0[7] sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendps {{.*#+}} ymm0 = ymm0[0],ymm1[1,2],ymm0[3,4,5,6,7] sched: [1:0.33]
; HASWELL-NEXT: vblendvpd %ymm2, (%rdi), %ymm0, %ymm0 # sched: [2:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendvpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendvpd %ymm2, %ymm1, %ymm0, %ymm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vblendvpd %ymm2, (%rdi), %ymm0, %ymm0 # sched: [2:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendvpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendvpd %ymm2, %ymm1, %ymm0, %ymm0 # sched: [2:0.67]
; HASWELL-NEXT: vblendvps %ymm2, (%rdi), %ymm0, %ymm0 # sched: [2:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendvps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendvps %ymm2, %ymm1, %ymm0, %ymm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vblendvps %ymm2, (%rdi), %ymm0, %ymm0 # sched: [2:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendvps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendvps %ymm2, %ymm1, %ymm0, %ymm0 # sched: [2:0.67]
; HASWELL-NEXT: vbroadcastf128 {{.*#+}} ymm0 = mem[0,1,0,1] sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastf128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastf128 {{.*#+}} ymm0 = mem[0,1,0,1] sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastf128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastf128 {{.*#+}} ymm0 = mem[0,1,0,1] sched: [7:0.50]
; HASWELL-NEXT: vbroadcastsd (%rdi), %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastsd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastsd (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastsd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastsd (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vbroadcastss (%rdi), %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastss (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastss (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vbroadcastss (%rdi), %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastss_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastss (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastss_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastss (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vorpd %ymm0, %ymm1, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cmppd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcmpeqpd %ymm1, %ymm0, %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vcmpeqpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vorpd %ymm0, %ymm1, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cmppd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcmpeqpd %ymm1, %ymm0, %ymm1 # sched: [4:0.33]
; HASWELL-NEXT: vorps %ymm0, %ymm1, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cmpps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcmpeqps %ymm1, %ymm0, %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vcmpeqps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vorps %ymm0, %ymm1, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cmpps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcmpeqps %ymm1, %ymm0, %ymm1 # sched: [4:0.33]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtdq2pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtdq2pd %xmm0, %ymm0 # sched: [6:1.00]
+; BROADWELL-NEXT: vcvtdq2pd (%rdi), %ymm1 # sched: [6:1.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtdq2pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtdq2pd %xmm0, %ymm0 # sched: [7:1.00]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtdq2ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtdq2ps %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcvtdq2ps (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtdq2ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtdq2ps %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpd2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttpd2dq %ymm0, %xmm0 # sched: [6:1.00]
+; BROADWELL-NEXT: vcvttpd2dqy (%rdi), %xmm1 # sched: [7:1.00]
+; BROADWELL-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpd2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttpd2dq %ymm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpd2ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtpd2ps %ymm0, %xmm0 # sched: [6:1.00]
+; BROADWELL-NEXT: vcvtpd2psy (%rdi), %xmm1 # sched: [7:1.00]
+; BROADWELL-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpd2ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtpd2ps %ymm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: vorps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtps2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttps2dq %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcvttps2dq (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vorps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtps2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttps2dq %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vdivpd (%rdi), %ymm0, %ymm0 # sched: [35:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_divpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdivpd %ymm1, %ymm0, %ymm0 # sched: [35:2.00]
+; BROADWELL-NEXT: vdivpd (%rdi), %ymm0, %ymm0 # sched: [35:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_divpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdivpd %ymm1, %ymm0, %ymm0 # sched: [14:1.00]
; HASWELL-NEXT: vdivps (%rdi), %ymm0, %ymm0 # sched: [21:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_divps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdivps %ymm1, %ymm0, %ymm0 # sched: [21:2.00]
+; BROADWELL-NEXT: vdivps (%rdi), %ymm0, %ymm0 # sched: [21:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_divps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdivps %ymm1, %ymm0, %ymm0 # sched: [11:1.00]
; HASWELL-NEXT: vdpps $7, (%rdi), %ymm0, %ymm0 # sched: [14:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_dpps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdpps $7, %ymm1, %ymm0, %ymm0 # sched: [14:2.00]
+; BROADWELL-NEXT: vdpps $7, (%rdi), %ymm0, %ymm0 # sched: [14:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_dpps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdpps $7, %ymm1, %ymm0, %ymm0 # sched: [13:1.33]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_extractf128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vextractf128 $1, %ymm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vextractf128 $1, %ymm1, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_extractf128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vextractf128 $1, %ymm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vhaddpd (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_haddpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhaddpd %ymm1, %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhaddpd (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_haddpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhaddpd %ymm1, %ymm0, %ymm0 # sched: [6:2.00]
; HASWELL-NEXT: vhaddps (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_haddps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhaddps %ymm1, %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhaddps (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_haddps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhaddps %ymm1, %ymm0, %ymm0 # sched: [6:2.00]
; HASWELL-NEXT: vhsubpd (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_hsubpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhsubpd %ymm1, %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhsubpd (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_hsubpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhsubpd %ymm1, %ymm0, %ymm0 # sched: [6:2.00]
; HASWELL-NEXT: vhsubps (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_hsubps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhsubps %ymm1, %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhsubps (%rdi), %ymm0, %ymm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_hsubps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhsubps %ymm1, %ymm0, %ymm0 # sched: [6:2.00]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_insertf128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vinsertf128 $1, (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_insertf128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm1 # sched: [3:1.00]
; HASWELL-NEXT: vlddqu (%rdi), %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lddqu:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vlddqu (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lddqu:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vlddqu (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vmovapd %xmm2, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maskmovpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaskmovpd (%rdi), %xmm0, %xmm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vmaskmovpd %xmm1, %xmm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovapd %xmm2, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maskmovpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaskmovpd (%rdi), %xmm0, %xmm2 # sched: [7:0.50]
; HASWELL-NEXT: vmovapd %ymm2, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maskmovpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaskmovpd (%rdi), %ymm0, %ymm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vmaskmovpd %ymm1, %ymm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovapd %ymm2, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maskmovpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaskmovpd (%rdi), %ymm0, %ymm2 # sched: [8:0.50]
; HASWELL-NEXT: vmovaps %xmm2, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maskmovps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaskmovps (%rdi), %xmm0, %xmm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vmaskmovps %xmm1, %xmm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovaps %xmm2, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maskmovps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaskmovps (%rdi), %xmm0, %xmm2 # sched: [7:0.50]
; HASWELL-NEXT: vmovaps %ymm2, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maskmovps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaskmovps (%rdi), %ymm0, %ymm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vmaskmovps %ymm1, %ymm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovaps %ymm2, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maskmovps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaskmovps (%rdi), %ymm0, %ymm2 # sched: [8:0.50]
; HASWELL-NEXT: vmaxpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maxpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaxpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmaxpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maxpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaxpd %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vmaxps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maxps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaxps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmaxps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maxps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaxps %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vminpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_minpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vminpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vminpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_minpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vminpd %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vminps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_minps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vminps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vminps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_minps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vminps %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vmovapd %ymm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movapd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovapd (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovapd %ymm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movapd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovapd (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vmovaps %ymm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movaps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovaps (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovaps %ymm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movaps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovaps (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movddup:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovddup {{.*#+}} ymm0 = ymm0[0,0,2,2] sched: [1:1.00]
+; BROADWELL-NEXT: vmovddup {{.*#+}} ymm1 = mem[0,0,2,2] sched: [1:0.50]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movddup:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovddup {{.*#+}} ymm0 = ymm0[0,0,2,2] sched: [1:1.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movmskpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovmskpd %ymm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movmskpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovmskpd %ymm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movmskps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovmskps %ymm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movmskps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovmskps %ymm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: vmovntpd %ymm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovntpd %ymm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddpd %ymm0, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vmovntps %ymm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddps %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovntps %ymm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddps %ymm0, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movshdup:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovshdup {{.*#+}} ymm0 = ymm0[1,1,3,3,5,5,7,7] sched: [1:1.00]
+; BROADWELL-NEXT: vmovshdup {{.*#+}} ymm1 = mem[1,1,3,3,5,5,7,7] sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movshdup:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovshdup {{.*#+}} ymm0 = ymm0[1,1,3,3,5,5,7,7] sched: [1:1.00]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movsldup:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovsldup {{.*#+}} ymm0 = ymm0[0,0,2,2,4,4,6,6] sched: [1:1.00]
+; BROADWELL-NEXT: vmovsldup {{.*#+}} ymm1 = mem[0,0,2,2,4,4,6,6] sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movsldup:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovsldup {{.*#+}} ymm0 = ymm0[0,0,2,2,4,4,6,6] sched: [1:1.00]
; HASWELL-NEXT: vmovupd %ymm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movupd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovupd (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovupd %ymm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movupd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovupd (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vmovups %ymm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movups:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovups (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovups %ymm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movups:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovups (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vmulpd (%rdi), %ymm0, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmulpd %ymm1, %ymm0, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vmulpd (%rdi), %ymm0, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmulpd %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vmulps (%rdi), %ymm0, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmulps %ymm1, %ymm0, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vmulps (%rdi), %ymm0, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmulps %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: orpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vorpd %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vorpd (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: orpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vorpd %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_orps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vorps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vorps (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_orps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vorps %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_perm2f128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vperm2f128 {{.*#+}} ymm1 = ymm0[2,3],ymm1[0,1] sched: [3:1.00]
+; BROADWELL-NEXT: vperm2f128 {{.*#+}} ymm0 = ymm0[2,3],mem[0,1] sched: [3:1.00]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_perm2f128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vperm2f128 {{.*#+}} ymm1 = ymm0[2,3],ymm1[0,1] sched: [3:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilpd {{.*#+}} xmm0 = xmm0[1,0] sched: [1:1.00]
+; BROADWELL-NEXT: vpermilpd {{.*#+}} xmm1 = mem[1,0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilpd {{.*#+}} xmm0 = xmm0[1,0] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilpd {{.*#+}} ymm0 = ymm0[1,0,2,3] sched: [1:1.00]
+; BROADWELL-NEXT: vpermilpd {{.*#+}} ymm1 = mem[1,0,2,3] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilpd {{.*#+}} ymm0 = ymm0[1,0,2,3] sched: [1:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[3,2,1,0] sched: [1:1.00]
+; BROADWELL-NEXT: vpermilps {{.*#+}} xmm1 = mem[3,2,1,0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[3,2,1,0] sched: [1:1.00]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilps {{.*#+}} ymm0 = ymm0[3,2,1,0,7,6,5,4] sched: [1:1.00]
+; BROADWELL-NEXT: vpermilps {{.*#+}} ymm1 = mem[3,2,1,0,7,6,5,4] sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilps {{.*#+}} ymm0 = ymm0[3,2,1,0,7,6,5,4] sched: [1:1.00]
; HASWELL-NEXT: vpermilpd (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilvarpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilpd %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpermilpd (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilvarpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilpd %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpermilpd (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilvarpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilpd %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpermilpd (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilvarpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilpd %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vpermilps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilvarps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilps %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpermilps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilvarps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilps %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpermilps (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permilvarps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermilps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpermilps (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permilvarps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermilps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rcpps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vrcpps (%rdi), %ymm1 # sched: [11:2.00]
+; BROADWELL-NEXT: vrcpps %ymm0, %ymm0 # sched: [11:2.00]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rcpps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vrcpps %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_roundpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vroundpd $7, %ymm0, %ymm0 # sched: [5:1.25]
+; BROADWELL-NEXT: vroundpd $7, (%rdi), %ymm1 # sched: [6:2.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_roundpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vroundpd $7, %ymm0, %ymm0 # sched: [8:0.67]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_roundps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vroundps $7, %ymm0, %ymm0 # sched: [5:1.25]
+; BROADWELL-NEXT: vroundps $7, (%rdi), %ymm1 # sched: [6:2.00]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_roundps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vroundps $7, %ymm0, %ymm0 # sched: [8:0.67]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rsqrtps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vrsqrtps (%rdi), %ymm1 # sched: [11:2.00]
+; BROADWELL-NEXT: vrsqrtps %ymm0, %ymm0 # sched: [11:2.00]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rsqrtps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vrsqrtps %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shufpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vshufpd {{.*#+}} ymm0 = ymm0[1],ymm1[0],ymm0[2],ymm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: vshufpd {{.*#+}} ymm1 = ymm1[1],mem[0],ymm1[2],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shufpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vshufpd {{.*#+}} ymm0 = ymm0[1],ymm1[0],ymm0[2],ymm1[3] sched: [1:1.00]
; HASWELL-NEXT: vshufps {{.*#+}} ymm0 = ymm0[0,3],mem[0,0],ymm0[4,7],mem[4,4] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shufps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vshufps {{.*#+}} ymm0 = ymm0[0,0],ymm1[0,0],ymm0[4,4],ymm1[4,4] sched: [1:1.00]
+; BROADWELL-NEXT: vshufps {{.*#+}} ymm0 = ymm0[0,3],mem[0,0],ymm0[4,7],mem[4,4] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shufps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vshufps {{.*#+}} ymm0 = ymm0[0,0],ymm1[0,0],ymm0[4,4],ymm1[4,4] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sqrtpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsqrtpd (%rdi), %ymm1 # sched: [35:2.00]
+; BROADWELL-NEXT: vsqrtpd %ymm0, %ymm0 # sched: [35:2.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sqrtpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsqrtpd %ymm0, %ymm0 # sched: [18:1.00]
; HASWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sqrtps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsqrtps (%rdi), %ymm1 # sched: [21:2.00]
+; BROADWELL-NEXT: vsqrtps %ymm0, %ymm0 # sched: [21:2.00]
+; BROADWELL-NEXT: vaddps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sqrtps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsqrtps %ymm0, %ymm0 # sched: [12:1.00]
; HASWELL-NEXT: vsubpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_subpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsubpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vsubpd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_subpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsubpd %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vsubps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_subps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsubps %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vsubps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_subps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsubps %ymm1, %ymm0, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: adcl $0, %eax # sched: [2:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_testpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: xorl %eax, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: vtestpd %xmm1, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: setb %al # sched: [1:0.50]
+; BROADWELL-NEXT: vtestpd (%rdi), %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: adcl $0, %eax # sched: [2:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_testpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: xorl %eax, %eax # sched: [1:0.25]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_testpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: xorl %eax, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: vtestpd %ymm1, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: setb %al # sched: [1:0.50]
+; BROADWELL-NEXT: vtestpd (%rdi), %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: adcl $0, %eax # sched: [2:0.50]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_testpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: xorl %eax, %eax # sched: [1:0.25]
; HASWELL-NEXT: adcl $0, %eax # sched: [2:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_testps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: xorl %eax, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: vtestps %xmm1, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: setb %al # sched: [1:0.50]
+; BROADWELL-NEXT: vtestps (%rdi), %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: adcl $0, %eax # sched: [2:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_testps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: xorl %eax, %eax # sched: [1:0.25]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_testps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: xorl %eax, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: vtestps %ymm1, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: setb %al # sched: [1:0.50]
+; BROADWELL-NEXT: vtestps (%rdi), %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: adcl $0, %eax # sched: [2:0.50]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_testps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: xorl %eax, %eax # sched: [1:0.25]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpckhpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpckhpd {{.*#+}} ymm0 = ymm0[1],ymm1[1],ymm0[3],ymm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: vunpckhpd {{.*#+}} ymm1 = ymm1[1],mem[1],ymm1[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpckhpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpckhpd {{.*#+}} ymm0 = ymm0[1],ymm1[1],ymm0[3],ymm1[3] sched: [1:1.00]
; HASWELL-NEXT: vunpckhps {{.*#+}} ymm0 = ymm0[2],mem[2],ymm0[3],mem[3],ymm0[6],mem[6],ymm0[7],mem[7] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpckhps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpckhps {{.*#+}} ymm0 = ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[6],ymm1[6],ymm0[7],ymm1[7] sched: [1:1.00]
+; BROADWELL-NEXT: vunpckhps {{.*#+}} ymm0 = ymm0[2],mem[2],ymm0[3],mem[3],ymm0[6],mem[6],ymm0[7],mem[7] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpckhps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpckhps {{.*#+}} ymm0 = ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[6],ymm1[6],ymm0[7],ymm1[7] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpcklpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpcklpd {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[2],ymm1[2] sched: [1:1.00]
+; BROADWELL-NEXT: vunpcklpd {{.*#+}} ymm1 = ymm1[0],mem[0],ymm1[2],mem[2] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpcklpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpcklpd {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[2],ymm1[2] sched: [1:1.00]
; HASWELL-NEXT: vunpcklps {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[4],mem[4],ymm0[5],mem[5] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpcklps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpcklps {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[4],ymm1[4],ymm0[5],ymm1[5] sched: [1:1.00]
+; BROADWELL-NEXT: vunpcklps {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[4],mem[4],ymm0[5],mem[5] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpcklps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpcklps {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[4],ymm1[4],ymm0[5],ymm1[5] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_xorpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vxorpd %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vxorpd (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_xorpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vxorpd %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_xorps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vxorps %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vxorps (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_xorps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vxorps %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vzeroall # sched: [16:16.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_zeroall:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vzeroall # sched: [16:16.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_zeroall:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vzeroall # sched: [16:4.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_zeroupper:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_zeroupper:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vzeroupper # sched: [4:1.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=+avx2 | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
; HASWELL-NEXT: vpaddd %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcasti128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcasti128 {{.*#+}} ymm1 = mem[0,1,0,1] sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcasti128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcasti128 {{.*#+}} ymm1 = mem[0,1,0,1] sched: [7:0.50]
; HASWELL-NEXT: vaddpd %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastsd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastsd %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddpd %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastsd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastsd %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vaddps %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastss %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastss %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vaddps %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_broadcastss_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vbroadcastss %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_broadcastss_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vbroadcastss %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_extracti128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm2 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vextracti128 $1, %ymm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vextracti128 $1, %ymm2, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_extracti128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddd %ymm1, %ymm0, %ymm2 # sched: [1:0.33]
; HASWELL-NEXT: vgatherdpd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherdpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherdpd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherdpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherdpd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vgatherdpd %ymm2, (%rdi,%xmm1,8), %ymm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherdpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherdpd %ymm2, (%rdi,%xmm1,8), %ymm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherdpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherdpd %ymm2, (%rdi,%xmm1,8), %ymm0 # sched: [25:1.00]
; HASWELL-NEXT: vgatherdps %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherdps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherdps %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherdps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherdps %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vgatherdps %ymm2, (%rdi,%ymm1,4), %ymm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherdps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherdps %ymm2, (%rdi,%ymm1,4), %ymm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherdps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherdps %ymm2, (%rdi,%ymm1,4), %ymm0 # sched: [25:1.00]
; HASWELL-NEXT: vgatherqpd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherqpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherqpd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherqpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherqpd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vgatherqpd %ymm2, (%rdi,%ymm1,8), %ymm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherqpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherqpd %ymm2, (%rdi,%ymm1,8), %ymm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherqpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherqpd %ymm2, (%rdi,%ymm1,8), %ymm0 # sched: [25:1.00]
; HASWELL-NEXT: vgatherqps %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherqps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherqps %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherqps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherqps %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_gatherqps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vgatherqps %xmm2, (%rdi,%ymm1,4), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_gatherqps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vgatherqps %xmm2, (%rdi,%ymm1,4), %xmm0 # sched: [25:1.00]
; HASWELL-NEXT: vpaddd %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_inserti128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vinserti128 $1, %xmm1, %ymm0, %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vinserti128 $1, (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_inserti128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vinserti128 $1, %xmm1, %ymm0, %ymm1 # sched: [3:1.00]
; HASWELL-NEXT: vmovntdqa (%rdi), %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntdqa:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovntdqa (%rdi), %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntdqa:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovntdqa (%rdi), %ymm0 # sched: [7:0.50]
; HASWELL-NEXT: vmpsadbw $7, (%rdi), %ymm0, %ymm0 # sched: [7:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mpsadbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmpsadbw $7, %ymm1, %ymm0, %ymm0 # sched: [7:2.00]
+; BROADWELL-NEXT: vmpsadbw $7, (%rdi), %ymm0, %ymm0 # sched: [7:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mpsadbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmpsadbw $7, %ymm1, %ymm0, %ymm0 # sched: [4:2.00]
; HASWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpabsb %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpabsb (%rdi), %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpabsb %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpabsd %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpabsd (%rdi), %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpabsd %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpabsw %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpabsw (%rdi), %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpabsw %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpackssdw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packssdw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpackssdw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packssdw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vpacksswb (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packsswb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpacksswb (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packsswb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vpackusdw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packusdw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpackusdw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packusdw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vpackuswb (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packuswb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpackuswb (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packuswb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddb %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddq (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddusb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddusb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddusb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddusb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddusb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddusb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddusw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddusw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddusw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddusw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddusw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddusw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpalignr {{.*#+}} ymm0 = mem[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0],mem[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_palignr:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpalignr {{.*#+}} ymm0 = ymm1[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0],ymm1[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16] sched: [1:1.00]
+; BROADWELL-NEXT: vpalignr {{.*#+}} ymm0 = mem[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0],mem[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_palignr:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpalignr {{.*#+}} ymm0 = ymm1[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0],ymm1[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pand:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpand %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpand (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pand:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpand %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pandn:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpandn %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpandn (%rdi), %ymm0, %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pandn:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpandn %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpavgb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pavgb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpavgb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpavgb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pavgb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpavgb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpavgw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pavgw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpavgw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpavgw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pavgw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpavgw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pblendd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpblendd {{.*#+}} xmm1 = xmm1[0,1,2],xmm0[3] sched: [1:0.33]
+; BROADWELL-NEXT: vpblendd {{.*#+}} xmm1 = mem[0],xmm1[1],mem[2],xmm1[3] sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pblendd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpblendd {{.*#+}} xmm1 = xmm1[0,1,2],xmm0[3] sched: [1:0.33]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pblendd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpblendd {{.*#+}} ymm1 = ymm1[0,1,2],ymm0[3,4,5,6],ymm1[7] sched: [1:0.33]
+; BROADWELL-NEXT: vpblendd {{.*#+}} ymm1 = ymm1[0],mem[1,2],ymm1[3,4,5,6,7] sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pblendd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpblendd {{.*#+}} ymm1 = ymm1[0,1,2],ymm0[3,4,5,6],ymm1[7] sched: [1:0.33]
; HASWELL-NEXT: vpblendvb %ymm3, (%rdi), %ymm0, %ymm0 # sched: [2:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pblendvb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpblendvb %ymm2, %ymm1, %ymm0, %ymm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vpblendvb %ymm3, (%rdi), %ymm0, %ymm0 # sched: [2:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pblendvb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpblendvb %ymm2, %ymm1, %ymm0, %ymm0 # sched: [2:0.67]
; HASWELL-NEXT: vpblendw {{.*#+}} ymm0 = mem[0],ymm0[1],mem[2],ymm0[3],mem[4],ymm0[5],mem[6],ymm0[7],mem[8],ymm0[9],mem[10],ymm0[11],mem[12],ymm0[13],mem[14],ymm0[15] sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pblendw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpblendw {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3,4],ymm0[5,6,7,8,9],ymm1[10,11,12],ymm0[13,14,15] sched: [1:1.00]
+; BROADWELL-NEXT: vpblendw {{.*#+}} ymm0 = mem[0],ymm0[1],mem[2],ymm0[3],mem[4],ymm0[5],mem[6],ymm0[7],mem[8],ymm0[9],mem[10],ymm0[11],mem[12],ymm0[13],mem[14],ymm0[15] sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pblendw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpblendw {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3,4],ymm0[5,6,7,8,9],ymm1[10,11,12],ymm0[13,14,15] sched: [1:1.00]
; HASWELL-NEXT: vpaddb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastb %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpbroadcastb (%rdi), %xmm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vpaddb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastb %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastb_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastb %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpbroadcastb (%rdi), %ymm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vpaddb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastb_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastb %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastd %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpbroadcastd (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastd %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastd %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpbroadcastd (%rdi), %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastd %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastq %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpbroadcastq (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastq %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastq_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastq %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpbroadcastq (%rdi), %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastq_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastq %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastw %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpbroadcastw (%rdi), %xmm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastw %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pbroadcastw_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpbroadcastw %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpbroadcastw (%rdi), %ymm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pbroadcastw_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpbroadcastw %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpcmpeqb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpcmpeqd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpcmpeqq (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqq (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpcmpeqw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpcmpgtb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpgtb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpcmpgtd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpgtd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpcmpgtq (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtq %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpcmpgtq (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtq %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpcmpgtw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpgtw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddq %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_perm2i128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vperm2i128 {{.*#+}} ymm1 = ymm0[2,3],ymm1[0,1] sched: [3:1.00]
+; BROADWELL-NEXT: vperm2i128 {{.*#+}} ymm0 = ymm0[2,3],mem[0,1] sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_perm2i128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vperm2i128 {{.*#+}} ymm1 = ymm0[2,3],ymm1[0,1] sched: [3:1.00]
; HASWELL-NEXT: vpaddd %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermd %ymm1, %ymm0, %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpermd (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermd %ymm1, %ymm0, %ymm1 # sched: [3:1.00]
; HASWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermpd {{.*#+}} ymm0 = ymm0[3,2,2,3] sched: [3:1.00]
+; BROADWELL-NEXT: vpermpd {{.*#+}} ymm1 = mem[0,2,2,3] sched: [3:1.00]
+; BROADWELL-NEXT: vaddpd %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermpd {{.*#+}} ymm0 = ymm0[3,2,2,3] sched: [3:1.00]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermps %ymm1, %ymm0, %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpermps (%rdi), %ymm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermps %ymm1, %ymm0, %ymm1 # sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_permq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpermq {{.*#+}} ymm0 = ymm0[3,2,2,3] sched: [3:1.00]
+; BROADWELL-NEXT: vpermq {{.*#+}} ymm1 = mem[0,2,2,3] sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_permq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpermq {{.*#+}} ymm0 = ymm0[3,2,2,3] sched: [3:1.00]
; HASWELL-NEXT: vpgatherdd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherdd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherdd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherdd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherdd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vpgatherdd %ymm2, (%rdi,%ymm1,2), %ymm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherdd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherdd %ymm2, (%rdi,%ymm1,2), %ymm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherdd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherdd %ymm2, (%rdi,%ymm1,2), %ymm0 # sched: [25:1.00]
; HASWELL-NEXT: vpgatherdq %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherdq %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherdq %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vpgatherdq %ymm2, (%rdi,%xmm1,2), %ymm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherdq_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherdq %ymm2, (%rdi,%xmm1,2), %ymm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherdq_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherdq %ymm2, (%rdi,%xmm1,2), %ymm0 # sched: [25:1.00]
; HASWELL-NEXT: vpgatherqd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherqd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherqd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherqd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherqd %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherqd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherqd %xmm2, (%rdi,%ymm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherqd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherqd %xmm2, (%rdi,%ymm1,2), %xmm0 # sched: [25:1.00]
; HASWELL-NEXT: vpgatherqq %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherqq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherqq %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherqq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherqq %xmm2, (%rdi,%xmm1,2), %xmm0 # sched: [22:1.00]
; HASWELL-NEXT: vpgatherqq %ymm2, (%rdi,%ymm1,2), %ymm0 # sched: [1:?]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pgatherqq_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpgatherqq %ymm2, (%rdi,%ymm1,2), %ymm0 # sched: [1:?]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pgatherqq_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpgatherqq %ymm2, (%rdi,%ymm1,2), %ymm0 # sched: [25:1.00]
; HASWELL-NEXT: vphaddd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphaddd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphaddd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphaddd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: vphaddsw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphaddsw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphaddsw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphaddsw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: vphaddw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphaddw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphaddw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphaddw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: vphsubd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphsubd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphsubd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphsubd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: vphsubsw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphsubsw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphsubsw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphsubsw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: vphsubw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphsubw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphsubw (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphsubw %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: vpmaddubsw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaddubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmaddubsw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaddubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmaddwd (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaddwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmaddwd (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaddwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vmovdqa %xmm2, %xmm0 # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaskmovd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaskmovd (%rdi), %xmm0, %xmm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vpmaskmovd %xmm1, %xmm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovdqa %xmm2, %xmm0 # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaskmovd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaskmovd (%rdi), %xmm0, %xmm2 # sched: [7:0.50]
; HASWELL-NEXT: vmovdqa %ymm2, %ymm0 # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaskmovd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaskmovd (%rdi), %ymm0, %ymm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vpmaskmovd %ymm1, %ymm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovdqa %ymm2, %ymm0 # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaskmovd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaskmovd (%rdi), %ymm0, %ymm2 # sched: [8:0.50]
; HASWELL-NEXT: vmovdqa %xmm2, %xmm0 # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaskmovq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaskmovq (%rdi), %xmm0, %xmm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vpmaskmovq %xmm1, %xmm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovdqa %xmm2, %xmm0 # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaskmovq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaskmovq (%rdi), %xmm0, %xmm2 # sched: [7:0.50]
; HASWELL-NEXT: vmovdqa %ymm2, %ymm0 # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaskmovq_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaskmovq (%rdi), %ymm0, %ymm2 # sched: [2:2.00]
+; BROADWELL-NEXT: vpmaskmovq %ymm1, %ymm0, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: vmovdqa %ymm2, %ymm0 # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaskmovq_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaskmovq (%rdi), %ymm0, %ymm2 # sched: [8:0.50]
; HASWELL-NEXT: vpmaxsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxsd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxsd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxub (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxub:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxub (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxub:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxud (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxud:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxud (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxud:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxuw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxuw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminsd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminsd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminsd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminsd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminub (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminub:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminub %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminub (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminub:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminub %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminud (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminud:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminud %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminud (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminud:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminud %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminuw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminuw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminuw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminuw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovmskb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovmskb %ymm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovmskb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovmskb %ymm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxbd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxbd %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpmovsxbd (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxbd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxbd %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxbq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxbq %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpmovsxbq (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxbq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxbq %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxbw %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpmovsxbw (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxbw %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxdq %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpmovsxdq (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxdq %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxwd %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpmovsxwd (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxwd %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxwq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxwq %xmm0, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpmovsxwq (%rdi), %ymm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxwq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxwq %xmm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxbd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxbd {{.*#+}} ymm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero,xmm0[4],zero,zero,zero,xmm0[5],zero,zero,zero,xmm0[6],zero,zero,zero,xmm0[7],zero,zero,zero sched: [3:1.00]
+; BROADWELL-NEXT: vpmovzxbd {{.*#+}} ymm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero,mem[4],zero,zero,zero,mem[5],zero,zero,zero,mem[6],zero,zero,zero,mem[7],zero,zero,zero sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxbd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxbd {{.*#+}} ymm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero,xmm0[4],zero,zero,zero,xmm0[5],zero,zero,zero,xmm0[6],zero,zero,zero,xmm0[7],zero,zero,zero sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxbq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxbq {{.*#+}} ymm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero,xmm0[2],zero,zero,zero,zero,zero,zero,zero,xmm0[3],zero,zero,zero,zero,zero,zero,zero sched: [3:1.00]
+; BROADWELL-NEXT: vpmovzxbq {{.*#+}} ymm1 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero,mem[2],zero,zero,zero,zero,zero,zero,zero,mem[3],zero,zero,zero,zero,zero,zero,zero sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxbq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxbq {{.*#+}} ymm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero,xmm0[2],zero,zero,zero,zero,zero,zero,zero,xmm0[3],zero,zero,zero,zero,zero,zero,zero sched: [3:1.00]
; HASWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxbw {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero,xmm0[8],zero,xmm0[9],zero,xmm0[10],zero,xmm0[11],zero,xmm0[12],zero,xmm0[13],zero,xmm0[14],zero,xmm0[15],zero sched: [3:1.00]
+; BROADWELL-NEXT: vpmovzxbw {{.*#+}} ymm1 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero,mem[8],zero,mem[9],zero,mem[10],zero,mem[11],zero,mem[12],zero,mem[13],zero,mem[14],zero,mem[15],zero sched: [3:1.00]
+; BROADWELL-NEXT: vpaddw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxbw {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero,xmm0[8],zero,xmm0[9],zero,xmm0[10],zero,xmm0[11],zero,xmm0[12],zero,xmm0[13],zero,xmm0[14],zero,xmm0[15],zero sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxdq {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero sched: [3:1.00]
+; BROADWELL-NEXT: vpmovzxdq {{.*#+}} ymm1 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxdq {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero sched: [3:1.00]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxwd {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero sched: [3:1.00]
+; BROADWELL-NEXT: vpmovzxwd {{.*#+}} ymm1 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxwd {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero sched: [3:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxwq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxwq {{.*#+}} ymm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero sched: [3:1.00]
+; BROADWELL-NEXT: vpmovzxwq {{.*#+}} ymm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero sched: [3:1.00]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxwq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxwq {{.*#+}} ymm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero sched: [3:1.00]
; HASWELL-NEXT: vpmuldq (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmuldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmuldq %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmuldq (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmuldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmuldq %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulhrsw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhrsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmulhrsw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhrsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulhuw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmulhuw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulhw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmulhw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulld (%rdi), %ymm0, %ymm0 # sched: [10:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulld %ymm1, %ymm0, %ymm0 # sched: [10:2.00]
+; BROADWELL-NEXT: vpmulld (%rdi), %ymm0, %ymm0 # sched: [10:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulld %ymm1, %ymm0, %ymm0 # sched: [8:0.67]
; HASWELL-NEXT: vpmullw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmullw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmullw %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmullw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmullw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmullw %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmuludq (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmuludq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmuludq %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmuludq (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmuludq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmuludq %ymm1, %ymm0, %ymm0 # sched: [4:0.33]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_por:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpor (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_por:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsadbw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psadbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpsadbw (%rdi), %ymm0, %ymm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psadbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: vpshufb (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshufb %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpshufb (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshufb %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshufd {{.*#+}} ymm0 = ymm0[3,2,1,0,7,6,5,4] sched: [1:1.00]
+; BROADWELL-NEXT: vpshufd {{.*#+}} ymm1 = mem[1,0,3,2,5,4,7,6] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshufd {{.*#+}} ymm0 = ymm0[3,2,1,0,7,6,5,4] sched: [1:1.00]
; HASWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufhw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshufhw {{.*#+}} ymm0 = ymm0[0,1,2,3,7,6,5,4,8,9,10,11,15,14,13,12] sched: [1:1.00]
+; BROADWELL-NEXT: vpshufhw {{.*#+}} ymm1 = mem[0,1,2,3,5,4,7,6,8,9,10,11,13,12,15,14] sched: [1:1.00]
+; BROADWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufhw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshufhw {{.*#+}} ymm0 = ymm0[0,1,2,3,7,6,5,4,8,9,10,11,15,14,13,12] sched: [1:1.00]
; HASWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshuflw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshuflw {{.*#+}} ymm0 = ymm0[3,2,1,0,4,5,6,7,11,10,9,8,12,13,14,15] sched: [1:1.00]
+; BROADWELL-NEXT: vpshuflw {{.*#+}} ymm1 = mem[1,0,3,2,4,5,6,7,9,8,11,10,12,13,14,15] sched: [1:1.00]
+; BROADWELL-NEXT: vpor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshuflw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshuflw {{.*#+}} ymm0 = ymm0[3,2,1,0,4,5,6,7,11,10,9,8,12,13,14,15] sched: [1:1.00]
; HASWELL-NEXT: vpsignb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsignb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsignb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsignb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsignd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsignd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsignd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsignd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsignw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsignw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsignw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsignw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpslld $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pslld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpslld %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpslld (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpslld $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pslld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpslld %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpslldq {{.*#+}} ymm0 = zero,zero,zero,ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12],zero,zero,zero,ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pslldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpslldq {{.*#+}} ymm0 = zero,zero,zero,ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12],zero,zero,zero,ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pslldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpslldq {{.*#+}} ymm0 = zero,zero,zero,ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12],zero,zero,zero,ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28] sched: [1:1.00]
; HASWELL-NEXT: vpsllq $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllq %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsllq (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsllq $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllq %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsllvd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllvd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vpsllvd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllvd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsllvd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllvd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vpsllvd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllvd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsllvq (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllvq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsllvq (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllvq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsllvq (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllvq_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsllvq (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllvq_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsllw $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllw %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsllw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsllw $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllw %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsrad $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrad:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrad %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsrad (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsrad $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrad:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrad %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsravd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psravd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsravd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vpsravd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psravd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsravd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsravd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psravd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsravd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vpsravd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psravd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsravd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsraw $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psraw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsraw %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsraw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsraw $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psraw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsraw %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsrld $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrld %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsrld (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsrld $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrld %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsrldq {{.*#+}} ymm0 = ymm0[3,4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,ymm0[19,20,21,22,23,24,25,26,27,28,29,30,31],zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrldq {{.*#+}} ymm0 = ymm0[3,4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,ymm0[19,20,21,22,23,24,25,26,27,28,29,30,31],zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrldq {{.*#+}} ymm0 = ymm0[3,4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,ymm0[19,20,21,22,23,24,25,26,27,28,29,30,31],zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: vpsrlq $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsrlq (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsrlq $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsrlvd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlvd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vpsrlvd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlvd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsrlvd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlvd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vpsrlvd (%rdi), %ymm0, %ymm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlvd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsrlvq (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlvq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsrlvq (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlvq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsrlvq (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlvq_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsrlvq (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlvq_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsrlw $2, %ymm0, %ymm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vpsrlw (%rdi), %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpsrlw $2, %ymm0, %ymm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 # sched: [4:1.00]
; HASWELL-NEXT: vpsubb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubb %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsubd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubd (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsubq (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubq (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubq %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsubsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubsb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubsw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubusb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubusb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubusb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubusb (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubusb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubusb %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubusw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubusw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubusw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubusw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubusw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubusw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubw %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubw (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubw %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; HASWELL-NEXT: vpunpckhbw {{.*#+}} ymm0 = ymm0[8],mem[8],ymm0[9],mem[9],ymm0[10],mem[10],ymm0[11],mem[11],ymm0[12],mem[12],ymm0[13],mem[13],ymm0[14],mem[14],ymm0[15],mem[15],ymm0[24],mem[24],ymm0[25],mem[25],ymm0[26],mem[26],ymm0[27],mem[27],ymm0[28],mem[28],ymm0[29],mem[29],ymm0[30],mem[30],ymm0[31],mem[31] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhbw {{.*#+}} ymm0 = ymm0[8],ymm1[8],ymm0[9],ymm1[9],ymm0[10],ymm1[10],ymm0[11],ymm1[11],ymm0[12],ymm1[12],ymm0[13],ymm1[13],ymm0[14],ymm1[14],ymm0[15],ymm1[15],ymm0[24],ymm1[24],ymm0[25],ymm1[25],ymm0[26],ymm1[26],ymm0[27],ymm1[27],ymm0[28],ymm1[28],ymm0[29],ymm1[29],ymm0[30],ymm1[30],ymm0[31],ymm1[31] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhbw {{.*#+}} ymm0 = ymm0[8],mem[8],ymm0[9],mem[9],ymm0[10],mem[10],ymm0[11],mem[11],ymm0[12],mem[12],ymm0[13],mem[13],ymm0[14],mem[14],ymm0[15],mem[15],ymm0[24],mem[24],ymm0[25],mem[25],ymm0[26],mem[26],ymm0[27],mem[27],ymm0[28],mem[28],ymm0[29],mem[29],ymm0[30],mem[30],ymm0[31],mem[31] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhbw {{.*#+}} ymm0 = ymm0[8],ymm1[8],ymm0[9],ymm1[9],ymm0[10],ymm1[10],ymm0[11],ymm1[11],ymm0[12],ymm1[12],ymm0[13],ymm1[13],ymm0[14],ymm1[14],ymm0[15],ymm1[15],ymm0[24],ymm1[24],ymm0[25],ymm1[25],ymm0[26],ymm1[26],ymm0[27],ymm1[27],ymm0[28],ymm1[28],ymm0[29],ymm1[29],ymm0[30],ymm1[30],ymm0[31],ymm1[31] sched: [1:1.00]
; HASWELL-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhdq {{.*#+}} ymm0 = ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[6],ymm1[6],ymm0[7],ymm1[7] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhdq {{.*#+}} ymm0 = ymm0[2],mem[2],ymm0[3],mem[3],ymm0[6],mem[6],ymm0[7],mem[7] sched: [1:1.00]
+; BROADWELL-NEXT: vpcmpeqd %ymm1, %ymm1, %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhdq {{.*#+}} ymm0 = ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[6],ymm1[6],ymm0[7],ymm1[7] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhqdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhqdq {{.*#+}} ymm1 = ymm0[1],ymm1[1],ymm0[3],ymm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhqdq {{.*#+}} ymm0 = ymm0[1],mem[1],ymm0[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhqdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhqdq {{.*#+}} ymm1 = ymm0[1],ymm1[1],ymm0[3],ymm1[3] sched: [1:1.00]
; HASWELL-NEXT: vpunpckhwd {{.*#+}} ymm0 = ymm0[4],mem[4],ymm0[5],mem[5],ymm0[6],mem[6],ymm0[7],mem[7],ymm0[12],mem[12],ymm0[13],mem[13],ymm0[14],mem[14],ymm0[15],mem[15] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhwd {{.*#+}} ymm0 = ymm0[4],ymm1[4],ymm0[5],ymm1[5],ymm0[6],ymm1[6],ymm0[7],ymm1[7],ymm0[12],ymm1[12],ymm0[13],ymm1[13],ymm0[14],ymm1[14],ymm0[15],ymm1[15] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhwd {{.*#+}} ymm0 = ymm0[4],mem[4],ymm0[5],mem[5],ymm0[6],mem[6],ymm0[7],mem[7],ymm0[12],mem[12],ymm0[13],mem[13],ymm0[14],mem[14],ymm0[15],mem[15] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhwd {{.*#+}} ymm0 = ymm0[4],ymm1[4],ymm0[5],ymm1[5],ymm0[6],ymm1[6],ymm0[7],ymm1[7],ymm0[12],ymm1[12],ymm0[13],ymm1[13],ymm0[14],ymm1[14],ymm0[15],ymm1[15] sched: [1:1.00]
; HASWELL-NEXT: vpunpcklbw {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[2],mem[2],ymm0[3],mem[3],ymm0[4],mem[4],ymm0[5],mem[5],ymm0[6],mem[6],ymm0[7],mem[7],ymm0[16],mem[16],ymm0[17],mem[17],ymm0[18],mem[18],ymm0[19],mem[19],ymm0[20],mem[20],ymm0[21],mem[21],ymm0[22],mem[22],ymm0[23],mem[23] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpcklbw {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[4],ymm1[4],ymm0[5],ymm1[5],ymm0[6],ymm1[6],ymm0[7],ymm1[7],ymm0[16],ymm1[16],ymm0[17],ymm1[17],ymm0[18],ymm1[18],ymm0[19],ymm1[19],ymm0[20],ymm1[20],ymm0[21],ymm1[21],ymm0[22],ymm1[22],ymm0[23],ymm1[23] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpcklbw {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[2],mem[2],ymm0[3],mem[3],ymm0[4],mem[4],ymm0[5],mem[5],ymm0[6],mem[6],ymm0[7],mem[7],ymm0[16],mem[16],ymm0[17],mem[17],ymm0[18],mem[18],ymm0[19],mem[19],ymm0[20],mem[20],ymm0[21],mem[21],ymm0[22],mem[22],ymm0[23],mem[23] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpcklbw {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[4],ymm1[4],ymm0[5],ymm1[5],ymm0[6],ymm1[6],ymm0[7],ymm1[7],ymm0[16],ymm1[16],ymm0[17],ymm1[17],ymm0[18],ymm1[18],ymm0[19],ymm1[19],ymm0[20],ymm1[20],ymm0[21],ymm1[21],ymm0[22],ymm1[22],ymm0[23],ymm1[23] sched: [1:1.00]
; HASWELL-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckldq {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[4],ymm1[4],ymm0[5],ymm1[5] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckldq {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[4],mem[4],ymm0[5],mem[5] sched: [1:1.00]
+; BROADWELL-NEXT: vpcmpeqd %ymm1, %ymm1, %ymm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubd %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckldq {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[4],ymm1[4],ymm0[5],ymm1[5] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklqdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpcklqdq {{.*#+}} ymm1 = ymm0[0],ymm1[0],ymm0[2],ymm1[2] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpcklqdq {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[2],mem[2] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %ymm0, %ymm1, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklqdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpcklqdq {{.*#+}} ymm1 = ymm0[0],ymm1[0],ymm0[2],ymm1[2] sched: [1:1.00]
; HASWELL-NEXT: vpunpcklwd {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[2],mem[2],ymm0[3],mem[3],ymm0[8],mem[8],ymm0[9],mem[9],ymm0[10],mem[10],ymm0[11],mem[11] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpcklwd {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[8],ymm1[8],ymm0[9],ymm1[9],ymm0[10],ymm1[10],ymm0[11],ymm1[11] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpcklwd {{.*#+}} ymm0 = ymm0[0],mem[0],ymm0[1],mem[1],ymm0[2],mem[2],ymm0[3],mem[3],ymm0[8],mem[8],ymm0[9],mem[9],ymm0[10],mem[10],ymm0[11],mem[11] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpcklwd {{.*#+}} ymm0 = ymm0[0],ymm1[0],ymm0[1],ymm1[1],ymm0[2],ymm1[2],ymm0[3],ymm1[3],ymm0[8],ymm1[8],ymm0[9],ymm1[9],ymm0[10],ymm1[10],ymm0[11],ymm1[11] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pxor:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpxor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpxor (%rdi), %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %ymm1, %ymm0, %ymm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pxor:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpxor %ymm1, %ymm0, %ymm0 # sched: [1:0.33]
; 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=+bmi | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andn_i16:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: andnl %esi, %edi, %eax # sched: [1:0.50]
+; BROADWELL-NEXT: notl %edi # sched: [1:0.25]
+; BROADWELL-NEXT: andw (%rdx), %di # sched: [1:0.50]
+; BROADWELL-NEXT: addl %edi, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andn_i16:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: andnl %esi, %edi, %eax # sched: [1:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andn_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: andnl %esi, %edi, %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: andnl (%rdx), %edi, %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andn_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: andnl %esi, %edi, %ecx # sched: [1:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andn_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: andnq %rsi, %rdi, %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: andnq (%rdx), %rdi, %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andn_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: andnq %rsi, %rdi, %rcx # sched: [1:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_bextr_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: bextrl %edi, (%rdx), %ecx # sched: [2:0.50]
+; BROADWELL-NEXT: bextrl %edi, %esi, %eax # sched: [2:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_bextr_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: bextrl %edi, (%rdx), %ecx # sched: [7:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_bextr_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: bextrq %rdi, (%rdx), %rcx # sched: [2:0.50]
+; BROADWELL-NEXT: bextrq %rdi, %rsi, %rax # sched: [2:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_bextr_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: bextrq %rdi, (%rdx), %rcx # sched: [7:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blsi_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: blsil (%rsi), %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: blsil %edi, %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blsi_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: blsil (%rsi), %ecx # sched: [6:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blsi_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: blsiq (%rsi), %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: blsiq %rdi, %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blsi_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: blsiq (%rsi), %rcx # sched: [6:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blsmsk_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: blsmskl (%rsi), %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: blsmskl %edi, %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blsmsk_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: blsmskl (%rsi), %ecx # sched: [6:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blsmsk_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: blsmskq (%rsi), %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: blsmskq %rdi, %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blsmsk_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: blsmskq (%rsi), %rcx # sched: [6:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blsr_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: blsrl (%rsi), %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: blsrl %edi, %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blsr_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: blsrl (%rsi), %ecx # sched: [6:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blsr_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: blsrq (%rsi), %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: blsrq %rdi, %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blsr_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: blsrq (%rsi), %rcx # sched: [6:0.50]
; HASWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cttz_i16:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: tzcntw (%rsi), %cx # sched: [3:1.00]
+; BROADWELL-NEXT: tzcntw %di, %ax # sched: [3:1.00]
+; BROADWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cttz_i16:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: tzcntw (%rsi), %cx # sched: [8:1.00]
; HASWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cttz_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: tzcntl (%rsi), %ecx # sched: [3:1.00]
+; BROADWELL-NEXT: tzcntl %edi, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cttz_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: tzcntl (%rsi), %ecx # sched: [8:1.00]
; HASWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cttz_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: tzcntq (%rsi), %rcx # sched: [3:1.00]
+; BROADWELL-NEXT: tzcntq %rdi, %rax # sched: [3:1.00]
+; BROADWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cttz_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: tzcntq (%rsi), %rcx # sched: [8:1.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=+bmi2 | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=COMMON --check-prefix=HASWELL
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=COMMON --check-prefix=SKYLAKE
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=COMMON --check-prefix=KNL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=KNL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
define i32 @test_bzhi_i32(i32 %a0, i32 %a1, i32 *%a2) {
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_bzhi_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: bzhil %edi, (%rdx), %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: bzhil %edi, %esi, %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_bzhi_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: bzhil %edi, (%rdx), %ecx # sched: [6:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_bzhi_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: bzhiq %rdi, (%rdx), %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: bzhiq %rdi, %rsi, %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_bzhi_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: bzhiq %rdi, (%rdx), %rcx # sched: [6:0.50]
; HASWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulx_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movq %rdx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: movq %rdi, %rdx # sched: [1:0.25]
+; BROADWELL-NEXT: mulxq %rsi, %rsi, %rcx # sched: [4:1.00]
+; BROADWELL-NEXT: mulxq (%rax), %rdx, %rax # sched: [4:1.00]
+; BROADWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulx_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movq %rdx, %rax # sched: [1:0.25]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pdep_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pdepl (%rdx), %edi, %ecx # sched: [3:1.00]
+; BROADWELL-NEXT: pdepl %esi, %edi, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pdep_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pdepl (%rdx), %edi, %ecx # sched: [8:1.00]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pdep_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pdepq (%rdx), %rdi, %rcx # sched: [3:1.00]
+; BROADWELL-NEXT: pdepq %rsi, %rdi, %rax # sched: [3:1.00]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pdep_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pdepq (%rdx), %rdi, %rcx # sched: [8:1.00]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pext_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pextl (%rdx), %edi, %ecx # sched: [3:1.00]
+; BROADWELL-NEXT: pextl %esi, %edi, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pext_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pextl (%rdx), %edi, %ecx # sched: [8:1.00]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pext_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pextq (%rdx), %rdi, %rcx # sched: [3:1.00]
+; BROADWELL-NEXT: pextq %rsi, %rdi, %rax # sched: [3:1.00]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pext_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pextq (%rdx), %rdi, %rcx # sched: [8:1.00]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rorx_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: rorxl $5, %edi, %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: rorxl $5, (%rdx), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rorx_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: rorxl $5, %edi, %ecx # sched: [1:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rorx_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: rorxq $5, %rdi, %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: rorxq $5, (%rdx), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rorx_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: rorxq $5, %rdi, %rcx # sched: [1:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sarx_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: sarxl %esi, %edi, %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: sarxl %esi, (%rdx), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sarx_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: sarxl %esi, %edi, %ecx # sched: [1:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sarx_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: sarxq %rsi, %rdi, %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: sarxq %rsi, (%rdx), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sarx_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: sarxq %rsi, %rdi, %rcx # sched: [1:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shlx_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: shlxl %esi, %edi, %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: shlxl %esi, (%rdx), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shlx_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: shlxl %esi, %edi, %ecx # sched: [1:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shlx_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: shlxq %rsi, %rdi, %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: shlxq %rsi, (%rdx), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shlx_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: shlxq %rsi, %rdi, %rcx # sched: [1:0.50]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shrx_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: shrxl %esi, %edi, %ecx # sched: [1:0.50]
+; BROADWELL-NEXT: shrxl %esi, (%rdx), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shrx_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: shrxl %esi, %edi, %ecx # sched: [1:0.50]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shrx_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: shrxq %rsi, %rdi, %rcx # sched: [1:0.50]
+; BROADWELL-NEXT: shrxq %rsi, (%rdx), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shrx_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: shrxq %rsi, %rdi, %rcx # sched: [1:0.50]
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=x86-64 -mattr=+f16c | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=ivybridge | FileCheck %s --check-prefix=CHECK --check-prefix=IVY
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; 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
; HASWELL-NEXT: vaddps %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vcvtph2ps_128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtph2ps (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vcvtph2ps %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vaddps %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vcvtph2ps_128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtph2ps (%rdi), %xmm1 # sched: [9:0.50]
; HASWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vcvtph2ps_256:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtph2ps (%rdi), %ymm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vcvtph2ps %xmm0, %ymm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vaddps %ymm0, %ymm1, %ymm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vcvtph2ps_256:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtph2ps (%rdi), %ymm1 # sched: [10:0.50]
; HASWELL-NEXT: vcvtps2ph $0, %xmm1, (%rdi) # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vcvtps2ph_128:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtps2ph $0, %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtps2ph $0, %xmm1, (%rdi) # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vcvtps2ph_128:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtps2ph $0, %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vzeroupper # sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vcvtps2ph_256:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtps2ph $0, %ymm0, %xmm0 # sched: [6:1.00]
+; BROADWELL-NEXT: vcvtps2ph $0, %ymm1, (%rdi) # sched: [6:1.00]
+; BROADWELL-NEXT: vzeroupper # sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vcvtps2ph_256:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtps2ph $0, %ymm0, %xmm0 # sched: [7:1.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=+fma | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=KNL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; HASWELL-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmadd213pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmadd213pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmadd213pd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmadd213pd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmadd213ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmadd213ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmadd213ps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmadd213ps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmadd213sd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmadd213sd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmadd213ss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmadd213ss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmaddsubpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmaddsubpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmaddsubpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmaddsubpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmaddsubps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmaddsubps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmaddsubps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmaddsubps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsubaddpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsubaddpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsubaddpd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsubaddpd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsubaddps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsubaddps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsubaddps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsubaddps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsub213pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsub213pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsub213pd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsub213pd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsub213ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsub213ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsub213ps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsub213ps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsub213sd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsub213sd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfmsub213ss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfmsub213ss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmadd213pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmadd213pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmadd213pd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmadd213pd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmadd213ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmadd213ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmadd213ps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmadd213ps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmadd213sd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmadd213sd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmadd213ss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmadd213ss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmsub213pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmsub213pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmsub213pd_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmsub213pd_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmsub213ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmsub213ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmsub213ps_ymm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmsub213ps_ymm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmsub213sd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmsub213sd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_vfnmsub213ss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_vfnmsub213ss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: leal -24(%rdi), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal -24(%rdi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
; HASWELL-NEXT: leal 1024(%rdi), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal 1024(%rdi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
; HASWELL-NEXT: leal (%rdi,%rsi), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rsi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
; HASWELL-NEXT: addl $16, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rsi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl $16, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
; HASWELL-NEXT: # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rsi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl $-4096, %eax # imm = 0xF000
+; BROADWELL-NEXT: # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
; HASWELL-NEXT: leal (%rdi,%rdi,2), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_mul:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rdi,2), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_mul:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
; HASWELL-NEXT: addl $-32, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_mul_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rdi,2), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl $-32, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_mul_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
; HASWELL-NEXT: # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_mul_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rdi,8), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl $10000, %eax # imm = 0x2710
+; BROADWELL-NEXT: # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_mul_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
; HASWELL-NEXT: leal (%rdi,%rsi,2), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_scale:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rsi,2), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_scale:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
; HASWELL-NEXT: addl $96, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_scale_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rsi,4), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl $96, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_scale_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
; HASWELL-NEXT: # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_scale_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
+; BROADWELL-NEXT: # kill: %EDI<def> %EDI<kill> %RDI<def>
+; BROADWELL-NEXT: leal (%rdi,%rsi,8), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: addl $-1200, %eax # imm = 0xFB50
+; BROADWELL-NEXT: # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_scale_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: # kill: %ESI<def> %ESI<kill> %RSI<def>
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: leaq -24(%rdi), %rax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq -24(%rdi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq -24(%rdi), %rax # sched: [1:0.50]
; HASWELL-NEXT: leaq 1024(%rdi), %rax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq 1024(%rdi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq 1024(%rdi), %rax # sched: [1:0.50]
; HASWELL-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
; HASWELL-NEXT: addq $16, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq $16, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
; HASWELL-NEXT: # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq $-4096, %rax # imm = 0xF000
+; BROADWELL-NEXT: # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rsi), %rax # sched: [1:0.50]
; HASWELL-NEXT: leaq (%rdi,%rdi,2), %rax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_mul:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rdi,2), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_mul:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rdi,2), %rax # sched: [1:0.50]
; HASWELL-NEXT: addq $-32, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_mul_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rdi,2), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq $-32, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_mul_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rdi,2), %rax # sched: [1:0.50]
; HASWELL-NEXT: # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_mul_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rdi,8), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq $10000, %rax # imm = 0x2710
+; BROADWELL-NEXT: # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_mul_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rdi,8), %rax # sched: [1:0.50]
; HASWELL-NEXT: leaq (%rdi,%rsi,2), %rax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_scale:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rsi,2), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_scale:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rsi,2), %rax # sched: [1:0.50]
; HASWELL-NEXT: addq $96, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_scale_offset:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rsi,4), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq $96, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_scale_offset:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rsi,4), %rax # sched: [1:0.50]
; HASWELL-NEXT: # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lea_add_scale_offset_big:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi,%rsi,8), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: addq $-1200, %rax # imm = 0xFB50
+; BROADWELL-NEXT: # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lea_add_scale_offset_big:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi,%rsi,8), %rax # sched: [1:0.50]
; 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=+lzcnt | FileCheck %s --check-prefix=CHECK --check-prefix=GENERIC
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
-; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; 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 i16 @test_ctlz_i16(i16 zeroext %a0, i16 *%a1) {
; GENERIC-LABEL: test_ctlz_i16:
; HASWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ctlz_i16:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: lzcntw (%rsi), %cx # sched: [3:1.00]
+; BROADWELL-NEXT: lzcntw %di, %ax # sched: [3:1.00]
+; BROADWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ctlz_i16:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: lzcntw (%rsi), %cx # sched: [8:1.00]
; HASWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ctlz_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: lzcntl (%rsi), %ecx # sched: [3:1.00]
+; BROADWELL-NEXT: lzcntl %edi, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ctlz_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: lzcntl (%rsi), %ecx # sched: [8:1.00]
; HASWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ctlz_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: lzcntq (%rsi), %rcx # sched: [3:1.00]
+; BROADWELL-NEXT: lzcntq %rdi, %rax # sched: [3:1.00]
+; BROADWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ctlz_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: lzcntq (%rsi), %rcx # sched: [8:1.00]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpd2pi:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: cvtpd2pi (%rdi), %mm0 # sched: [4:1.00]
+; BROADWELL-NEXT: cvtpd2pi %xmm0, %mm1 # sched: [4:1.00]
+; BROADWELL-NEXT: por %mm1, %mm0 # sched: [1:0.33]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpd2pi:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: cvtpd2pi %xmm0, %mm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpi2pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: cvtpi2pd %mm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: cvtpi2pd (%rdi), %xmm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpi2pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: cvtpi2pd %mm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpi2ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: cvtpi2ps %mm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: cvtpi2ps (%rdi), %xmm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpi2ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: cvtpi2ps %mm0, %xmm0 # sched: [6:2.00]
; HASWELL-NEXT: movd %mm1, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtps2pi:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: cvtps2pi %xmm0, %mm0 # sched: [4:1.00]
+; BROADWELL-NEXT: cvtps2pi (%rdi), %mm1 # sched: [3:1.00]
+; BROADWELL-NEXT: por %mm0, %mm1 # sched: [1:0.33]
+; BROADWELL-NEXT: movd %mm1, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtps2pi:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: cvtps2pi %xmm0, %mm0 # sched: [5:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttpd2pi:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: cvttpd2pi (%rdi), %mm0 # sched: [4:1.00]
+; BROADWELL-NEXT: cvttpd2pi %xmm0, %mm1 # sched: [4:1.00]
+; BROADWELL-NEXT: por %mm1, %mm0 # sched: [1:0.33]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttpd2pi:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: cvttpd2pi %xmm0, %mm0 # sched: [5:1.00]
; HASWELL-NEXT: movd %mm1, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttps2pi:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: cvttps2pi %xmm0, %mm0 # sched: [4:1.00]
+; BROADWELL-NEXT: cvttps2pi (%rdi), %mm1 # sched: [3:1.00]
+; BROADWELL-NEXT: por %mm0, %mm1 # sched: [1:0.33]
+; BROADWELL-NEXT: movd %mm1, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttps2pi:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: cvttps2pi %xmm0, %mm0 # sched: [5:1.00]
; HASWELL-NEXT: emms # sched: [31:10.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_emms:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: emms # sched: [31:10.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_emms:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: emms # sched: [10:4.50]
; HASWELL-NEXT: maskmovq %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maskmovq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: maskmovq %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maskmovq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: maskmovq %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movl %ecx, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovd %edi, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vmovq %xmm0, -{{[0-9]+}}(%rsp) # sched: [1:1.00]
+; BROADWELL-NEXT: movq -{{[0-9]+}}(%rsp), %mm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero sched: [1:0.50]
+; BROADWELL-NEXT: vmovlps %xmm0, -{{[0-9]+}}(%rsp) # sched: [1:1.00]
+; BROADWELL-NEXT: paddd -{{[0-9]+}}(%rsp), %mm1 # sched: [1:0.50]
+; BROADWELL-NEXT: paddd %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm1, %ecx # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %eax # sched: [1:1.00]
+; BROADWELL-NEXT: movl %ecx, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovd %edi, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movdq2q:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movdq2q %xmm0, %mm0 # sched: [2:0.67]
+; BROADWELL-NEXT: paddd %mm0, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movdq2q:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movdq2q %xmm0, %mm0 # sched: [2:1.00]
; HASWELL-NEXT: movntq %mm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movntq %mm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movntq %mm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: movq %mm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movq (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddd %mm0, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movq %mm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movq (%rdi), %mm0 # sched: [5:0.50]
; HASWELL-NEXT: movq2dq %mm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movq2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movq2dq %mm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movq2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movq2dq %mm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pabsb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pabsb %mm0, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pabsb (%rdi), %mm0 # sched: [6:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pabsd (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pabsd %mm0, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pabsd (%rdi), %mm0 # sched: [6:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pabsw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pabsw %mm0, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pabsw (%rdi), %mm0 # sched: [6:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packssdw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: packssdw %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: packssdw (%rdi), %mm0 # sched: [2:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packssdw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: packssdw %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packsswb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: packsswb %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: packsswb (%rdi), %mm0 # sched: [2:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packsswb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: packsswb %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packuswb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: packuswb %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: packuswb (%rdi), %mm0 # sched: [2:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packuswb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: packuswb %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddb %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddd %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddd (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddd %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddq %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddq (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddq %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddsb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddsb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddsb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddsw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddsw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddsw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddusb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddusb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddusb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddusb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddusb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddusw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddusw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddusw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddusw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddusw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: paddw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: paddw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: paddw %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_palignr:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: palignr $1, %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: palignr $1, (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_palignr:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: palignr $1, %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pand:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pand %mm1, %mm0 # sched: [1:0.33]
+; BROADWELL-NEXT: pand (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pand:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pand %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pandn:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pandn %mm1, %mm0 # sched: [1:0.33]
+; BROADWELL-NEXT: pandn (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pandn:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pandn %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pavgb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pavgb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pavgb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pavgb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pavgb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pavgw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pavgw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pavgw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pavgw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pavgw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pcmpeqb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pcmpeqb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pcmpeqb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pcmpeqd %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pcmpeqd (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pcmpeqd %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pcmpeqw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pcmpeqw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pcmpeqw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pcmpgtb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pcmpgtb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pcmpgtb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pcmpgtd %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pcmpgtd (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pcmpgtd %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pcmpgtw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pcmpgtw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pcmpgtw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: pextrw $0, %mm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pextrw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pextrw $0, %mm0, %eax # sched: [2:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pextrw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pextrw $0, %mm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: phaddd %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: phaddd (%rdi), %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: phaddd %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: phaddsw %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: phaddsw (%rdi), %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: phaddsw %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: phaddw %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: phaddw (%rdi), %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: phaddw %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: phsubd %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: phsubd (%rdi), %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: phsubd %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: phsubsw %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: phsubsw (%rdi), %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: phsubsw %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: phsubw %mm1, %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: phsubw (%rdi), %mm0 # sched: [3:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: phsubw %mm1, %mm0 # sched: [3:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pinsrw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pinsrw $0, %edi, %mm0 # sched: [2:2.00]
+; BROADWELL-NEXT: movswl (%rsi), %eax # sched: [4:0.50]
+; BROADWELL-NEXT: pinsrw $1, %eax, %mm0 # sched: [2:2.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pinsrw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pinsrw $0, %edi, %mm0 # sched: [2:2.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaddwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmaddwd %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmaddwd (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaddwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmaddwd %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaddubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmaddubsw %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmaddubsw (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaddubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmaddubsw %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmaxsw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pmaxsw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmaxsw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxub:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmaxub %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pmaxub (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxub:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmaxub %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pminsw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pminsw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pminsw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminub:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pminub %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: pminub (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminub:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pminub %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: pmovmskb %mm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovmskb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmovmskb %mm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovmskb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmovmskb %mm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhrsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmulhrsw %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmulhrsw (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhrsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmulhrsw %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmulhw %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmulhw (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmulhw %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmulhuw %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmulhuw (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmulhuw %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmullw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmullw %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmullw (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmullw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmullw %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmuludq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pmuludq %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: pmuludq (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmuludq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pmuludq %mm1, %mm0 # sched: [4:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_por:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: por %mm1, %mm0 # sched: [1:0.33]
+; BROADWELL-NEXT: por (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_por:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: por %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psadbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psadbw %mm1, %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: psadbw (%rdi), %mm0 # sched: [5:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psadbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psadbw %mm1, %mm0 # sched: [3:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pshufb %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: pshufb (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pshufb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pshufw $0, (%rdi), %mm0 # mm0 = mem[0,0,0,0] sched: [1:1.00]
+; BROADWELL-NEXT: pshufw $0, %mm0, %mm0 # mm0 = mm0[0,0,0,0] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pshufw $0, (%rdi), %mm0 # mm0 = mem[0,0,0,0] sched: [6:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psignb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psignb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psignb %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psignd %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psignd (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psignd %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psignw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psignw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psignw %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pslld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pslld %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: pslld (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: pslld $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pslld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pslld %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psllq %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psllq (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psllq $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psllq %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psllw %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psllw (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psllw $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psllw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrad:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psrad %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrad (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrad $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrad:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psrad %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psraw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psraw %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psraw (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psraw $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psraw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psraw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psrld %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrld (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrld $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psrld %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psrlq %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrlq (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrlq $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psrlq %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psrlw %mm1, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrlw (%rdi), %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: psrlw $7, %mm0 # sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psrlw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubb %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubd %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubd (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubd %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubq %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubq (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubq %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubsb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubsb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubsb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubsw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubsw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubsw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubusb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubusb %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubusb (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubusb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubusb %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubusw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubusw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubusw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubusw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubusw %mm1, %mm0 # sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: psubw %mm1, %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: psubw (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: psubw %mm1, %mm0 # sched: [1:0.50]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: punpckhbw %mm1, %mm0 # mm0 = mm0[4],mm1[4],mm0[5],mm1[5],mm0[6],mm1[6],mm0[7],mm1[7] sched: [1:1.00]
+; BROADWELL-NEXT: punpckhbw (%rdi), %mm0 # mm0 = mm0[4],mem[4],mm0[5],mem[5],mm0[6],mem[6],mm0[7],mem[7] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: punpckhbw %mm1, %mm0 # mm0 = mm0[4],mm1[4],mm0[5],mm1[5],mm0[6],mm1[6],mm0[7],mm1[7] sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: punpckhdq %mm1, %mm0 # mm0 = mm0[1],mm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: punpckhdq (%rdi), %mm0 # mm0 = mm0[1],mem[1] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: punpckhdq %mm1, %mm0 # mm0 = mm0[1],mm1[1] sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: punpckhwd %mm1, %mm0 # mm0 = mm0[2],mm1[2],mm0[3],mm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: punpckhwd (%rdi), %mm0 # mm0 = mm0[2],mem[2],mm0[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: punpckhwd %mm1, %mm0 # mm0 = mm0[2],mm1[2],mm0[3],mm1[3] sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: punpcklbw %mm1, %mm0 # mm0 = mm0[0],mm1[0],mm0[1],mm1[1],mm0[2],mm1[2],mm0[3],mm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: punpcklbw (%rdi), %mm0 # mm0 = mm0[0],mem[0],mm0[1],mem[1],mm0[2],mem[2],mm0[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: punpcklbw %mm1, %mm0 # mm0 = mm0[0],mm1[0],mm0[1],mm1[1],mm0[2],mm1[2],mm0[3],mm1[3] sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: punpckldq %mm1, %mm0 # mm0 = mm0[0],mm1[0] sched: [1:1.00]
+; BROADWELL-NEXT: punpckldq (%rdi), %mm0 # mm0 = mm0[0],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: punpckldq %mm1, %mm0 # mm0 = mm0[0],mm1[0] sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: punpcklwd %mm1, %mm0 # mm0 = mm0[0],mm1[0],mm0[1],mm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: punpcklwd (%rdi), %mm0 # mm0 = mm0[0],mem[0],mm0[1],mem[1] sched: [1:1.00]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: punpcklwd %mm1, %mm0 # mm0 = mm0[0],mm1[0],mm0[1],mm1[1] sched: [1:1.00]
; HASWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pxor:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: pxor %mm1, %mm0 # sched: [1:0.33]
+; BROADWELL-NEXT: pxor (%rdi), %mm0 # sched: [1:0.50]
+; BROADWELL-NEXT: movd %mm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pxor:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: pxor %mm1, %mm0 # sched: [1:0.50]
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=atom | FileCheck %s --check-prefix=CHECK --check-prefix=ATOM
; 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=haswell | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: movbew %si, (%rdx) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movbe_i16:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movbew (%rdi), %ax # sched: [1:0.50]
+; BROADWELL-NEXT: movbew %si, (%rdx) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movbe_i16:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movbew (%rdi), %ax # sched: [6:0.50]
; HASWELL-NEXT: movbel %esi, (%rdx) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movbe_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movbel (%rdi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: movbel %esi, (%rdx) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movbe_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movbel (%rdi), %eax # sched: [6:0.50]
; HASWELL-NEXT: movbeq %rsi, (%rdx) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movbe_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movbeq (%rdi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: movbeq %rsi, (%rdx) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movbe_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movbeq (%rdi), %rax # sched: [6:0.50]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=HASWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ctpop_i16:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: popcntw (%rsi), %cx # sched: [3:1.00]
+; BROADWELL-NEXT: popcntw %di, %ax # sched: [3:1.00]
+; BROADWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ctpop_i16:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: popcntw (%rsi), %cx # sched: [8:1.00]
; HASWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ctpop_i32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: popcntl (%rsi), %ecx # sched: [3:1.00]
+; BROADWELL-NEXT: popcntl %edi, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: orl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ctpop_i32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: popcntl (%rsi), %ecx # sched: [8:1.00]
; HASWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ctpop_i64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: popcntq (%rsi), %rcx # sched: [3:1.00]
+; BROADWELL-NEXT: popcntq %rdi, %rax # sched: [3:1.00]
+; BROADWELL-NEXT: orq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ctpop_i64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: popcntq (%rsi), %rcx # sched: [8:1.00]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: vaddps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vandps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandps %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandps %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vandnps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andnotps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandnps %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandnps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andnotps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandnps %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vorps %xmm0, %xmm1, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cmpps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcmpeqps %xmm1, %xmm0, %xmm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vcmpeqps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vorps %xmm0, %xmm1, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cmpps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcmpeqps %xmm1, %xmm0, %xmm1 # sched: [4:0.33]
; HASWELL-NEXT: vcmpeqss (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cmpss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcmpeqss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcmpeqss (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cmpss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcmpeqss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_comiss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcomiss %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %cl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %cl # sched: [1:0.25]
+; BROADWELL-NEXT: vcomiss (%rdi), %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %dl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: orb %cl, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_comiss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcomiss %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsi2ss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsi2ssl %edi, %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtsi2ssl (%rsi), %xmm1, %xmm1 # sched: [8:1.00]
+; BROADWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsi2ss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsi2ssl %edi, %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsi2ssq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsi2ssq %rdi, %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vcvtsi2ssq (%rsi), %xmm1, %xmm1 # sched: [8:1.00]
+; BROADWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsi2ssq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsi2ssq %rdi, %xmm0, %xmm0 # sched: [6:2.00]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtss2si:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtss2si %xmm0, %ecx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtss2si (%rdi), %eax # sched: [4:1.00]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtss2si:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtss2si %xmm0, %ecx # sched: [6:1.00]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtss2siq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtss2si %xmm0, %rcx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtss2si (%rdi), %rax # sched: [4:1.00]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtss2siq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtss2si %xmm0, %rcx # sched: [6:1.00]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttss2si:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttss2si %xmm0, %ecx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvttss2si (%rdi), %eax # sched: [4:1.00]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttss2si:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttss2si %xmm0, %ecx # sched: [7:1.00]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttss2siq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttss2si %xmm0, %rcx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvttss2si (%rdi), %rax # sched: [4:1.00]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttss2siq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttss2si %xmm0, %rcx # sched: [7:1.00]
; HASWELL-NEXT: vdivps (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_divps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdivps %xmm1, %xmm0, %xmm0 # sched: [13:1.00]
+; BROADWELL-NEXT: vdivps (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_divps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdivps %xmm1, %xmm0, %xmm0 # sched: [11:1.00]
; HASWELL-NEXT: vdivss (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_divss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdivss %xmm1, %xmm0, %xmm0 # sched: [13:1.00]
+; BROADWELL-NEXT: vdivss (%rdi), %xmm0, %xmm0 # sched: [13:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_divss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdivss %xmm1, %xmm0, %xmm0 # sched: [11:1.00]
; HASWELL-NEXT: vldmxcsr -{{[0-9]+}}(%rsp) # sched: [2:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ldmxcsr:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movl %edi, -{{[0-9]+}}(%rsp) # sched: [1:1.00]
+; BROADWELL-NEXT: vldmxcsr -{{[0-9]+}}(%rsp) # sched: [2:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ldmxcsr:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movl %edi, -{{[0-9]+}}(%rsp) # sched: [1:1.00]
; HASWELL-NEXT: vmaxps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maxps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaxps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmaxps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maxps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaxps %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vmaxss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maxss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaxss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmaxss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maxss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaxss %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vminps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_minps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vminps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vminps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_minps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vminps %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vminss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_minss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vminss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vminss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_minss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vminss %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vmovaps %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movaps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovaps (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovaps %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movaps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovaps (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vunpckhpd {{.*#+}} xmm0 = xmm1[1],xmm0[1] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movhlps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpckhpd {{.*#+}} xmm0 = xmm1[1],xmm0[1] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movhlps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpckhpd {{.*#+}} xmm0 = xmm1[1],xmm0[1] sched: [1:1.00]
; HASWELL-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movhps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovhpd {{.*#+}} xmm1 = xmm1[0],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movhps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovhpd {{.*#+}} xmm1 = xmm1[0],mem[0] sched: [6:1.00]
; HASWELL-NEXT: vaddps %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movlhps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovlhps {{.*#+}} xmm0 = xmm0[0],xmm1[0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movlhps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovlhps {{.*#+}} xmm0 = xmm0[0],xmm1[0] sched: [1:1.00]
; HASWELL-NEXT: vmovlps %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movlps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovlpd {{.*#+}} xmm1 = mem[0],xmm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovlps %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movlps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovlpd {{.*#+}} xmm1 = mem[0],xmm1[1] sched: [6:1.00]
; HASWELL-NEXT: vmovmskps %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movmskps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovmskps %xmm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movmskps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovmskps %xmm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: vmovntps %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovntps %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovntps %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: vmovss %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movss_mem:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero sched: [1:0.50]
+; BROADWELL-NEXT: vaddss %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovss %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movss_mem:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero sched: [5:0.50]
; HASWELL-NEXT: vblendps {{.*#+}} xmm0 = xmm1[0],xmm0[1,2,3] sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movss_reg:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendps {{.*#+}} xmm0 = xmm1[0],xmm0[1,2,3] sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movss_reg:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendps {{.*#+}} xmm0 = xmm1[0],xmm0[1,2,3] sched: [1:0.33]
; HASWELL-NEXT: vmovups %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movups:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovups (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovups %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movups:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovups (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vmulps (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmulps %xmm1, %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vmulps (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmulps %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vmulss (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmulss %xmm1, %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vmulss (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmulss %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vorps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_orps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vorps %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vorps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_orps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vorps %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: prefetchnta (%rdi) # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_prefetchnta:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: prefetchnta (%rdi) # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_prefetchnta:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: prefetchnta (%rdi) # sched: [5:0.50]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rcpps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vrcpps %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vrcpps (%rdi), %xmm1 # sched: [5:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rcpps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vrcpps %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rcpss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vrcpss %xmm0, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vmovss {{.*#+}} xmm1 = mem[0],zero,zero,zero sched: [1:0.50]
+; BROADWELL-NEXT: vrcpss %xmm1, %xmm1, %xmm1 # sched: [5:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rcpss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vrcpss %xmm0, %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rsqrtps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vrsqrtps %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vrsqrtps (%rdi), %xmm1 # sched: [5:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rsqrtps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vrsqrtps %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_rsqrtss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vrsqrtss %xmm0, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vmovss {{.*#+}} xmm1 = mem[0],zero,zero,zero sched: [1:0.50]
+; BROADWELL-NEXT: vrsqrtss %xmm1, %xmm1, %xmm1 # sched: [5:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_rsqrtss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vrsqrtss %xmm0, %xmm0, %xmm0 # sched: [4:1.00]
; HASWELL-NEXT: sfence # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sfence:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: sfence # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sfence:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: sfence # sched: [2:0.33]
; HASWELL-NEXT: vshufps {{.*#+}} xmm0 = xmm0[0,3],mem[0,0] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shufps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vshufps {{.*#+}} xmm0 = xmm0[0,0],xmm1[0,0] sched: [1:1.00]
+; BROADWELL-NEXT: vshufps {{.*#+}} xmm0 = xmm0[0,3],mem[0,0] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shufps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vshufps {{.*#+}} xmm0 = xmm0[0,0],xmm1[0,0] sched: [1:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sqrtps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsqrtps %xmm0, %xmm0 # sched: [14:1.00]
+; BROADWELL-NEXT: vsqrtps (%rdi), %xmm1 # sched: [14:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sqrtps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsqrtps %xmm0, %xmm0 # sched: [12:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sqrtss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsqrtss %xmm0, %xmm0, %xmm0 # sched: [14:1.00]
+; BROADWELL-NEXT: vmovaps (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vsqrtss %xmm1, %xmm1, %xmm1 # sched: [14:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sqrtss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsqrtss %xmm0, %xmm0, %xmm0 # sched: [12:1.00]
; HASWELL-NEXT: movl -{{[0-9]+}}(%rsp), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_stmxcsr:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vstmxcsr -{{[0-9]+}}(%rsp) # sched: [1:1.00]
+; BROADWELL-NEXT: movl -{{[0-9]+}}(%rsp), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_stmxcsr:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vstmxcsr -{{[0-9]+}}(%rsp) # sched: [2:1.00]
; HASWELL-NEXT: vsubps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_subps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsubps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vsubps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_subps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsubps %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vsubss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_subss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsubss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vsubss (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_subss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsubss %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ucomiss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vucomiss %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %cl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %cl # sched: [1:0.25]
+; BROADWELL-NEXT: vucomiss (%rdi), %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %dl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: orb %cl, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ucomiss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vucomiss %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vunpckhps {{.*#+}} xmm0 = xmm0[2],mem[2],xmm0[3],mem[3] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpckhps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpckhps {{.*#+}} xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: vunpckhps {{.*#+}} xmm0 = xmm0[2],mem[2],xmm0[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpckhps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpckhps {{.*#+}} xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3] sched: [1:1.00]
; HASWELL-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpcklps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpcklps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] sched: [1:1.00]
; HASWELL-NEXT: vxorps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_xorps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vxorps %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vxorps (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_xorps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vxorps %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: vaddpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandpd %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandpd (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandpd %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_andnotpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vandnpd %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vandnpd (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_andnotpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vandnpd %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vorpd %xmm0, %xmm1, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cmppd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcmpeqpd %xmm1, %xmm0, %xmm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vcmpeqpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vorpd %xmm0, %xmm1, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cmppd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcmpeqpd %xmm1, %xmm0, %xmm1 # sched: [4:0.33]
; HASWELL-NEXT: vcmpeqsd (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cmpsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcmpeqsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcmpeqsd (%rdi), %xmm0, %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cmpsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcmpeqsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_comisd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcomisd %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %cl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %cl # sched: [1:0.25]
+; BROADWELL-NEXT: vcomisd (%rdi), %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %dl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: orb %cl, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_comisd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcomisd %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtdq2pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtdq2pd %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtdq2pd (%rdi), %xmm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtdq2pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtdq2pd %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtdq2ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtdq2ps %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcvtdq2ps (%rdi), %xmm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtdq2ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtdq2ps %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpd2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtpd2dq %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtpd2dqx (%rdi), %xmm1 # sched: [7:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpd2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtpd2dq %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtpd2ps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtpd2ps %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtpd2psx (%rdi), %xmm1 # sched: [7:1.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtpd2ps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtpd2ps %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtps2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtps2dq %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcvtps2dq (%rdi), %xmm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtps2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtps2dq %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtps2pd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtps2pd %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vcvtps2pd (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtps2pd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtps2pd %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsd2si:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsd2si %xmm0, %ecx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtsd2si (%rdi), %eax # sched: [4:1.00]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsd2si:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsd2si %xmm0, %ecx # sched: [6:1.00]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsd2siq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsd2si %xmm0, %rcx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtsd2si (%rdi), %rax # sched: [4:1.00]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsd2siq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsd2si %xmm0, %rcx # sched: [6:1.00]
; HASWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsd2ss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsd2ss %xmm0, %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vmovsd {{.*#+}} xmm1 = mem[0],zero sched: [1:0.50]
+; BROADWELL-NEXT: vcvtsd2ss %xmm1, %xmm1, %xmm1 # sched: [4:1.00]
+; BROADWELL-NEXT: vaddss %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsd2ss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsd2ss %xmm0, %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsi2sd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsi2sdl %edi, %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtsi2sdl (%rsi), %xmm1, %xmm1 # sched: [8:1.00]
+; BROADWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsi2sd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsi2sdl %edi, %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtsi2sdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtsi2sdq %rdi, %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvtsi2sdq (%rsi), %xmm1, %xmm1 # sched: [8:1.00]
+; BROADWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtsi2sdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtsi2sdq %rdi, %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvtss2sd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvtss2sd %xmm0, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vmovss {{.*#+}} xmm1 = mem[0],zero,zero,zero sched: [1:0.50]
+; BROADWELL-NEXT: vcvtss2sd %xmm1, %xmm1, %xmm1 # sched: [2:1.00]
+; BROADWELL-NEXT: vaddsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvtss2sd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvtss2sd %xmm0, %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttpd2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttpd2dq %xmm0, %xmm0 # sched: [4:1.00]
+; BROADWELL-NEXT: vcvttpd2dqx (%rdi), %xmm1 # sched: [7:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttpd2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttpd2dq %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttps2dq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttps2dq %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vcvttps2dq (%rdi), %xmm1 # sched: [3:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttps2dq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttps2dq %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttsd2si:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttsd2si %xmm0, %ecx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvttsd2si (%rdi), %eax # sched: [4:1.00]
+; BROADWELL-NEXT: addl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttsd2si:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttsd2si %xmm0, %ecx # sched: [6:1.00]
; HASWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_cvttsd2siq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vcvttsd2si %xmm0, %rcx # sched: [4:1.00]
+; BROADWELL-NEXT: vcvttsd2si (%rdi), %rax # sched: [4:1.00]
+; BROADWELL-NEXT: addq %rcx, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_cvttsd2siq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vcvttsd2si %xmm0, %rcx # sched: [6:1.00]
; HASWELL-NEXT: vdivpd (%rdi), %xmm0, %xmm0 # sched: [20:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_divpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdivpd %xmm1, %xmm0, %xmm0 # sched: [20:1.00]
+; BROADWELL-NEXT: vdivpd (%rdi), %xmm0, %xmm0 # sched: [20:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_divpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdivpd %xmm1, %xmm0, %xmm0 # sched: [14:1.00]
; HASWELL-NEXT: vdivsd (%rdi), %xmm0, %xmm0 # sched: [20:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_divsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdivsd %xmm1, %xmm0, %xmm0 # sched: [20:1.00]
+; BROADWELL-NEXT: vdivsd (%rdi), %xmm0, %xmm0 # sched: [20:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_divsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdivsd %xmm1, %xmm0, %xmm0 # sched: [14:1.00]
; HASWELL-NEXT: lfence # sched: [2:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lfence:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: lfence # sched: [2:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lfence:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: lfence # sched: [2:0.50]
; HASWELL-NEXT: mfence # sched: [2:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mfence:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: mfence # sched: [2:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mfence:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: mfence # sched: [3:0.50]
; HASWELL-NEXT: vmaskmovdqu %xmm1, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maskmovdqu:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaskmovdqu %xmm1, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maskmovdqu:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaskmovdqu %xmm1, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vmaxpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maxpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaxpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmaxpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maxpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaxpd %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vmaxsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_maxsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmaxsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmaxsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_maxsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmaxsd %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vminpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_minpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vminpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vminpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_minpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vminpd %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vminsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_minsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vminsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vminsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_minsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vminsd %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vmovapd %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movapd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovapd (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovapd %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movapd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovapd (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vmovdqa %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movdqa:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovdqa (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm0, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovdqa %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movdqa:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovdqa (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vmovdqu %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movdqu:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovdqu (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm0, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovdqu %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movdqu:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovdqu (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vmovd %xmm1, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovd %edi, %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vmovd {{.*#+}} xmm2 = mem[0],zero,zero,zero sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd %xmm2, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovd %xmm0, %eax # sched: [1:1.00]
+; BROADWELL-NEXT: vmovd %xmm1, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovd %edi, %xmm1 # sched: [1:1.00]
; HASWELL-NEXT: vmovq %xmm1, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movd_64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovq %rdi, %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vmovq {{.*#+}} xmm2 = mem[0],zero sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm2, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovq %xmm0, %rax # sched: [1:1.00]
+; BROADWELL-NEXT: vmovq %xmm1, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movd_64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovq %rdi, %xmm1 # sched: [1:1.00]
; HASWELL-NEXT: vmovhpd %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movhpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovhpd {{.*#+}} xmm1 = xmm1[0],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovhpd %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movhpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovhpd {{.*#+}} xmm1 = xmm1[0],mem[0] sched: [6:1.00]
; HASWELL-NEXT: vmovlpd %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movlpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovlpd {{.*#+}} xmm1 = mem[0],xmm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovlpd %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movlpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovlpd {{.*#+}} xmm1 = mem[0],xmm1[1] sched: [6:1.00]
; HASWELL-NEXT: vmovmskpd %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movmskpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovmskpd %xmm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movmskpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovmskpd %xmm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: vmovntdq %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntdqa:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddq %xmm0, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovntdq %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntdqa:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddq %xmm0, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vmovntpd %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovntpd %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddpd %xmm0, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vmovq %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movq_mem:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovq {{.*#+}} xmm1 = mem[0],zero sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vmovq %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movq_mem:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovq {{.*#+}} xmm1 = mem[0],zero sched: [5:0.50]
; HASWELL-NEXT: vpaddq %xmm0, %xmm1, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movq_reg:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovq {{.*#+}} xmm0 = xmm0[0],zero sched: [1:0.33]
+; BROADWELL-NEXT: vpaddq %xmm0, %xmm1, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movq_reg:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovq {{.*#+}} xmm0 = xmm0[0],zero sched: [1:0.33]
; HASWELL-NEXT: vmovsd %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movsd_mem:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero sched: [1:0.50]
+; BROADWELL-NEXT: vaddsd %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovsd %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movsd_mem:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero sched: [5:0.50]
; HASWELL-NEXT: vmovlhps {{.*#+}} xmm0 = xmm1[0],xmm0[0] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movsd_reg:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovlhps {{.*#+}} xmm0 = xmm1[0],xmm0[0] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movsd_reg:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovlhps {{.*#+}} xmm0 = xmm1[0],xmm0[0] sched: [1:1.00]
; HASWELL-NEXT: vmovupd %xmm0, (%rsi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movupd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovupd (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vmovupd %xmm0, (%rsi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movupd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovupd (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vmulpd (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmulpd %xmm1, %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vmulpd (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmulpd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vmulsd (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mulsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmulsd %xmm1, %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: vmulsd (%rdi), %xmm0, %xmm0 # sched: [5:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mulsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmulsd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_orpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vorpd %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vorpd (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_orpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vorpd %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpackssdw (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packssdw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpackssdw %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpackssdw (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packssdw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpackssdw %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpacksswb (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packsswb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpacksswb %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpacksswb (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packsswb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpacksswb %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpackuswb (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packuswb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpackuswb %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpackuswb (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packuswb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpackuswb %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddb %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddq (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddusb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddusb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddusb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddusb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddusb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddusb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddusw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddusw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddusw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddusw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddusw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddusw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_paddw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_paddw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pand:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpand %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpand (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pand:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpand %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pandn:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpandn %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpandn (%rdi), %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pandn:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpandn %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpavgb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pavgb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpavgb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpavgb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pavgb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpavgb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpavgw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pavgw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpavgw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpavgw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pavgw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpavgw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqb %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqb %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqd %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqd %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqw %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqw %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtb %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpgtb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtb %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtd %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtd %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtw %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpgtw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm0, %xmm1, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtw %xmm1, %xmm0, %xmm1 # sched: [1:0.50]
; HASWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pextrw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpextrw $6, %xmm0, %eax # sched: [2:1.00]
+; BROADWELL-NEXT: # kill: %AX<def> %AX<kill> %EAX<kill>
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pextrw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpextrw $6, %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: vpinsrw $3, (%rsi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pinsrw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpinsrw $1, %edi, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vpinsrw $3, (%rsi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pinsrw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpinsrw $1, %edi, %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: vpmaddwd (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaddwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaddwd %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmaddwd (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaddwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaddwd %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmaxsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxub (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxub:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxub %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxub (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxub:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxub %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminub (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminub:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminub %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminub (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminub:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminub %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmovmskb %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovmskb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovmskb %xmm0, %eax # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovmskb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovmskb %xmm0, %eax # sched: [2:1.00]
; HASWELL-NEXT: vpmulhuw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulhuw %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmulhuw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulhuw %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulhw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulhw %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmulhw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulhw %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmullw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmullw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmullw %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmullw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmullw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmullw %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmuludq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmuludq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmuludq %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmuludq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmuludq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmuludq %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_por:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpor (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_por:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsadbw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psadbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsadbw %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpsadbw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psadbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsadbw %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[1,0,3,2] sched: [1:1.00]
+; BROADWELL-NEXT: vpshufd {{.*#+}} xmm1 = mem[3,2,1,0] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[1,0,3,2] sched: [1:1.00]
; HASWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufhw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,4,7,6] sched: [1:1.00]
+; BROADWELL-NEXT: vpshufhw {{.*#+}} xmm1 = mem[0,1,2,3,7,6,5,4] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufhw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,4,7,6] sched: [1:1.00]
; HASWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshuflw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,0,3,2,4,5,6,7] sched: [1:1.00]
+; BROADWELL-NEXT: vpshuflw {{.*#+}} xmm1 = mem[3,2,1,0,4,5,6,7] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshuflw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,0,3,2,4,5,6,7] sched: [1:1.00]
; HASWELL-NEXT: vpslld $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pslld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpslld %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpslld (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpslld $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pslld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpslld %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pslldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pslldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11] sched: [1:1.00]
; HASWELL-NEXT: vpsllq $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllq %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsllq (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsllq $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllq %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsllw $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psllw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsllw %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsllw (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsllw $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psllw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsllw %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsrad $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrad:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrad %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrad (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrad $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrad:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrad %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsraw $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psraw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsraw %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsraw (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsraw $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psraw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsraw %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsrld $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrld %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrld (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrld $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrld %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: vpsrlq $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlq %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrlq (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrlq $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlq %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsrlw $2, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psrlw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsrlw %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrlw (%rdi), %xmm0, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: vpsrlw $2, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psrlw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsrlw %xmm1, %xmm0, %xmm0 # sched: [2:1.00]
; HASWELL-NEXT: vpsubb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubb %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsubd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubd %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsubq (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubq (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubq %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpsubsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubsw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubsw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubusb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubusb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubusb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubusb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubusb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubusb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubusw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubusw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubusw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubusw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubusw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubusw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsubw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psubw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsubw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsubw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psubw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsubw %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vpunpckhbw {{.*#+}} xmm0 = xmm0[8],mem[8],xmm0[9],mem[9],xmm0[10],mem[10],xmm0[11],mem[11],xmm0[12],mem[12],xmm0[13],mem[13],xmm0[14],mem[14],xmm0[15],mem[15] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhbw {{.*#+}} xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhbw {{.*#+}} xmm0 = xmm0[8],mem[8],xmm0[9],mem[9],xmm0[10],mem[10],xmm0[11],mem[11],xmm0[12],mem[12],xmm0[13],mem[13],xmm0[14],mem[14],xmm0[15],mem[15] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhbw {{.*#+}} xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15] sched: [1:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhdq {{.*#+}} xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhdq {{.*#+}} xmm1 = xmm1[2],mem[2],xmm1[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhdq {{.*#+}} xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhqdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhqdq {{.*#+}} xmm0 = xmm0[1],xmm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhqdq {{.*#+}} xmm1 = xmm1[1],mem[1] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhqdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhqdq {{.*#+}} xmm0 = xmm0[1],xmm1[1] sched: [1:1.00]
; HASWELL-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4],mem[4],xmm0[5],mem[5],xmm0[6],mem[6],xmm0[7],mem[7] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckhwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4],mem[4],xmm0[5],mem[5],xmm0[6],mem[6],xmm0[7],mem[7] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckhwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7] sched: [1:1.00]
; HASWELL-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1],xmm0[2],mem[2],xmm0[3],mem[3],xmm0[4],mem[4],xmm0[5],mem[5],xmm0[6],mem[6],xmm0[7],mem[7] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1],xmm0[2],mem[2],xmm0[3],mem[3],xmm0[4],mem[4],xmm0[5],mem[5],xmm0[6],mem[6],xmm0[7],mem[7] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7] sched: [1:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpckldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpckldq {{.*#+}} xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpckldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklqdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpcklqdq {{.*#+}} xmm1 = xmm1[0],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklqdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0] sched: [1:1.00]
; HASWELL-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1],xmm0[2],mem[2],xmm0[3],mem[3] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_punpcklwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3] sched: [1:1.00]
+; BROADWELL-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1],xmm0[2],mem[2],xmm0[3],mem[3] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_punpcklwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3] sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pxor:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpxor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: vpxor (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pxor:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpxor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_shufpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vshufpd {{.*#+}} xmm0 = xmm0[1],xmm1[0] sched: [1:1.00]
+; BROADWELL-NEXT: vshufpd {{.*#+}} xmm1 = xmm1[1],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_shufpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vshufpd {{.*#+}} xmm0 = xmm0[1],xmm1[0] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sqrtpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsqrtpd %xmm0, %xmm0 # sched: [21:1.00]
+; BROADWELL-NEXT: vsqrtpd (%rdi), %xmm1 # sched: [21:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sqrtpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsqrtpd %xmm0, %xmm0 # sched: [18:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_sqrtsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsqrtsd %xmm0, %xmm0, %xmm0 # sched: [21:1.00]
+; BROADWELL-NEXT: vmovapd (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vsqrtsd %xmm1, %xmm1, %xmm1 # sched: [21:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_sqrtsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsqrtsd %xmm0, %xmm0, %xmm0 # sched: [18:1.00]
; HASWELL-NEXT: vsubpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_subpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsubpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vsubpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_subpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsubpd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vsubsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_subsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vsubsd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vsubsd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_subsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vsubsd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ucomisd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vucomisd %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %cl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %cl # sched: [1:0.25]
+; BROADWELL-NEXT: vucomisd (%rdi), %xmm0 # sched: [7:1.00]
+; BROADWELL-NEXT: setnp %al # sched: [1:0.50]
+; BROADWELL-NEXT: sete %dl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: orb %cl, %dl # sched: [1:0.25]
+; BROADWELL-NEXT: movzbl %dl, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ucomisd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vucomisd %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpckhpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpckhpd {{.*#+}} xmm0 = xmm0[1],xmm1[1] sched: [1:1.00]
+; BROADWELL-NEXT: vunpckhpd {{.*#+}} xmm1 = xmm1[1],mem[1] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpckhpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpckhpd {{.*#+}} xmm0 = xmm0[1],xmm1[1] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_unpcklpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0] sched: [1:1.00]
+; BROADWELL-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm0[0],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_unpcklpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0] sched: [1:1.00]
; HASWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_xorpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vxorpd %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vxorpd (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_xorpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vxorpd %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: vaddsubpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addsubpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddsubpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddsubpd (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addsubpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddsubpd %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vaddsubps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_addsubps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vaddsubps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vaddsubps (%rdi), %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_addsubps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vaddsubps %xmm1, %xmm0, %xmm0 # sched: [4:0.50]
; HASWELL-NEXT: vhaddpd (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_haddpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhaddpd %xmm1, %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhaddpd (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_haddpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhaddpd %xmm1, %xmm0, %xmm0 # sched: [6:2.00]
; HASWELL-NEXT: vhaddps (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_haddps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhaddps %xmm1, %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhaddps (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_haddps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhaddps %xmm1, %xmm0, %xmm0 # sched: [6:2.00]
; HASWELL-NEXT: vhsubpd (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_hsubpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhsubpd %xmm1, %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhsubpd (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_hsubpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhsubpd %xmm1, %xmm0, %xmm0 # sched: [6:2.00]
; HASWELL-NEXT: vhsubps (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_hsubps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vhsubps %xmm1, %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: vhsubps (%rdi), %xmm0, %xmm0 # sched: [5:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_hsubps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vhsubps %xmm1, %xmm0, %xmm0 # sched: [6:2.00]
; HASWELL-NEXT: vlddqu (%rdi), %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_lddqu:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vlddqu (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_lddqu:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vlddqu (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: monitor # sched: [100:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_monitor:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: leaq (%rdi), %rax # sched: [1:0.50]
+; BROADWELL-NEXT: movl %esi, %ecx # sched: [1:0.25]
+; BROADWELL-NEXT: monitor # sched: [100:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_monitor:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: leaq (%rdi), %rax # sched: [1:0.50]
; HASWELL-NEXT: vsubpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movddup:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovddup {{.*#+}} xmm0 = xmm0[0,0] sched: [1:1.00]
+; BROADWELL-NEXT: vmovddup {{.*#+}} xmm1 = mem[0,0] sched: [1:0.50]
+; BROADWELL-NEXT: vsubpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movddup:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovddup {{.*#+}} xmm0 = xmm0[0,0] sched: [1:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movshdup:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovshdup {{.*#+}} xmm0 = xmm0[1,1,3,3] sched: [1:1.00]
+; BROADWELL-NEXT: vmovshdup {{.*#+}} xmm1 = mem[1,1,3,3] sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movshdup:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovshdup {{.*#+}} xmm0 = xmm0[1,1,3,3] sched: [1:1.00]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movsldup:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovsldup {{.*#+}} xmm0 = xmm0[0,0,2,2] sched: [1:1.00]
+; BROADWELL-NEXT: vmovsldup {{.*#+}} xmm1 = mem[0,0,2,2] sched: [1:0.50]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movsldup:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovsldup {{.*#+}} xmm0 = xmm0[0,0,2,2] sched: [1:1.00]
; HASWELL-NEXT: mwait # sched: [20:2.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mwait:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movl %edi, %ecx # sched: [1:0.25]
+; BROADWELL-NEXT: movl %esi, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: mwait # sched: [20:2.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mwait:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movl %edi, %ecx # sched: [1:0.25]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: vblendpd {{.*#+}} xmm0 = xmm0[0],mem[1] sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendpd {{.*#+}} xmm0 = xmm0[0],xmm1[1] sched: [1:0.33]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: vblendpd {{.*#+}} xmm0 = xmm0[0],mem[1] sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendpd {{.*#+}} xmm0 = xmm0[0],xmm1[1] sched: [1:0.33]
; HASWELL-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],mem[1],xmm0[2,3] sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2],xmm0[3] sched: [1:0.33]
+; BROADWELL-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],mem[1],xmm0[2,3] sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2],xmm0[3] sched: [1:0.33]
; HASWELL-NEXT: vblendvpd %xmm2, (%rdi), %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendvpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendvpd %xmm2, %xmm1, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vblendvpd %xmm2, (%rdi), %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendvpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendvpd %xmm2, %xmm1, %xmm0, %xmm0 # sched: [2:0.67]
; HASWELL-NEXT: vblendvps %xmm2, (%rdi), %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_blendvps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vblendvps %xmm2, %xmm1, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vblendvps %xmm2, (%rdi), %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_blendvps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vblendvps %xmm2, %xmm1, %xmm0, %xmm0 # sched: [2:0.67]
; HASWELL-NEXT: vdppd $7, (%rdi), %xmm0, %xmm0 # sched: [9:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_dppd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdppd $7, %xmm1, %xmm0, %xmm0 # sched: [9:1.00]
+; BROADWELL-NEXT: vdppd $7, (%rdi), %xmm0, %xmm0 # sched: [9:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_dppd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdppd $7, %xmm1, %xmm0, %xmm0 # sched: [9:1.00]
; HASWELL-NEXT: vdpps $7, (%rdi), %xmm0, %xmm0 # sched: [14:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_dpps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vdpps $7, %xmm1, %xmm0, %xmm0 # sched: [14:2.00]
+; BROADWELL-NEXT: vdpps $7, (%rdi), %xmm0, %xmm0 # sched: [14:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_dpps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vdpps $7, %xmm1, %xmm0, %xmm0 # sched: [13:1.33]
; HASWELL-NEXT: vinsertps {{.*#+}} xmm0 = xmm0[0,1,2],mem[0] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_insertps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vinsertps {{.*#+}} xmm0 = zero,xmm1[0],xmm0[2,3] sched: [1:1.00]
+; BROADWELL-NEXT: vinsertps {{.*#+}} xmm0 = xmm0[0,1,2],mem[0] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_insertps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vinsertps {{.*#+}} xmm0 = zero,xmm1[0],xmm0[2,3] sched: [1:1.00]
; HASWELL-NEXT: vmovntdqa (%rdi), %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_movntdqa:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmovntdqa (%rdi), %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_movntdqa:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmovntdqa (%rdi), %xmm0 # sched: [6:0.50]
; HASWELL-NEXT: vmpsadbw $7, (%rdi), %xmm0, %xmm0 # sched: [7:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_mpsadbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vmpsadbw $7, %xmm1, %xmm0, %xmm0 # sched: [7:2.00]
+; BROADWELL-NEXT: vmpsadbw $7, (%rdi), %xmm0, %xmm0 # sched: [7:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_mpsadbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vmpsadbw $7, %xmm1, %xmm0, %xmm0 # sched: [4:2.00]
; HASWELL-NEXT: vpackusdw (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_packusdw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpackusdw %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpackusdw (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_packusdw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpackusdw %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpblendvb %xmm2, (%rdi), %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pblendvb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpblendvb %xmm2, %xmm1, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vpblendvb %xmm2, (%rdi), %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pblendvb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpblendvb %xmm2, %xmm1, %xmm0, %xmm0 # sched: [2:0.67]
; HASWELL-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],mem[2,3],xmm0[4,5,6],mem[7] sched: [4:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pblendw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2],xmm1[3],xmm0[4],xmm1[5],xmm0[6],xmm1[7] sched: [1:1.00]
+; BROADWELL-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],mem[2,3],xmm0[4,5,6],mem[7] sched: [4:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pblendw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2],xmm1[3],xmm0[4],xmm1[5],xmm0[6],xmm1[7] sched: [1:1.00]
; HASWELL-NEXT: vpcmpeqq (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpeqq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpeqq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpcmpeqq (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpeqq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpeqq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpextrb $1, %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pextrb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpextrb $3, %xmm0, %eax # sched: [2:1.00]
+; BROADWELL-NEXT: vpextrb $1, %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pextrb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpextrb $3, %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: vpextrd $1, %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pextrd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpextrd $3, %xmm0, %eax # sched: [2:1.00]
+; BROADWELL-NEXT: vpextrd $1, %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pextrd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpextrd $3, %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pextrq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpextrq $1, %xmm0, %rax # sched: [2:1.00]
+; BROADWELL-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pextrq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpextrq $1, %xmm0, %rax # sched: [3:1.00]
; HASWELL-NEXT: vpextrw $1, %xmm0, (%rdi) # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pextrw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpextrw $3, %xmm0, %eax # sched: [2:1.00]
+; BROADWELL-NEXT: vpextrw $1, %xmm0, (%rdi) # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pextrw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpextrw $3, %xmm0, %eax # sched: [3:1.00]
; HASWELL-NEXT: vphminposuw %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phminposuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphminposuw (%rdi), %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vphminposuw %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phminposuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphminposuw (%rdi), %xmm0 # sched: [10:0.50]
; HASWELL-NEXT: vpinsrb $3, (%rsi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pinsrb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpinsrb $1, %edi, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vpinsrb $3, (%rsi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pinsrb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpinsrb $1, %edi, %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: vpinsrd $3, (%rsi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pinsrd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpinsrd $1, %edi, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vpinsrd $3, (%rsi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pinsrd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpinsrd $1, %edi, %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pinsrq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpinsrq $1, %rdi, %xmm0, %xmm0 # sched: [2:2.00]
+; BROADWELL-NEXT: vpinsrq $1, (%rsi), %xmm1, %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pinsrq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpinsrq $1, %rdi, %xmm0, %xmm0 # sched: [2:2.00]
; HASWELL-NEXT: vpmaxsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxsd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxsd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxsd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxsd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxud (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxud:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxud %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxud (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxud:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxud %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpmaxuw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaxuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaxuw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpmaxuw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaxuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaxuw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminsb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminsb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminsd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminsd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminsd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminsd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminud (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminud:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminud %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminud (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminud:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminud %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpminuw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pminuw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpminuw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpminuw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pminuw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpminuw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxbw %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpmovsxbw (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxbw %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxbd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxbd %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpmovsxbd (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxbd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxbd %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxbq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxbq %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpmovsxbq (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxbq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxbq %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxdq %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpmovsxdq (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxdq %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxwd %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpmovsxwd (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxwd %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovsxwq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovsxwq %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpmovsxwq (%rdi), %xmm1 # sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovsxwq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovsxwq %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxbw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxbw {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero sched: [1:1.00]
+; BROADWELL-NEXT: vpmovzxbw {{.*#+}} xmm1 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero sched: [1:1.00]
+; BROADWELL-NEXT: vpaddw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxbw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxbw {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero sched: [1:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxbd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxbd {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: vpmovzxbd {{.*#+}} xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxbd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxbd {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxbq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: vpmovzxbq {{.*#+}} xmm1 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxbq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxdq {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero sched: [1:1.00]
+; BROADWELL-NEXT: vpmovzxdq {{.*#+}} xmm1 = mem[0],zero,mem[1],zero sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxdq {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero sched: [1:1.00]
; HASWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxwd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero sched: [1:1.00]
+; BROADWELL-NEXT: vpmovzxwd {{.*#+}} xmm1 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero sched: [1:1.00]
+; BROADWELL-NEXT: vpaddd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxwd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero sched: [1:1.00]
; HASWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmovzxwq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmovzxwq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: vpmovzxwq {{.*#+}} xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero sched: [1:1.00]
+; BROADWELL-NEXT: vpaddq %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmovzxwq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmovzxwq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero sched: [1:1.00]
; HASWELL-NEXT: vpmuldq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmuldq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmuldq %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmuldq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmuldq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmuldq %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulld (%rdi), %xmm0, %xmm0 # sched: [10:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulld:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulld %xmm1, %xmm0, %xmm0 # sched: [10:2.00]
+; BROADWELL-NEXT: vpmulld (%rdi), %xmm0, %xmm0 # sched: [10:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulld:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulld %xmm1, %xmm0, %xmm0 # sched: [8:0.67]
; HASWELL-NEXT: movzbl %cl, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_ptest:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vptest %xmm1, %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: setb %al # sched: [1:0.50]
+; BROADWELL-NEXT: vptest (%rdi), %xmm0 # sched: [2:1.00]
+; BROADWELL-NEXT: setb %cl # sched: [1:0.50]
+; BROADWELL-NEXT: andb %al, %cl # sched: [1:0.25]
+; BROADWELL-NEXT: movzbl %cl, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_ptest:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vptest %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_roundpd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vroundpd $7, %xmm0, %xmm0 # sched: [5:1.25]
+; BROADWELL-NEXT: vroundpd $7, (%rdi), %xmm1 # sched: [6:2.00]
+; BROADWELL-NEXT: vaddpd %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_roundpd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vroundpd $7, %xmm0, %xmm0 # sched: [8:0.67]
; HASWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_roundps:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vroundps $7, %xmm0, %xmm0 # sched: [5:1.25]
+; BROADWELL-NEXT: vroundps $7, (%rdi), %xmm1 # sched: [6:2.00]
+; BROADWELL-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_roundps:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vroundps $7, %xmm0, %xmm0 # sched: [8:0.67]
; HASWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_roundsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vroundsd $7, %xmm1, %xmm0, %xmm1 # sched: [5:1.25]
+; BROADWELL-NEXT: vroundsd $7, (%rdi), %xmm0, %xmm0 # sched: [6:2.00]
+; BROADWELL-NEXT: vaddpd %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_roundsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vroundsd $7, %xmm1, %xmm0, %xmm1 # sched: [8:0.67]
; HASWELL-NEXT: vaddps %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_roundss:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vroundss $7, %xmm1, %xmm0, %xmm1 # sched: [5:1.25]
+; BROADWELL-NEXT: vroundss $7, (%rdi), %xmm0, %xmm0 # sched: [6:2.00]
+; BROADWELL-NEXT: vaddps %xmm0, %xmm1, %xmm0 # sched: [3:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_roundss:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vroundss $7, %xmm1, %xmm0, %xmm1 # sched: [8:0.67]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: crc32_32_8:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: crc32b %sil, %edi # sched: [3:1.00]
+; BROADWELL-NEXT: crc32b (%rdx), %edi # sched: [7:1.00]
+; BROADWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: crc32_32_8:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: crc32b %sil, %edi # sched: [3:1.00]
; HASWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: crc32_32_16:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: crc32w %si, %edi # sched: [3:1.00]
+; BROADWELL-NEXT: crc32w (%rdx), %edi # sched: [7:1.00]
+; BROADWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: crc32_32_16:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: crc32w %si, %edi # sched: [3:1.00]
; HASWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: crc32_32_32:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: crc32l %esi, %edi # sched: [3:1.00]
+; BROADWELL-NEXT: crc32l (%rdx), %edi # sched: [7:1.00]
+; BROADWELL-NEXT: movl %edi, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: crc32_32_32:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: crc32l %esi, %edi # sched: [3:1.00]
; HASWELL-NEXT: movq %rdi, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: crc32_64_8:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: crc32b %sil, %edi # sched: [3:1.00]
+; BROADWELL-NEXT: crc32b (%rdx), %edi # sched: [7:1.00]
+; BROADWELL-NEXT: movq %rdi, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: crc32_64_8:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: crc32b %sil, %edi # sched: [3:1.00]
; HASWELL-NEXT: movq %rdi, %rax # sched: [1:0.25]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: crc32_64_64:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: crc32q %rsi, %rdi # sched: [3:1.00]
+; BROADWELL-NEXT: crc32q (%rdx), %rdi # sched: [7:1.00]
+; BROADWELL-NEXT: movq %rdi, %rax # sched: [1:0.25]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: crc32_64_64:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: crc32q %rsi, %rdi # sched: [3:1.00]
; HASWELL-NEXT: leal (%rcx,%rsi), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpestri:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movl $7, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: movl $7, %edx # sched: [1:0.25]
+; BROADWELL-NEXT: vpcmpestri $7, %xmm1, %xmm0 # sched: [18:4.00]
+; BROADWELL-NEXT: movl %ecx, %esi # sched: [1:0.25]
+; BROADWELL-NEXT: movl $7, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: movl $7, %edx # sched: [1:0.25]
+; BROADWELL-NEXT: vpcmpestri $7, (%rdi), %xmm0 # sched: [18:4.00]
+; BROADWELL-NEXT: # kill: %ECX<def> %ECX<kill> %RCX<def>
+; BROADWELL-NEXT: leal (%rcx,%rsi), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpestri:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movl $7, %eax # sched: [1:0.25]
; HASWELL-NEXT: vpcmpestrm $7, (%rdi), %xmm0 # sched: [19:4.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpestrm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: movl $7, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: movl $7, %edx # sched: [1:0.25]
+; BROADWELL-NEXT: vpcmpestrm $7, %xmm1, %xmm0 # sched: [19:4.00]
+; BROADWELL-NEXT: movl $7, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: movl $7, %edx # sched: [1:0.25]
+; BROADWELL-NEXT: vpcmpestrm $7, (%rdi), %xmm0 # sched: [19:4.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpestrm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: movl $7, %eax # sched: [1:0.25]
; HASWELL-NEXT: leal (%rcx,%rax), %eax # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpistri:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpistri $7, %xmm1, %xmm0 # sched: [11:3.00]
+; BROADWELL-NEXT: movl %ecx, %eax # sched: [1:0.25]
+; BROADWELL-NEXT: vpcmpistri $7, (%rdi), %xmm0 # sched: [11:3.00]
+; BROADWELL-NEXT: # kill: %ECX<def> %ECX<kill> %RCX<def>
+; BROADWELL-NEXT: leal (%rcx,%rax), %eax # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpistri:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpistri $7, %xmm1, %xmm0 # sched: [10:3.00]
; HASWELL-NEXT: vpcmpistrm $7, (%rdi), %xmm0 # sched: [11:3.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpistrm:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpistrm $7, %xmm1, %xmm0 # sched: [11:3.00]
+; BROADWELL-NEXT: vpcmpistrm $7, (%rdi), %xmm0 # sched: [11:3.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpistrm:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpistrm $7, %xmm1, %xmm0 # sched: [10:3.00]
; HASWELL-NEXT: vpcmpgtq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pcmpgtq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpcmpgtq %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpcmpgtq (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pcmpgtq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpcmpgtq %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
; HASWELL-NEXT: vpclmulqdq $0, (%rdi), %xmm0, %xmm0 # sched: [11:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pclmulqdq:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpclmulqdq $0, %xmm1, %xmm0, %xmm0 # sched: [11:2.00]
+; BROADWELL-NEXT: vpclmulqdq $0, (%rdi), %xmm0, %xmm0 # sched: [11:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pclmulqdq:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpclmulqdq $0, %xmm1, %xmm0, %xmm0 # sched: [6:1.00]
; 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
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=broadwell | FileCheck %s --check-prefix=CHECK --check-prefix=BROADWELL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skylake | FileCheck %s --check-prefix=CHECK --check-prefix=SKYLAKE
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx | FileCheck %s --check-prefix=CHECK --check-prefix=SKX
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=btver2 | FileCheck %s --check-prefix=CHECK --check-prefix=BTVER2
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpabsb %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpabsb (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpabsb %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpabsd %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpabsd (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpabsd %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pabsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpabsw %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpabsw (%rdi), %xmm1 # sched: [1:0.50]
+; BROADWELL-NEXT: vpor %xmm1, %xmm0, %xmm0 # sched: [1:0.33]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pabsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpabsw %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpalignr {{.*#+}} xmm0 = mem[14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13] sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_palignr:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5] sched: [1:1.00]
+; BROADWELL-NEXT: vpalignr {{.*#+}} xmm0 = mem[14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13] sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_palignr:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5] sched: [1:1.00]
; HASWELL-NEXT: vphaddd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphaddd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphaddd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphaddd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: vphaddsw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphaddsw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphaddsw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphaddsw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: vphaddw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phaddw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphaddw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphaddw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phaddw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphaddw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: vphsubd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphsubd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphsubd (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphsubd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: vphsubsw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphsubsw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphsubsw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphsubsw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: vphsubw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_phsubw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vphsubw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: vphsubw (%rdi), %xmm0, %xmm0 # sched: [3:2.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_phsubw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vphsubw %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
; HASWELL-NEXT: vpmaddubsw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmaddubsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmaddubsw %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmaddubsw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmaddubsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmaddubsw %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpmulhrsw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pmulhrsw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpmulhrsw %xmm1, %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: vpmulhrsw (%rdi), %xmm0, %xmm0 # sched: [5:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pmulhrsw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpmulhrsw %xmm1, %xmm0, %xmm0 # sched: [4:0.33]
; HASWELL-NEXT: vpshufb (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_pshufb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpshufb %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: vpshufb (%rdi), %xmm0, %xmm0 # sched: [1:1.00]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_pshufb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpshufb %xmm1, %xmm0, %xmm0 # sched: [1:1.00]
; HASWELL-NEXT: vpsignb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignb:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsignb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsignb (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignb:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsignb %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsignd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignd:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsignd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsignd (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignd:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsignd %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: vpsignw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
; HASWELL-NEXT: retq # sched: [2:1.00]
;
+; BROADWELL-LABEL: test_psignw:
+; BROADWELL: # BB#0:
+; BROADWELL-NEXT: vpsignw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: vpsignw (%rdi), %xmm0, %xmm0 # sched: [1:0.50]
+; BROADWELL-NEXT: retq # sched: [2:1.00]
+;
; SKYLAKE-LABEL: test_psignw:
; SKYLAKE: # BB#0:
; SKYLAKE-NEXT: vpsignw %xmm1, %xmm0, %xmm0 # sched: [1:0.50]