This patch teaches x86 fast-isel to generate the native div/idiv instructions
authorEli Bendersky <eliben@google.com>
Wed, 17 Apr 2013 20:10:13 +0000 (20:10 +0000)
committerEli Bendersky <eliben@google.com>
Wed, 17 Apr 2013 20:10:13 +0000 (20:10 +0000)
commit50125482d399ae58223a7f39a1c001fdb635508a
tree85c69dff15af6c11300eb87b2b3ad0a7582437ed
parent9c63f0d687cf1130ee2e76a6fdc87d71ae9d3961
This patch teaches x86 fast-isel to generate the native div/idiv instructions
for the sdiv/srem/udiv/urem bitcode instructions.  This is done for the i8,
i16, and i32 types, as well as i64 for the x86_64 target.

Patch by Jim Stichnoth

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179715 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-divrem-x86-64.ll [new file with mode: 0644]
test/CodeGen/X86/fast-isel-divrem.ll [new file with mode: 0644]