diff options
author | Eric Christopher <echristo@apple.com> | 2010-10-11 08:31:54 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-10-11 08:31:54 +0000 |
commit | e11017c19ea0cd19f7e4cc6d1475bdafa355e9ff (patch) | |
tree | e4081dc06dec4739b1fc52901491cf91e0f8f35c /llvm/lib | |
parent | 511aa3196511dc0833353a956d8a9af5c34e335d (diff) | |
download | bcm5719-llvm-e11017c19ea0cd19f7e4cc6d1475bdafa355e9ff.tar.gz bcm5719-llvm-e11017c19ea0cd19f7e4cc6d1475bdafa355e9ff.zip |
Add i8 sdiv support for ARM fast isel.
llvm-svn: 116195
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index e1f2759fae8..4e2bfca88f2 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; |