commit | 9758562aa706a5a20a9d833074e733ed544db776 | [log] [tgz] |
---|---|---|
author | Akira Hatanaka <ahatanaka@mips.com> | Fri Jul 26 20:58:55 2013 +0000 |
committer | Akira Hatanaka <ahatanaka@mips.com> | Fri Jul 26 20:58:55 2013 +0000 |
tree | 2f308beae947ba1bd07b03b1f9ec1a13189de9b2 | |
parent | 407883b69b3bc10ebf053f5922d877b2e786d124 [diff] [blame] |
[mips] Implement llvm.trap intrinsic. Patch by Sasa Stankovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187244 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index 8bf4249..b6b4c2a 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -385,6 +385,8 @@ setTruncStoreAction(MVT::i64, MVT::i32, Custom); } + setOperationAction(ISD::TRAP, MVT::Other, Legal); + setTargetDAGCombine(ISD::SDIVREM); setTargetDAGCombine(ISD::UDIVREM); setTargetDAGCombine(ISD::SELECT);