[PATCH] Fix TableGen -gen-disassembler output for certain bit field definitions.

Craig Topper craig.topper at gmail.com
Fri Sep 26 21:50:17 PDT 2014


Committed in r218560.

On Fri, Sep 26, 2014 at 11:22 AM, Steve King <steve at metrokings.com> wrote:

> Thanks Tom and Craig.
>
> I do not have commit access.  Can someone please commit patch 14123?
>
> On Fri, Sep 26, 2014 at 10:29 AM, Tom Stellard <tom at stellard.net> wrote:
> > On Fri, Sep 26, 2014 at 09:22:36AM -0700, Steve King wrote:
> >> On Fri, Sep 26, 2014 at 6:44 AM, Tom Stellard <tom at stellard.net> wrote:
> >> >
> >> > Tablegen has !shl and !srl operators, I think it would be good to add
> test
> >> > cases using those too.
> >> >
> >>
> >> Hi Tom - How would you use the ! operators here?  The test verifies
> >> general cherry picking of bits from operand to instruction.  Shift
> >> wasn't the right term -- I should rename the test as
> >> "BitOffsetDecoder".
> >
> > Hi Steve,
> >
> > Sorry, I didn't look quite close enough at what you were doing.
> >
> > In my head I was thinking it was something like:
> >
> > def Inst {
> >
> >   field bits<5> src;
> >
> >   let Inst{2-0} = !srl(src, 2);
> > }
> >
> > I think the patch is OK as is.
> >
> > -Tom
> >
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140926/b41a7fa1/attachment.html>


More information about the llvm-commits mailing list