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

    <tr>
        <th>Summary</th>
        <td>
            [X86] ABI mismatch between Clang and GCC/ICC when arguments are structures with more than one element
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:X86
      </td>
    </tr>

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

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

<pre>
    This is found during working on D122104. https://godbolt.org/z/5z4eG6a5P
The comments and the code below seems not correct:
 https://github.com/llvm/llvm-project/blob/d9cea8d3a8fff86672174780312674871729578c/clang/lib/CodeGen/TargetInfo.cpp#L3050-L3056
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUk2PpCAQ_TV6IWMQVPTgocfOdDrZwx76sFeUUtlB6ACu2fn1W5jZTLK3TYCC-nr1qhid-t0_Vh0IrtntVhG1e20Xcjj_nqSz5FoyVtKqIGuMz5DxS8becC1Ojc7EwvkFXx-4648Kbo2sv2f0mtHLYwUyuW0DGwORmDqeCgVkBOMOEgC2QKyLqPQepphSn5H_Ium47mOBufBhzK-_4uXp3c8Ux95G40YUqptAtorLdp7ntmkEK0UlWspL1oiqFaVgXS3aCV0nI20q3OgUOGBZN7B4e0i_QLzb2RXT85kx_o3Tmr6ks8lVz1XHO5lHHQ30Wf36o22y-kour3ey6bDJOK1ILx4AlgwJ4mR-GwZMfR8GcqxoQIj9sy0eSIh-n-LuIZADmZLNoTKu0mLzgYCB5Jrv3vT_3RYdwg4hjaaqW5av_UTnDqjoFGs5a7BRoGYOXEgheM2UzI3E4YTELGNslNM7WIWIiSZjyDTXPaOMUc5EybigtJAVrVRLZynLsZwnyCoKm9SmSLWk35H7_ixr3JeARqNDDF9GGYJeLMAn5HN1MMJxzubEk3tcne-_9PlJqj8Z_QEs0-DH">