Add shift operators implementation to Fast-Isel for Mips. These are shift ops
for non legal forms, i.e. i8 and i16.
Based on a patch by Reed Kotler.
Differential D6726
[mips][FastISel] Implement shift ops for Mips Fast-Isel. vkalintiris on Dec 18 2014, 11:30 AM. Authored by
Details Add shift operators implementation to Fast-Isel for Mips. These are shift ops Based on a patch by Reed Kotler.
Diff Detail Event TimelineComment Actions Testcase? Also, one common nit is that many of the comments lack capitalization. From the patch summary:
The patch summary is supposed to be the commit message you intend to use. This kind of thing ought to be a follow up comment.
Comment Actions Hi Reed, Inline comments. Also, everything Daniel said. -eric
Comment Actions I am working on the make check test. Attached is the C code that was the original test case.
Comment Actions The C code for the test case was modified. I will finish it up tomorrow. This patch is so old I forgot that I had to modify it to create the proper clang IR for this test.
Comment Actions Replies inline. -eric
Comment Actions Vasileios is going to be taking over our Fast ISel work since Reed is needed elsewhere. Vasileios's (and my) first priority is to clear out the patch backlog, then he'll move on to cleaning things up and removing some unnecessary restrictions (e.g. PIC is currently required even for operations that don't involve addresses). @vkalintiris: Thanks for sorting out the inconsistency between sign/zero-extension handling. That was the main issue I had with the patch. Could you change the subject and description to be more commit-message like? Also, could you add something like 'Based on a patch by Reed Kotler' or 'Patch by Reed Kotler with some changes by Vasileios Kalintiris'. Reed should still get credit for his work.
|
Can you show me a test case that requires this? At the moment, the old code sounds correct to me and I think the consumers of this value should be sign/zero extending if they care about particular values of the undefined portion of the register.