summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJyotsna Verma <jverma@codeaurora.org>2013-04-04 21:18:26 +0000
committerJyotsna Verma <jverma@codeaurora.org>2013-04-04 21:18:26 +0000
commit0e58d92628486aee7e4745d451c37a9b409adf7a (patch)
tree9d112793991487ce701a03c042d5e60dee71e4cb /lib
parentad2e252865e4c2f8e53a59e9410b19242f5ca9b3 (diff)
downloadllvm-0e58d92628486aee7e4745d451c37a9b409adf7a.tar.gz
llvm-0e58d92628486aee7e4745d451c37a9b409adf7a.tar.bz2
llvm-0e58d92628486aee7e4745d451c37a9b409adf7a.tar.xz
Hexagon: Expand br_cc.
It fixes following tests for Hexagon: CodeGen/Generic/2003-07-29-BadConstSbyte.ll CodeGen/Generic/2005-10-21-longlonggtu.ll CodeGen/Generic/2009-04-28-i128-cmp-crash.ll CodeGen/Generic/MachineBranchProb.ll CodeGen/Generic/builtin-expect.ll CodeGen/Generic/pr12507.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Hexagon/HexagonISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Hexagon/HexagonISelLowering.cpp b/lib/Target/Hexagon/HexagonISelLowering.cpp
index 0a8b1af21b..15858a9368 100644
--- a/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -1370,10 +1370,12 @@ HexagonTargetLowering::HexagonTargetLowering(HexagonTargetMachine
// Increase jump tables cutover to 5, was 4.
setMinimumJumpTableEntries(5);
+ setOperationAction(ISD::BR_CC, MVT::Other, Expand);
setOperationAction(ISD::BR_CC, MVT::f32, Expand);
setOperationAction(ISD::BR_CC, MVT::f64, Expand);
setOperationAction(ISD::BR_CC, MVT::i1, Expand);
setOperationAction(ISD::BR_CC, MVT::i32, Expand);
+ setOperationAction(ISD::BR_CC, MVT::i64, Expand);
setOperationAction(ISD::MEMBARRIER, MVT::Other, Custom);
setOperationAction(ISD::ATOMIC_FENCE, MVT::Other, Custom);