summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMInstrInfo.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-27 23:12:14 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-27 23:12:14 +0000
commit338de3ee561aeefec99255b8be55907d04a5c47b (patch)
tree87a7bfa996a073bf444a56c7b67c7e385a2cc2d7 /llvm/lib/Target/ARM/ARMInstrInfo.cpp
parent03b99365e3f32f9aee00d1f69f72a7e0c2e3a94c (diff)
downloadbcm5719-llvm-338de3ee561aeefec99255b8be55907d04a5c47b.tar.gz
bcm5719-llvm-338de3ee561aeefec99255b8be55907d04a5c47b.zip
Refactor ARM STR/STRB instruction patterns into STR{B}i12 and STR{B}rs, like
the LDR instructions have. This makes the literal/register forms of the instructions explicit and allows us to assign scheduling itineraries appropriately. rdar://8477752 llvm-svn: 117505
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp
index d62b93e1b1e..7b40fad0e31 100644
--- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMInstrInfo.cpp
@@ -48,13 +48,13 @@ unsigned ARMInstrInfo::getUnindexedOpcode(unsigned Opc) const {
return ARM::LDRSB;
case ARM::STR_PRE:
case ARM::STR_POST:
- return ARM::STR;
+ return ARM::STRi12;
case ARM::STRH_PRE:
case ARM::STRH_POST:
return ARM::STRH;
case ARM::STRB_PRE:
case ARM::STRB_POST:
- return ARM::STRB;
+ return ARM::STRBi12;
}
return 0;
OpenPOWER on IntegriCloud