From e11017c19ea0cd19f7e4cc6d1475bdafa355e9ff Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 11 Oct 2010 08:31:54 +0000 Subject: [PATCH] Add i8 sdiv support for ARM fast isel. llvm-svn: 116195 --- llvm/lib/Target/ARM/ARMFastISel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index e1f2759fae8f..4e2bfca88f29 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/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;