<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tablegen does not generate the correct operand types for the MCInstrDesc:s"
   href="https://bugs.llvm.org/show_bug.cgi?id=33545">33545</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Tablegen does not generate the correct operand types for the MCInstrDesc:s
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Target Description Classes
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>paulsson@linux.vnet.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I noticed that it seems that all the addressing operands of the SystemZ backend
instructions seem to all have the UNKNOWN type, which is a bit odd. I was
expecting to see either REGISTER or IMMEDIATE.

For example:

lib/Target/SystemZ/SystemZGenInstrInfo.inc:

{ 1142,       4,      1,      6,      41,    
0|(1ULL<<MCID::FoldableAsLoad)|(1ULL<<MCID::MayLoad), 0x10dULL, nullptr,
nullptr, OperandInfo30, -1 ,nullptr },  // Inst #1142 = LG  (Load 64 bits from
memory)

static const MCOperandInfo OperandInfo30[] = { { SystemZ::GR64BitRegClassID, 0,
MCOI::OPERAND_REGISTER, 0 }, { SystemZ::ADDR64BitRegClassID, 0,
MCOI::OPERAND_UNKNOWN, 0 }, { -1, 0, MCOI::OPERAND_UNKNOWN, 0 }, {
SystemZ::ADDR64BitRegClassID, 0, MCOI::OPERAND_UNKNOWN, 0 }, };

It seems for all AddressingMode operands, these are all UNKNOWN instead of
OPERAND_REGISTER / OPERAND_IMMEDIATE...

Is this a bug in tablegen, or is it possible to fix it in the SystemZ
implementation?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>