summaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-11 08:31:54 +0000
committerEric Christopher <echristo@apple.com>2010-10-11 08:31:54 +0000
commit7bdc4de4e71e3c9c8d82504b99d03bbec3c06ec3 (patch)
treeb9f8ef836d86e404f0b52d2e7122664687d03e2a /lib/Target
parent3bbd396853c7645791417bc795bab4662235ec10 (diff)
downloadexternal_llvm-7bdc4de4e71e3c9c8d82504b99d03bbec3c06ec3.zip
external_llvm-7bdc4de4e71e3c9c8d82504b99d03bbec3c06ec3.tar.gz
external_llvm-7bdc4de4e71e3c9c8d82504b99d03bbec3c06ec3.tar.bz2
Add i8 sdiv support for ARM fast isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index e1f2759..4e2bfca 100644
--- 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;