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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] swap _`_builtin_elementwise_round` for `__builtin_elementwise_roundeven`
        </td>
    </tr>

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

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

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

<pre>
    Changes needed to 
-`clang/lib/Headers/hlsl/hlsl_intrinsics.h` 
- `llvm/lib/Target/DirectX/DXIL.td`
- clang/lib/Sema/SemaChecking.cpp`
so that we use `llvm.roundeven` instead of `llvm.round`

https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-round
https://llvm.org/docs/LangRef.html#llvm-roundeven-intrinsic

_Originally posted by @sudonatalie in https://github.com/llvm/llvm-project/pull/86844#discussion_r1543538650_
 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU09v4ygU_zT4gmJhsKl98KHbKOpKkVba7qE36xlebHYIWICb6Xz6EamTmUozh7kYBO-93x9-hhjN5BB70vxFOD9B-OadJZyTZl_AmmYf-u2wGL1-759mcBNG6hA1apo8JWxP2OOOSKYsuInwgzUj4YdnBI0hEn6YbbTbMhiXgnHRqFjORLJbNyWSWft2vnf_B2HCRPhhbwKq9Jp3r38fy6SJZLemz4AveIZteZpRfTFuKtWy3Oujp2mGRC9I14g3xDL41Wl8Q5fpGBcTgqb-9Pn-PuTjO6e0RCIeCT9keITgyrNRwUd_SqXyWQe63ZrVX4zT_rLtBCf8oK-ShN580V93U4BlNiru8tHuA_FXQJmPD1my9iqPPIKb_sVTOaezJVzkgt1d0O5u9s_ch3-CmYwDa9_p4mNCTcd3SmoWV-0dJLAGqXH0M_Rk0ryOm7TbS2W0Jfj_UeWXWlab5bSyrWvChTZRrTEa74ZQNbVoRCsbNnyQoIXuhe5EBwX21UNVyaaRrCrmXo-cQd2BqDh28FC1IE8wypMGpaCSvDA9Z7xmgrdV1whelQpE03LVirrqgMmK1AzPYGx5s6swMa7Yt7LrusLCiDZueXd4odfLLfGhv2oa1ymSmlkTU_wxJZlkrz_K8_HlSJo9jRdY6EAkG8bV2GTcgBbP6NLFRBxuuaEnH3KYht9Xbekr1mD7P7b9yj9eje-67nsAAAD__8m3Ops">