diff options
author | Lang Hames <lhames@gmail.com> | 2012-04-27 18:51:24 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-04-27 18:51:24 +0000 |
commit | ea001225c1f4a9452e846cb7866b432548ea551c (patch) | |
tree | 0d5bfa98ccaafaf5cc14c737e41a4eaf8e1c7d41 /llvm/test/CodeGen/ARM/fusedMAC.ll | |
parent | 3fe3f857699f03e9534b5e23aaa90638a6ff7360 (diff) | |
download | bcm5719-llvm-ea001225c1f4a9452e846cb7866b432548ea551c.tar.gz bcm5719-llvm-ea001225c1f4a9452e846cb7866b432548ea551c.zip |
Fix the order of the operands in the llvm.fma intrinsic patterns for ARM,
<rdar://problem/11325085>.
llvm-svn: 155724
Diffstat (limited to 'llvm/test/CodeGen/ARM/fusedMAC.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/fusedMAC.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/ARM/fusedMAC.ll b/llvm/test/CodeGen/ARM/fusedMAC.ll index 802d1b8b393..1ad7ce18ea1 100644 --- a/llvm/test/CodeGen/ARM/fusedMAC.ll +++ b/llvm/test/CodeGen/ARM/fusedMAC.ll @@ -138,8 +138,7 @@ entry: ; CHECK: vfms.f64 %tmp1 = fsub double -0.0, %b %tmp2 = tail call double @llvm.fma.f64(double %a, double %tmp1, double %c) nounwind readnone - %tmp3 = fsub double -0.0, %tmp2 - ret double %tmp3 + ret double %tmp2 } define double @test_fnms_f64(double %a, double %b, double %c) nounwind readnone ssp { @@ -158,7 +157,8 @@ entry: ; CHECK: vfnms.f64 %tmp1 = fsub double -0.0, %b %tmp2 = tail call double @llvm.fma.f64(double %a, double %tmp1, double %c) nounwind readnone - ret double %tmp2 + %tmp3 = fsub double -0.0, %tmp2 + ret double %tmp3 } define double @test_fnma_f64(double %a, double %b, double %c) nounwind readnone ssp { |