From: Eric Christopher Date: Mon, 11 Oct 2010 08:31:54 +0000 (+0000) Subject: Add i8 sdiv support for ARM fast isel. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7bdc4de4e71e3c9c8d82504b99d03bbec3c06ec3;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index e1f2759fae8..4e2bfca88f2 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;