This is an archive of the discontinued LLVM Phabricator instance.

R600/SI: Cleanup parsing of register names.
ClosedPublic

Authored by arsenm on Apr 13 2014, 11:51 PM.

Details

Reviewers
arsenm
Summary

Try to figure out the class and number of subregisters.

Diff Detail

Event Timeline

+ 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@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

arsenm updated this revision to Unknown Object (????).Apr 14 2014, 11:26 AM

Fix bitmask

arsenm accepted this revision.Apr 15 2014, 3:39 PM

r206334

arsenm closed this revision.Apr 15 2014, 3:39 PM