<div dir="ltr"><div><div>Hi,<br><br></div> When trying to compile a trivial opencl kernel such as:<br><br>__kernel void if_eq(__global int * out, int arg0, int arg1){<br></div> out[0] = arg0==arg1?0:1;<br><div>}<br><br>
</div><div> Clang generates IR like:<br><br> %1 = icmp eq i32 %arg0, %arg1<br> %. = zext i1 %1 to i32<br><br></div><div> This eventually crashes ISel on R600. Attached patch adds a selector so it will compile. <br><br>
</div><div>Regards,<br><br></div><div>Jon Pry<br><a href="mailto:jonpry@gmail.com">jonpry@gmail.com</a><br></div></div>