forked from OSchip/llvm-project
1656 lines
67 KiB
LLVM
1656 lines
67 KiB
LLVM
; 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
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=znver1 | FileCheck %s --check-prefix=CHECK --check-prefix=ZNVER1
|
|
|
|
;
|
|
; VFMADD132 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMADD213
|
|
;
|
|
|
|
define <2 x double> @test_vfmadd213pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmadd213pd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmadd213pd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; 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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmadd213pd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmadd213pd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmadd213pd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmadd213pd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmadd213pd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmadd213pd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfmadd.pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfmadd.pd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x double> @test_vfmadd213pd_ymm(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2, <4 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmadd213pd_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmadd213pd_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmadd213pd_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmadd213pd_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmadd213pd_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmadd213pd_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmadd213pd %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmadd213pd (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x double> @llvm.x86.fma.vfmadd.pd.256(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2)
|
|
%2 = load <4 x double>, <4 x double> *%a3
|
|
%3 = call <4 x double> @llvm.x86.fma.vfmadd.pd.256(<4 x double> %1, <4 x double> %a1, <4 x double> %2)
|
|
ret <4 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfmadd213ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmadd213ps:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmadd213ps:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmadd213ps:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmadd213ps:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmadd213ps:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmadd213ps:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmadd213ps %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmadd213ps (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfmadd.ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfmadd.ps(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
define <8 x float> @test_vfmadd213ps_ymm(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2, <8 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmadd213ps_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmadd213ps_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmadd213ps_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmadd213ps_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmadd213ps_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmadd213ps_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmadd213ps %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmadd213ps (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <8 x float> @llvm.x86.fma.vfmadd.ps.256(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2)
|
|
%2 = load <8 x float>, <8 x float> *%a3
|
|
%3 = call <8 x float> @llvm.x86.fma.vfmadd.ps.256(<8 x float> %1, <8 x float> %a1, <8 x float> %2)
|
|
ret <8 x float> %3
|
|
}
|
|
|
|
define <2 x double> @test_vfmadd213sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmadd213sd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmadd213sd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmadd213sd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmadd213sd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmadd213sd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmadd213sd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmadd213sd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmadd213sd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfmadd.sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfmadd.sd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfmadd213ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmadd213ss:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmadd213ss:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmadd213ss:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmadd213ss:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmadd213ss:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmadd213ss:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmadd213ss %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmadd213ss (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfmadd.ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfmadd.ss(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
;
|
|
; VFMADD231 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMADDSUB132 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMADDSUB213
|
|
;
|
|
|
|
define <2 x double> @test_vfmaddsubpd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmaddsubpd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmaddsubpd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmaddsubpd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmaddsubpd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmaddsubpd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmaddsubpd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmaddsub213pd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmaddsub213pd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfmaddsub.pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfmaddsub.pd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x double> @test_vfmaddsubpd_ymm(<4 x double> %a0, <4 x double> %a1, <4 x double> %a4, <4 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmaddsubpd_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmaddsubpd_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmaddsubpd_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmaddsubpd_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmaddsubpd_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmaddsubpd_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmaddsub213pd %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmaddsub213pd (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x double> @llvm.x86.fma.vfmaddsub.pd.256(<4 x double> %a0, <4 x double> %a1, <4 x double> %a4)
|
|
%2 = load <4 x double>, <4 x double> *%a3
|
|
%3 = call <4 x double> @llvm.x86.fma.vfmaddsub.pd.256(<4 x double> %1, <4 x double> %a1, <4 x double> %2)
|
|
ret <4 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfmaddsubps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a4, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmaddsubps:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmaddsubps:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmaddsubps:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmaddsubps:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmaddsubps:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmaddsubps:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmaddsub213ps %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmaddsub213ps (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfmaddsub.ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a4)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfmaddsub.ps(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
define <8 x float> @test_vfmaddsubps_ymm(<8 x float> %a0, <8 x float> %a1, <8 x float> %a8, <8 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmaddsubps_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmaddsubps_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmaddsubps_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmaddsubps_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmaddsubps_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmaddsubps_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmaddsub213ps %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmaddsub213ps (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <8 x float> @llvm.x86.fma.vfmaddsub.ps.256(<8 x float> %a0, <8 x float> %a1, <8 x float> %a8)
|
|
%2 = load <8 x float>, <8 x float> *%a3
|
|
%3 = call <8 x float> @llvm.x86.fma.vfmaddsub.ps.256(<8 x float> %1, <8 x float> %a1, <8 x float> %2)
|
|
ret <8 x float> %3
|
|
}
|
|
|
|
;
|
|
; VFMADDSUB231 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMSUBADD132 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMSUBADD213
|
|
;
|
|
|
|
define <2 x double> @test_vfmsubaddpd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsubaddpd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsubaddpd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsubaddpd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsubaddpd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsubaddpd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsubaddpd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsubadd213pd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmsubadd213pd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfmsubadd.pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfmsubadd.pd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x double> @test_vfmsubaddpd_ymm(<4 x double> %a0, <4 x double> %a1, <4 x double> %a4, <4 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsubaddpd_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsubaddpd_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsubaddpd_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsubaddpd_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsubaddpd_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsubaddpd_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsubadd213pd %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmsubadd213pd (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x double> @llvm.x86.fma.vfmsubadd.pd.256(<4 x double> %a0, <4 x double> %a1, <4 x double> %a4)
|
|
%2 = load <4 x double>, <4 x double> *%a3
|
|
%3 = call <4 x double> @llvm.x86.fma.vfmsubadd.pd.256(<4 x double> %1, <4 x double> %a1, <4 x double> %2)
|
|
ret <4 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfmsubaddps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a4, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsubaddps:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsubaddps:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsubaddps:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsubaddps:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsubaddps:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsubaddps:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsubadd213ps %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmsubadd213ps (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfmsubadd.ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a4)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfmsubadd.ps(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
define <8 x float> @test_vfmsubaddps_ymm(<8 x float> %a0, <8 x float> %a1, <8 x float> %a8, <8 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsubaddps_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsubaddps_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsubaddps_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsubaddps_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsubaddps_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsubaddps_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsubadd213ps %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmsubadd213ps (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <8 x float> @llvm.x86.fma.vfmsubadd.ps.256(<8 x float> %a0, <8 x float> %a1, <8 x float> %a8)
|
|
%2 = load <8 x float>, <8 x float> *%a3
|
|
%3 = call <8 x float> @llvm.x86.fma.vfmsubadd.ps.256(<8 x float> %1, <8 x float> %a1, <8 x float> %2)
|
|
ret <8 x float> %3
|
|
}
|
|
|
|
;
|
|
; VFMSUBADD231 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMSUB132 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFMSUB213
|
|
;
|
|
|
|
define <2 x double> @test_vfmsub213pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsub213pd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsub213pd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsub213pd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsub213pd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsub213pd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsub213pd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsub213pd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmsub213pd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfmsub.pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfmsub.pd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x double> @test_vfmsub213pd_ymm(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2, <4 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsub213pd_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsub213pd_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsub213pd_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsub213pd_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsub213pd_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsub213pd_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsub213pd %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmsub213pd (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x double> @llvm.x86.fma.vfmsub.pd.256(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2)
|
|
%2 = load <4 x double>, <4 x double> *%a3
|
|
%3 = call <4 x double> @llvm.x86.fma.vfmsub.pd.256(<4 x double> %1, <4 x double> %a1, <4 x double> %2)
|
|
ret <4 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfmsub213ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsub213ps:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsub213ps:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsub213ps:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsub213ps:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsub213ps:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsub213ps:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsub213ps %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmsub213ps (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfmsub.ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfmsub.ps(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
define <8 x float> @test_vfmsub213ps_ymm(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2, <8 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsub213ps_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsub213ps_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsub213ps_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsub213ps_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsub213ps_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsub213ps_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsub213ps %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfmsub213ps (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <8 x float> @llvm.x86.fma.vfmsub.ps.256(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2)
|
|
%2 = load <8 x float>, <8 x float> *%a3
|
|
%3 = call <8 x float> @llvm.x86.fma.vfmsub.ps.256(<8 x float> %1, <8 x float> %a1, <8 x float> %2)
|
|
ret <8 x float> %3
|
|
}
|
|
|
|
define <2 x double> @test_vfmsub213sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsub213sd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsub213sd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsub213sd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsub213sd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsub213sd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsub213sd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsub213sd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmsub213sd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfmsub.sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfmsub.sd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfmsub213ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfmsub213ss:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfmsub213ss:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfmsub213ss:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfmsub213ss:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfmsub213ss:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfmsub213ss:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfmsub213ss %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfmsub213ss (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfmsub.ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfmsub.ss(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
;
|
|
; VFMSUB231 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFNMADD132 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFNMADD213
|
|
;
|
|
|
|
define <2 x double> @test_vfnmadd213pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmadd213pd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmadd213pd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmadd213pd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmadd213pd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmadd213pd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmadd213pd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmadd213pd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmadd213pd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfnmadd.pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfnmadd.pd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x double> @test_vfnmadd213pd_ymm(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2, <4 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmadd213pd_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmadd213pd_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmadd213pd_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmadd213pd_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmadd213pd_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmadd213pd_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmadd213pd %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfnmadd213pd (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x double> @llvm.x86.fma.vfnmadd.pd.256(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2)
|
|
%2 = load <4 x double>, <4 x double> *%a3
|
|
%3 = call <4 x double> @llvm.x86.fma.vfnmadd.pd.256(<4 x double> %1, <4 x double> %a1, <4 x double> %2)
|
|
ret <4 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfnmadd213ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmadd213ps:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmadd213ps:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmadd213ps:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmadd213ps:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmadd213ps:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmadd213ps:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmadd213ps %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmadd213ps (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfnmadd.ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfnmadd.ps(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
define <8 x float> @test_vfnmadd213ps_ymm(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2, <8 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmadd213ps_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmadd213ps_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmadd213ps_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmadd213ps_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmadd213ps_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmadd213ps_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmadd213ps %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfnmadd213ps (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <8 x float> @llvm.x86.fma.vfnmadd.ps.256(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2)
|
|
%2 = load <8 x float>, <8 x float> *%a3
|
|
%3 = call <8 x float> @llvm.x86.fma.vfnmadd.ps.256(<8 x float> %1, <8 x float> %a1, <8 x float> %2)
|
|
ret <8 x float> %3
|
|
}
|
|
|
|
define <2 x double> @test_vfnmadd213sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmadd213sd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmadd213sd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmadd213sd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmadd213sd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmadd213sd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmadd213sd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmadd213sd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmadd213sd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfnmadd.sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfnmadd.sd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfnmadd213ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmadd213ss:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmadd213ss:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmadd213ss:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmadd213ss:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmadd213ss:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmadd213ss:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmadd213ss %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmadd213ss (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfnmadd.ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfnmadd.ss(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
;
|
|
; VFNMADD231 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFNMSUB132 (TODO)
|
|
;
|
|
|
|
;
|
|
; VFNMSUB213
|
|
;
|
|
|
|
define <2 x double> @test_vfnmsub213pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmsub213pd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmsub213pd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmsub213pd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmsub213pd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmsub213pd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmsub213pd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmsub213pd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmsub213pd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfnmsub.pd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfnmsub.pd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x double> @test_vfnmsub213pd_ymm(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2, <4 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmsub213pd_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmsub213pd_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmsub213pd_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmsub213pd_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmsub213pd_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmsub213pd_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmsub213pd %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfnmsub213pd (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x double> @llvm.x86.fma.vfnmsub.pd.256(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2)
|
|
%2 = load <4 x double>, <4 x double> *%a3
|
|
%3 = call <4 x double> @llvm.x86.fma.vfnmsub.pd.256(<4 x double> %1, <4 x double> %a1, <4 x double> %2)
|
|
ret <4 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfnmsub213ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmsub213ps:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmsub213ps:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmsub213ps:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmsub213ps:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmsub213ps:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0 # sched: [10:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmsub213ps:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmsub213ps %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmsub213ps (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfnmsub.ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfnmsub.ps(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
define <8 x float> @test_vfnmsub213ps_ymm(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2, <8 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmsub213ps_ymm:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0
|
|
; GENERIC-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmsub213ps_ymm:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0 # sched: [5: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: [11:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmsub213ps_ymm:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmsub213ps_ymm:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmsub213ps_ymm:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0 # sched: [11:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmsub213ps_ymm:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmsub213ps %ymm2, %ymm1, %ymm0
|
|
; ZNVER1-NEXT: vfnmsub213ps (%rdi), %ymm1, %ymm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <8 x float> @llvm.x86.fma.vfnmsub.ps.256(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2)
|
|
%2 = load <8 x float>, <8 x float> *%a3
|
|
%3 = call <8 x float> @llvm.x86.fma.vfnmsub.ps.256(<8 x float> %1, <8 x float> %a1, <8 x float> %2)
|
|
ret <8 x float> %3
|
|
}
|
|
|
|
define <2 x double> @test_vfnmsub213sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2, <2 x double> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmsub213sd:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmsub213sd:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmsub213sd:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmsub213sd:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmsub213sd:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmsub213sd:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmsub213sd %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmsub213sd (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <2 x double> @llvm.x86.fma.vfnmsub.sd(<2 x double> %a0, <2 x double> %a1, <2 x double> %a2)
|
|
%2 = load <2 x double>, <2 x double> *%a3
|
|
%3 = call <2 x double> @llvm.x86.fma.vfnmsub.sd(<2 x double> %1, <2 x double> %a1, <2 x double> %2)
|
|
ret <2 x double> %3
|
|
}
|
|
|
|
define <4 x float> @test_vfnmsub213ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2, <4 x float> *%a3) {
|
|
; GENERIC-LABEL: test_vfnmsub213ss:
|
|
; GENERIC: # %bb.0:
|
|
; GENERIC-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0
|
|
; GENERIC-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0
|
|
; GENERIC-NEXT: retq # sched: [1:1.00]
|
|
;
|
|
; HASWELL-LABEL: test_vfnmsub213ss:
|
|
; HASWELL: # %bb.0:
|
|
; HASWELL-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0 # sched: [5: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: [10:0.50]
|
|
; BROADWELL-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; SKYLAKE-LABEL: test_vfnmsub213ss:
|
|
; SKYLAKE: # %bb.0:
|
|
; SKYLAKE-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.50]
|
|
; SKYLAKE-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKYLAKE-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; KNL-LABEL: test_vfnmsub213ss:
|
|
; KNL: # %bb.0:
|
|
; KNL-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0 # sched: [5:0.50]
|
|
; KNL-NEXT: retq # sched: [2:1.00]
|
|
;
|
|
; SKX-LABEL: test_vfnmsub213ss:
|
|
; SKX: # %bb.0:
|
|
; SKX-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0 # sched: [4:0.33]
|
|
; SKX-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0 # sched: [9:0.50]
|
|
; SKX-NEXT: retq # sched: [7:1.00]
|
|
;
|
|
; ZNVER1-LABEL: test_vfnmsub213ss:
|
|
; ZNVER1: # %bb.0:
|
|
; ZNVER1-NEXT: vfnmsub213ss %xmm2, %xmm1, %xmm0
|
|
; ZNVER1-NEXT: vfnmsub213ss (%rdi), %xmm1, %xmm0
|
|
; ZNVER1-NEXT: retq # sched: [1:0.50]
|
|
%1 = call <4 x float> @llvm.x86.fma.vfnmsub.ss(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2)
|
|
%2 = load <4 x float>, <4 x float> *%a3
|
|
%3 = call <4 x float> @llvm.x86.fma.vfnmsub.ss(<4 x float> %1, <4 x float> %a1, <4 x float> %2)
|
|
ret <4 x float> %3
|
|
}
|
|
|
|
;
|
|
; VFNMSUB231 (TODO)
|
|
;
|
|
|
|
|
|
declare <4 x float> @llvm.x86.fma.vfmadd.ss(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfmadd.sd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x float> @llvm.x86.fma.vfmadd.ps(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <8 x float> @llvm.x86.fma.vfmadd.ps.256(<8 x float>, <8 x float>, <8 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfmadd.pd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x double> @llvm.x86.fma.vfmadd.pd.256(<4 x double>, <4 x double>, <4 x double>)
|
|
|
|
declare <4 x float> @llvm.x86.fma.vfmaddsub.ps(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <8 x float> @llvm.x86.fma.vfmaddsub.ps.256(<8 x float>, <8 x float>, <8 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfmaddsub.pd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x double> @llvm.x86.fma.vfmaddsub.pd.256(<4 x double>, <4 x double>, <4 x double>)
|
|
|
|
declare <4 x float> @llvm.x86.fma.vfmsubadd.ps(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <8 x float> @llvm.x86.fma.vfmsubadd.ps.256(<8 x float>, <8 x float>, <8 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfmsubadd.pd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x double> @llvm.x86.fma.vfmsubadd.pd.256(<4 x double>, <4 x double>, <4 x double>)
|
|
|
|
declare <4 x float> @llvm.x86.fma.vfmsub.ss(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfmsub.sd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x float> @llvm.x86.fma.vfmsub.ps(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <8 x float> @llvm.x86.fma.vfmsub.ps.256(<8 x float>, <8 x float>, <8 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfmsub.pd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x double> @llvm.x86.fma.vfmsub.pd.256(<4 x double>, <4 x double>, <4 x double>)
|
|
|
|
declare <4 x float> @llvm.x86.fma.vfnmadd.ss(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfnmadd.sd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x float> @llvm.x86.fma.vfnmadd.ps(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <8 x float> @llvm.x86.fma.vfnmadd.ps.256(<8 x float>, <8 x float>, <8 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfnmadd.pd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x double> @llvm.x86.fma.vfnmadd.pd.256(<4 x double>, <4 x double>, <4 x double>)
|
|
|
|
declare <4 x float> @llvm.x86.fma.vfnmsub.ss(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfnmsub.sd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x float> @llvm.x86.fma.vfnmsub.ps(<4 x float>, <4 x float>, <4 x float>)
|
|
declare <8 x float> @llvm.x86.fma.vfnmsub.ps.256(<8 x float>, <8 x float>, <8 x float>)
|
|
declare <2 x double> @llvm.x86.fma.vfnmsub.pd(<2 x double>, <2 x double>, <2 x double>)
|
|
declare <4 x double> @llvm.x86.fma.vfnmsub.pd.256(<4 x double>, <4 x double>, <4 x double>)
|