diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-06-01 06:07:48 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-06-01 06:07:48 +0000 |
commit | 3a8172ad8d991d71620fc0075a4cc6afc168756f (patch) | |
tree | 974b6bb80eacf19b4d0046edf5b2157d50933066 /test/CodeGen | |
parent | 78fc72d0f1be84ce53d66596ef4c4dc93cd9b0b0 (diff) | |
download | external_llvm-3a8172ad8d991d71620fc0075a4cc6afc168756f.zip external_llvm-3a8172ad8d991d71620fc0075a4cc6afc168756f.tar.gz external_llvm-3a8172ad8d991d71620fc0075a4cc6afc168756f.tar.bz2 |
Remove fadd(fmul) patterns for FMA3. This needs to be implemented by paying attention to FP_CONTRACT and matching @llvm.fma which is not available yet. This will allow us to enablle intrinsic use at least though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rwxr-xr-x | test/CodeGen/X86/fma3.ll | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/test/CodeGen/X86/fma3.ll b/test/CodeGen/X86/fma3.ll deleted file mode 100755 index 34f0ad4..0000000 --- a/test/CodeGen/X86/fma3.ll +++ /dev/null @@ -1,66 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-pc-win32 -mcpu=core-avx2 -mattr=avx2,+fma3 | FileCheck %s - -define <4 x float> @test_x86_fmadd_ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) { - ; CHECK: fmadd231ps {{.*\(%r.*}}, %xmm - %x = fmul <4 x float> %a0, %a1 - %res = fadd <4 x float> %x, %a2 - ret <4 x float> %res -} - -define <4 x float> @test_x86_fmsub_ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) { - ; CHECK: fmsub231ps {{.*\(%r.*}}, %xmm - %x = fmul <4 x float> %a0, %a1 - %res = fsub <4 x float> %x, %a2 - ret <4 x float> %res -} - -define <4 x float> @test_x86_fnmadd_ps(<4 x float> %a0, <4 x float> %a1, <4 x float> %a2) { - ; CHECK: fnmadd231ps {{.*\(%r.*}}, %xmm - %x = fmul <4 x float> %a0, %a1 - %res = fsub <4 x float> %a2, %x - ret <4 x float> %res -} - -define <8 x float> @test_x86_fmadd_ps_y(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2) { - ; CHECK: vfmadd213ps {{.*\(%r.*}}, %ymm - %x = fmul <8 x float> %a0, %a1 - %res = fadd <8 x float> %x, %a2 - ret <8 x float> %res -} - -define <4 x double> @test_x86_fmadd_pd_y(<4 x double> %a0, <4 x double> %a1, <4 x double> %a2) { - ; CHECK: vfmadd231pd {{.*\(%r.*}}, %ymm - %x = fmul <4 x double> %a0, %a1 - %res = fadd <4 x double> %x, %a2 - ret <4 x double> %res -} - - -define <8 x float> @test_x86_fmsub_ps_y(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2) { - ; CHECK: fmsub231ps {{.*\(%r.*}}, %ymm - %x = fmul <8 x float> %a0, %a1 - %res = fsub <8 x float> %x, %a2 - ret <8 x float> %res -} - -define <8 x float> @test_x86_fnmadd_ps_y(<8 x float> %a0, <8 x float> %a1, <8 x float> %a2) { - ; CHECK: fnmadd231ps {{.*\(%r.*}}, %ymm - %x = fmul <8 x float> %a0, %a1 - %res = fsub <8 x float> %a2, %x - ret <8 x float> %res -} - -define float @test_x86_fnmadd_ss(float %a0, float %a1, float %a2) { - ; CHECK: vfnmadd231ss %xmm1, %xmm0, %xmm2 - %x = fmul float %a0, %a1 - %res = fsub float %a2, %x - ret float %res -} - -define double @test_x86_fnmadd_sd(double %a0, double %a1, double %a2) { - ; CHECK: vfnmadd231sd %xmm1, %xmm0, %xmm2 - %x = fmul double %a0, %a1 - %res = fsub double %a2, %x - ret double %res -} - |