Javier Martinez
2009-Dec-03 19:01 UTC
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hi Duncan, Just wondering if you had a chance to look at the expansion. Thanks, Javier On Tue, 01 Dec 2009 20:20:14 +0100, Duncan Sands <baldrick at free.fr> wrote:> Hi Javier, > >> It seems that the code you pasted came from the function >> ExpandShiftByConstant and indeed it looks correct. In my example I used6>> as the shift amount but forgot to mention that it's stored in aregister.> > I see, sorry I didn't read your email more carefully. It does look like > ExpandShiftWithUnknownAmountBit is bogus - at a glance it looks like the > Cmp condition is inverted. I may have time to take a closer looktomorrow.> > Best wishes, > > Duncan.
Duncan Sands
2009-Dec-03 21:38 UTC
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hi Javier,> Just wondering if you had a chance to look at the expansion.I wrote my own fix and committed it in revision 90482. Do you have a testcase I can add to the testsuite (preferably not an execution test, but rather something that checks the assembler being generated)? Ciao, Duncan.
Javier Martinez
2009-Dec-04 00:09 UTC
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Duncan, Thanks for committing a fix. I see that you fixed a bug in my patch with the HiL in the case of an SRA. The issue with a test case is that it will depend on the target to expose it. Like you noted in the check-in comment x86 doesn't expose the bug. The target I'm working on isn't public. Short of writing a new one for the purpose of a test case I don't know what else to do. Do you have a suggestion? Thanks, Javier On Thu, 03 Dec 2009 22:38:44 +0100, Duncan Sands <baldrick at free.fr> wrote:> Hi Javier, > >> Just wondering if you had a chance to look at the expansion. > > I wrote my own fix and committed it in revision 90482. Do you > have a testcase I can add to the testsuite (preferably not an > execution test, but rather something that checks the assembler > being generated)? > > Ciao, > > Duncan.
Seemingly Similar Threads
- [LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
- [LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
- [LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
- [LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
- [LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit