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

    <tr>
        <th>Summary</th>
        <td>
            [DXIL] implement `trunc` lowering
        </td>
    </tr>

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

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

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

<pre>
    https://godbolt.org/z/qYMTWdW3r

Simple change just need to add  mapping from `Intrinsic::trunc` to dixil op `29`

like so:
```
@dx.op.unary.f16(i32 29, half %x) 
@dx.op.unary.f32(i32 29, float %x)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk9v3CwQxj_N-IJiwWATc_Bh33dlKVJ7aqWkRzDYJsHgAm6TfPrKm-2_qBICMZrfPKN5RuXs5mBtD-1_gDip9BqDB0Roz5XayxJTfw1WOpqXfilly8BPgAPgMEejoy91TDPg8Ao4fP3y8fO9uecJ6Bno6e3-5NbNWzIuKsyWPO65kGCtISUSZQwhq9o2F2YypbgSEPQulORCduMhxE8l7WEEQY98456dJ3E70lCCoH_qePdkSY4H9RYV9Hrevg01z3Xc6j2o9FJPTAB2jiNBCfg_WZSfCGD7DCjJvwmOfxGTj6r8RN5JVqbnRnKpKtuzW8YaypDJaulFa5hqx87caqE6OWnVTtw2QhupWcNE5Xqk2FCOLTLGuaxxMtPUjVIY0zIlNTTUrsr52vtv6zH7yuW8274Tbccqr7T1-WqoVuOTDQb46eySHcvD1drUH-yN3ucMDfUul_y7WnHFXzbi_HD3Adozudi32lCOqf9yw8fvNrkwV3vy7_fClWXX9RhXwOGoe31uthQf7VgAh0vLGXC4dP0jAAD___Xkwmc">