OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a967d11
)
sign_extend_inreg needs to be expanded for pre-v6 Thumb as well as ARM.
author
Bob Wilson
<bob.wilson@apple.com>
Mon, 21 Jun 2010 21:27:34 +0000
(21:27 +0000)
committer
Bob Wilson
<bob.wilson@apple.com>
Mon, 21 Jun 2010 21:27:34 +0000
(21:27 +0000)
Radar
8104310
.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106484
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMISelLowering.cpp
b/lib/Target/ARM/ARMISelLowering.cpp
index
333907c
..
7f89b2d
100644
(file)
--- a/
lib/Target/ARM/ARMISelLowering.cpp
+++ b/
lib/Target/ARM/ARMISelLowering.cpp
@@
-455,7
+455,7
@@
ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
// If the subtarget does not have extract instructions, sign_extend_inreg
// needs to be expanded. Extract is available in ARM mode on v6 and up,
// and on most Thumb2 implementations.
- if (
(!Subtarget->isThumb() && !Subtarget->hasV6Ops()
)
+ if (
!Subtarget->hasV6Ops(
)
|| (Subtarget->isThumb2() && !Subtarget->hasT2ExtractPack())) {
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand);
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8, Expand);