Implement the LLVM assembly urem and srem instructions in MIPS FastISel.
Based on a patch by Reed Kotler.
Paths
| Differential D7027
[mips][FastISel] Implement srem and urem. AbandonedPublic Authored by vkalintiris on Jan 16 2015, 5:53 PM.
Details
Diff Detail Event Timelinerkotler updated this object. dsanders added a parent revision: D6774: [mips][FastISel] Implement the select statement for MIPS FastISel.. dsanders edited edge metadata. Comment ActionsLGTM. There are some comments for the big cleanup at the end of this series.
This revision is now accepted and ready to land.May 12 2015, 5:06 AM vkalintiris retitled this revision from Implement srem, urem in Mips fast-isel to [mips][FastISel] Implement srem and urem.. vkalintiris updated this object. vkalintiris edited edge metadata. Comment ActionsRebased patch to top-of-tree and cleaned up the tests. Comment Actions Abandoned this patch because it's functionality was merged in D7028 and committed in r238757.
Revision Contents
Diff 25993 lib/Target/Mips/MipsFastISel.cpp
test/CodeGen/Mips/Fast-ISel/rem1.ll
|
The generated code is valid for all integers <=32-bit so long as operands are sign/zero extended properly by all relevant instructions.
I don't think we can guarantee that so this is something for the big cleanup once we've finished this set of patches.