diff options
author | Tim Northover <tnorthover@apple.com> | 2014-03-31 15:46:34 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-03-31 15:46:34 +0000 |
commit | 9542846832d3bcced9d7869cffb73e22ea7671f4 (patch) | |
tree | 7e47a1b1d7cba71661a50ab2ff5d0bc161bc33ff /test/CodeGen | |
parent | 4417e07e393ea639e05235a29b7faf090ec34d6d (diff) | |
download | llvm-9542846832d3bcced9d7869cffb73e22ea7671f4.tar.gz llvm-9542846832d3bcced9d7869cffb73e22ea7671f4.tar.bz2 llvm-9542846832d3bcced9d7869cffb73e22ea7671f4.tar.xz |
ARM64: add more patterns for commuted fmsub operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/ARM64/fmadd.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM64/fmadd.ll b/test/CodeGen/ARM64/fmadd.ll index 4ea841b8a1..d00aaef9c9 100644 --- a/test/CodeGen/ARM64/fmadd.ll +++ b/test/CodeGen/ARM64/fmadd.ll @@ -26,6 +26,15 @@ entry: ret float %0 } +define float @fms32_com(float %a, float %b, float %c) nounwind readnone ssp { +entry: +; CHECK-LABEL: fms32_com: +; CHECK: fmsub + %mul = fmul float %b, -1.000000e+00 + %0 = tail call float @llvm.fma.f32(float %mul, float %a, float %c) + ret float %0 +} + define float @fnms32(float %a, float %b, float %c) nounwind readnone ssp { entry: ; CHECK-LABEL: fnms32: @@ -61,6 +70,15 @@ entry: ret double %0 } +define double @fms64_com(double %a, double %b, double %c) nounwind readnone ssp { +; CHECK-LABEL: fms64_com: +; CHECK: fmsub +entry: + %mul = fmul double %b, -1.000000e+00 + %0 = tail call double @llvm.fma.f64(double %mul, double %a, double %c) + ret double %0 +} + define double @fnms64(double %a, double %b, double %c) nounwind readnone ssp { ; CHECK-LABEL: fnms64: ; CHECK: fnmsub |