[PATCH] R600/SI: Cleanup parsing of register names.

Matt Arsenault arsenm2 at gmail.com
Mon Apr 14 11:18:55 PDT 2014


On Apr 14, 2014, at 12:44 AM, Christian König <deathsimple at vodafone.de> wrote:

>> +  // 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.

You’re right. It also should be 8 bits, since VGPRs go to 255

> 
> 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
> 
> _______________________________________________
> 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/a523f8c5/attachment.html>


More information about the llvm-commits mailing list