summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/fma-ext.ll
diff options
context:
space:
mode:
authorOlivier Sallenave <ohsallen@us.ibm.com>2015-04-09 17:55:26 +0000
committerOlivier Sallenave <ohsallen@us.ibm.com>2015-04-09 17:55:26 +0000
commit53703d0862c1454c222157e5d557b1053016e4c2 (patch)
tree448c452f8581832a50e929ce2149faeb5d01828c /llvm/test/CodeGen/PowerPC/fma-ext.ll
parent91d85dc6bc2fa2837b74fe05443824df7cdde6bd (diff)
downloadbcm5719-llvm-53703d0862c1454c222157e5d557b1053016e4c2.tar.gz
bcm5719-llvm-53703d0862c1454c222157e5d557b1053016e4c2.zip
Refactoring and enhancement to FMA combine.
llvm-svn: 234513
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/fma-ext.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/fma-ext.ll14
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/PowerPC/fma-ext.ll b/llvm/test/CodeGen/PowerPC/fma-ext.ll
index 56825ce8f22..9ab32a659cb 100644
--- a/llvm/test/CodeGen/PowerPC/fma-ext.ll
+++ b/llvm/test/CodeGen/PowerPC/fma-ext.ll
@@ -65,13 +65,11 @@ define double @test_FMSUB_EXT3(float %A, float %B, double %C) {
%G = fsub double %F, %C ; <double> [#uses=1]
ret double %G
; CHECK-LABEL: test_FMSUB_EXT3:
-; CHECK: fneg
-; CHECK-NEXT: fmsub
+; CHECK: fnmadd
; CHECK-NEXT: blr
; CHECK-VSX-LABEL: test_FMSUB_EXT3:
-; CHECK-VSX: xsnegdp
-; CHECK-VSX-NEXT: xsmsubmdp
+; CHECK-VSX: xsnmaddmdp
; CHECK-VSX-NEXT: blr
}
@@ -82,12 +80,10 @@ define double @test_FMSUB_EXT4(float %A, float %B, double %C) {
%G = fsub double %F, %C ; <double> [#uses=1]
ret double %G
; CHECK-LABEL: test_FMSUB_EXT4:
-; CHECK: fneg
-; CHECK-NEXT: fmsub
+; CHECK: fnmadd
; CHECK-NEXT: blr
; CHECK-VSX-LABEL: test_FMSUB_EXT4:
-; CHECK-VSX: xsnegdp
-; CHECK-VSX-NEXT: xsmsubmdp
+; CHECK-VSX: xsnmaddmdp
; CHECK-VSX-NEXT: blr
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud