Need to do this more nicely for all ops.
* SOFTWARE.
*/
+/* XXX: need to clean this up so we get the typecasting right more naturally */
+
#include <unistd.h>
#include "nv50_context.h"
dst0[c]->insn->set_cond = translate_setcc(insn->Instruction.Opcode);
dst0[c]->reg.type = infer_dst_type(insn->Instruction.Opcode);
+ dst0[c]->insn->src[0]->typecast =
+ dst0[c]->insn->src[1]->typecast =
+ infer_src_type(insn->Instruction.Opcode);
+
if (dst0[c]->reg.type != NV_TYPE_F32)
break;
dst0[c] = bld_insn_1(bld, NV_OP_ABS, dst0[c]);