[PATCH] R600/SI: Cleanup parsing of register names.
Christian König
deathsimple at vodafone.de
Mon Apr 14 00:44:58 PDT 2014
> + // The low 7 bits encoding value is the register index, for both VGPRs and
> + // SGPRs.
> + unsigned RegIdx = MRI.getEncodingValue(reg) & 0x7;
That doesn't looks valid on first glance. For the low 7 bis you want a
mask of 0x1F here, not 0x7.
Christian.
Am 14.04.2014 08:51, schrieb Matt Arsenault:
> Try to figure out the class and number of subregisters.
>
> http://reviews.llvm.org/D3367
>
> Files:
> lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
> lib/Target/R600/InstPrinter/AMDGPUInstPrinter.h
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140414/0106561b/attachment.html>
More information about the llvm-commits
mailing list