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

    <tr>
        <th>Summary</th>
        <td>
            stackmap entry for larger-than-register-sized struct values is incorrect.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    On x86_64, this program:
```
%s = type {i64, i64, i64}

define void @main() {
  %s1 = insertvalue %s undef, i64 55, 0
  %s2 = insertvalue %s %s1, i64 66, 1
  %s3 = insertvalue %s %s2, i64 77, 2

  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 99, i32 0, %s %s3)
  ret void
}
declare void @llvm.experimental.stackmap(i64, i32, ...)
```

Gives:
```
LLVM StackMap Version: 3
Num Functions: 1
  Function address: 4400, stack size: 8, callsite record count: 1
Num Constants: 0
Num Records: 1
  Record ID: 99, instruction offset: 9
    1 locations:
      #1: Register R#0, size: 8
    0 live-outs: [ ]
```

Yet this value cannot fit in `RAX`, and the size cannot be 8 bytes.

This is on `main` on Debian.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFVF2PmzAQ_DXwsgoy5is88JC76KpKd62UVqf2qTKwSdwSE9kmvfTXd20gSdW7ViJgr3dmdsd26r49Vx8VvCzzb3ka8Huwe2ngqPudFocgWQVsHbBVkLPpGac8MxAka7DnI0JQ3MkRe_Mp1lOqf7e4lQrh1MsWgpQdhFQBXwa8dOAxBcCxxp5WKoPankQ3oI_CoIhhooYscyN2C-OvwzzjDMtzN4pvYcnbMD7DisKN-G03AI3ouqkbvpy7TjwmiiLfV8q67nSI8OWIWh5QWdFFxormx0EcRxCU5YSjZmhw0U6IYFbSaL3QpD_b2mLTCX119H9afxX4-r769zt5QvPW1j8-Pj_BJ8f9JI7wjNrIXlEyJOP6h-EAD4NqLIUdydXwOQqibTUav5imzLfuiwUjf6GLLl3IWWykRXKg6XULTT8oe0PohO5JwwplPRe7xjce8qf8GIP3axednCe0Hsai-u3WoOe_WA8QQ9c3Ym7lGnenJ4ld8gZ30ljUsKHI2MqliUs6g44sXfTDWGiQ3dFv_Y8d-Eqb7u_heCgboVRvYSstlQyUu1l9cQhSE6qlTPSqc16NsIT6bNFEt6SfHSE9vafwVzBnbrbGWgoVhW2VtGVSitBK22E1HyCg86TPsO010JHboV7YvVALPXW-cNItjE6OBXsZqchv2jsbhYPuqr21R28if6BnJ-1-qKOmP9DEnd3ps6A_nu-Eoak0hphokGV5Wob7qsYmbeK0qIsyT1iabouiaEtetFmCPKvrsBM1dqYiewPOFf4ET0FjMjuUFWecs4x2qUw4KyLialjO4xzjmCdpQZcIyZQu8lep17tQV76ketgZd8OoW3NdFMbInUL0csQvBrvvdXXCF8vi0CtXvvLfwsWNDA">