[PATCH] D29887: [mips] divide macro instruction cleanup.
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 03:24:40 PST 2017
sdardis created this revision.
Clean up the implementation of divide macro expansion by getting rid of a
FIXME regarding magic numbers and branch instructions. Match GAS' behaviour
for expansion of ddiv / div in the two and three operand cases. Add the two
operand alias for MIPSR6. Finally, optimize macro expansion cases where the
divisior is the $zero register.
https://reviews.llvm.org/D29887
Files:
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/Mips32r6InstrInfo.td
lib/Target/Mips/Mips64InstrInfo.td
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsRegisterInfo.td
test/MC/Mips/macro-ddiv.s
test/MC/Mips/macro-ddivu.s
test/MC/Mips/macro-div-bad.s
test/MC/Mips/macro-div.s
test/MC/Mips/macro-divu-bad.s
test/MC/Mips/macro-divu.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29887.88176.patch
Type: text/x-patch
Size: 51304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170213/0cfde893/attachment.bin>
More information about the llvm-commits
mailing list