<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/83179>83179</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[NVPTX] Assertion "Bad value decomposition" hit while compiling tests
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:NVPTX
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jhuber6
</td>
</tr>
</table>
<pre>
The NVPTX backend currently crashes when trying to compile this test https://github.com/llvm/llvm-project/blob/main/libc/test/src/__support/uint_test.cpp. I have reduced it down to the following LLVM-IR, or in https://godbolt.org/z/TEbxMz5q1.
```llvm
target triple = "nvptx64-nvidia-cuda"
%"struct.BigInt" = type { %"struct.arr" }
%"struct.arr" = type { [2 x i128] }
define void @foo() {
entry:
%call6 = call %"struct.BigInt" null(ptr null, i64 0)
ret void
}
```
This currently crashes in the backend, while other targets seem to handle it fine without crashing.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU02P2zYQ_TXUZbCCPNaHddBhHVfAAklRFIugtwUljiWmNKmSI3udX1-QttukH4cAAkVyOMP3OO_JEPRkiTpR7UV1yOTKs_Pdl3kdyNfZ4NS1e50Jfv78y-tvMMjxd7IKxtV7smyuMHoZZgpwmckC-6u2E7CD0Z0WbQh41gGYAsPMvASxfRbYC-wnzfM65KM7CeyNOT9-T4t3X2hkgf1g3CCwP0ltY1APo8A-lhLYBx8Xb29hXRbn486qLb_FaD4uSw4vMMszgSe1jqRAMyh3sREZzwRHZ4y7RKgfP37-9PTyq8AP4Dxo-0-YTg3OcO78JLD_KrB__Wl4__S1-mOTi-IgimdRF7cvkUhbLP1EDOz1YgjE9gAC0Z4Xfq_LJ3vWSsuncVVSIN5r3EasBGJgv46c7_X0Ylkgpny-LgSi2cN3Z6T36UBz-I8Cj-B32dUe4R30BneiOnyTmEZFR20Jzk4rEGVxdE7gTmAbU28nyLK_xrdJK4hoRmlMnW6JM_gfDnY1RuBuYX-ffgBdl1AIbO-1PHG6-Q7oL2SP1_0W6GvU1L8VqG3q7V2i8Y7LHCXoeCYPt6YECESnKINZWmUoCiOxvmie3cq3YtpOeaa6rWq3rcyo2zRFW9R1XZbZ3A0Nte1xUx_lhjaqoYKoqSraqVpua9VWme6wwLJAbLAoy6LM22E3lJUq6qLZVhtUoizoJLXJo2SitDIdwkrdbrtp2szIgUxIdkR8kNk-J_9FxVSHzHfJKsM6BVEWRgcOf9dizSa5-ZZRHeA5BPKsnY063EsFZ2lWAkXRpC7oGIpdmjXfn-zm3mRlChyy1Zvuh_2bSAWBfeL1ZwAAAP__eMxguA">