diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-30 01:42:24 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-30 01:42:24 +0000 |
commit | d593a77b4cf3b81cd657e351e47cad25ee037ce1 (patch) | |
tree | b46c30970cbc5aa535599e0fdbe66b2a77c05c31 /test/CodeGen/Mips | |
parent | f5926fd844a84adcf1ae4f193146f2877997b82c (diff) | |
download | llvm-d593a77b4cf3b81cd657e351e47cad25ee037ce1.tar.gz llvm-d593a77b4cf3b81cd657e351e47cad25ee037ce1.tar.bz2 llvm-d593a77b4cf3b81cd657e351e47cad25ee037ce1.tar.xz |
[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
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r-- | test/CodeGen/Mips/madd-msub.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/madd-msub.ll b/test/CodeGen/Mips/madd-msub.ll index 0aeabb30e2..efdb27cf05 100644 --- a/test/CodeGen/Mips/madd-msub.ll +++ b/test/CodeGen/Mips/madd-msub.ll @@ -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 { |