[llvm] r259380 - [NFC] Referencing manual for reason why subregbit is checked

Colin LeMahieu via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 10:15:40 PST 2016


Author: colinl
Date: Mon Feb  1 12:15:39 2016
New Revision: 259380

URL: http://llvm.org/viewvc/llvm-project?rev=259380&view=rev
Log:
[NFC] Referencing manual for reason why subregbit is checked

Modified:
    llvm/trunk/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp

Modified: llvm/trunk/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp?rev=259380&r1=259379&r2=259380&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp Mon Feb  1 12:15:39 2016
@@ -382,7 +382,8 @@ DecodeStatus HexagonDisassembler::getSin
       if (Producer >= Hexagon::W0 && Producer <= Hexagon::W15)
         Producer = ((Producer - Hexagon::W0) << 1) + SubregBit + Hexagon::V0;
       else if (SubregBit)
-        // Subreg bit should not be set for non-doublevector newvalue producers
+		// Hexagon PRM 10.11 New-value operands
+		// Nt[0] is reserved and should always be encoded as zero.
         return MCDisassembler::Fail;
       assert(Producer != Hexagon::NoRegister);
       MCO.setReg(Producer);




More information about the llvm-commits mailing list