diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-26 19:09:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-26 19:09:01 +0000 |
commit | 904f14663d6aa6354d7772dc7bce563b9aa18035 (patch) | |
tree | 91fc2f93bc007608fd31a292ca431e862d49d2af /llvm/lib | |
parent | 76a561f35e0c35fce4500602abb532550fca88eb (diff) | |
download | bcm5719-llvm-904f14663d6aa6354d7772dc7bce563b9aa18035.tar.gz bcm5719-llvm-904f14663d6aa6354d7772dc7bce563b9aa18035.zip |
tADDhirr is a thumb instruction. Do not allow this code to be reached in non-thumb mode.
llvm-svn: 67765
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp index d48b32af613..3c6d21fc409 100644 --- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp +++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp @@ -595,6 +595,8 @@ SDNode *ARMDAGToDAGISel::Select(SDValue Op) { } } case ISD::ADD: { + if (!Subtarget->isThumb()) + break; // Select add sp, c to tADDhirr. SDValue N0 = Op.getOperand(0); SDValue N1 = Op.getOperand(1); |