diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-02-01 23:34:03 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-01 23:34:03 +0000 |
| commit | 9b9e4ae796f27e4ee12e0974f2c81db4784893ae (patch) | |
| tree | 32bc1c900868f200f7d91fdfd73d7e19f73416cb | |
| parent | b8a29bdde9b76e4d37f3c34faf55a390ef55c106 (diff) | |
| download | bcm5719-llvm-9b9e4ae796f27e4ee12e0974f2c81db4784893ae.tar.gz bcm5719-llvm-9b9e4ae796f27e4ee12e0974f2c81db4784893ae.zip | |
Thumb does not have clz.
llvm-svn: 33773
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index c66d2ff4bf0..d56c3e967b7 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -154,7 +154,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) setOperationAction(ISD::ROTL, MVT::i32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); setOperationAction(ISD::CTPOP, MVT::i32, Expand); - if (!Subtarget->hasV5TOps()) + if (!Subtarget->hasV5TOps() || Subtarget->isThumb()) setOperationAction(ISD::CTLZ, MVT::i32, Expand); // These are expanded into libcalls. |

