<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/143679>143679</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [X86] VPTERNLOG asm comments don't discriminate between full / broadcast memory loads
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            backend:X86
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          RKSimon
      </td>
    </tr>
</table>

<pre>
    The printPTERNLOGComments helper in X86InstComments.cpp print "mem" for any folded memory load

https://github.com/llvm/llvm-project/blob/79a72c47d09c2e2cee645430f9d290c20d2618f1/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp#L915-L948

It would be very useful if instead they use "mem" just for full width loads and "bst32" / "bst64" for 32-bit (D) / 64-bit (Q) broadcasts.

This requires some minor tweaks to the switch statement to split the D/Q cases and an adjustment in the Src3Name handling.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU01v2zoQ_DXUZRFDWn0fdPCLnx6Cl6ZNYhS5UuTKYkKRLknF8L8vKMdB0FtPgobD5c7sDvdeHQxRx8p_WLlL-BIm67qn_5_VbE0yWHnu9hPB0SkTfuz_fXq4__7frZ1nMsHDRPpIDpSBl6a6Mz5cTzbieLzcAYY408wQYbQOuDnDaLUkCTPN1p1BWy5ZumXpdgrh6Fm-Zdgz7A8qTMuwEXZm2Gv9fv3cHJ19JREY9oO2A8O-bnmNoqhl2gokFERVURZ5OrYS21RgKrHKmjH7UkfFe3vuDhTrvDQVw_7b7QXYkRcX8E9FDPP7Nitv7tuiubR8F-BkFy1hIHgnd4bF07hoUCMo4wNxCWGiFf5ixOviw-rGuGgNJyXDtNrggRsZeYMPOUYmw_7jvyquFuZ4M6joa7Nj2K6UqrhCjxEanOVScB_85tLmflIeHP1alCMP3s4EszLWQTgRf_MQbGwT_EkFMYEPPFAUHXF_1CqspzuG_SMI7unSJzfAZZSyUpVZSc9O5A98Jpi4kVqZwyaRXS7bvOUJdVldtFXeYFEmU9cMspFZxrOqlGWDQyFFVuZDWshR5HLgieowxTKtsixL8xrLTVU2WSqKaix4hVzUrEhp5kpv4lg31h0S5f1CXVbkVd0mmg-k_brZiAdrJYzK-QAriSEyvI3ecvFGRrJ8u64BxhS4bt20YTl4VqRaRSc_3wgq6DUvkV_u4Oc1FsD9DOKaDWkNwzqAVF44NSvDA8FA4URkLoOPk_sc1dc4-GRxuvvrOKy6PMP-Q_97h78DAAD__3BVPvI">