projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bbd396
)
Add i8 sdiv support for ARM fast isel.
author
Eric Christopher
<echristo@apple.com>
Mon, 11 Oct 2010 08:31:54 +0000
(08:31 +0000)
committer
Eric Christopher
<echristo@apple.com>
Mon, 11 Oct 2010 08:31:54 +0000
(08:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116195
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMFastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMFastISel.cpp
b/lib/Target/ARM/ARMFastISel.cpp
index e1f2759fae8f784cdabaaa38fe60769038f96ba3..4e2bfca88f29db3e2f45a61ca70e124715f51a4d 100644
(file)
--- a/
lib/Target/ARM/ARMFastISel.cpp
+++ b/
lib/Target/ARM/ARMFastISel.cpp
@@
-1105,7
+1105,9
@@
bool ARMFastISel::SelectSDiv(const Instruction *I) {
// Otherwise emit a libcall.
RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL;
- if (VT == MVT::i16)
+ if (VT == MVT::i8)
+ LC = RTLIB::SDIV_I8;
+ else if (VT == MVT::i16)
LC = RTLIB::SDIV_I16;
else if (VT == MVT::i32)
LC = RTLIB::SDIV_I32;