[mips] Move the code which does dag-combine for multiply-add/sub nodes to

derived class MipsSETargetLowering.

We shouldn't be generating madd/msub nodes if target is Mips16, since Mips16
doesn't have support for multipy-add/sub instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka
2013-03-30 01:42:24 +00:00
parent f5926fd844
commit d593a77b4c
4 changed files with 200 additions and 186 deletions

View File

@@ -1,4 +1,5 @@
; RUN: llc -march=mips < %s | FileCheck %s
; RUN: llc -march=mips -mcpu=mips16 < %s
; CHECK: madd
define i64 @madd1(i32 %a, i32 %b, i32 %c) nounwind readnone {