Home
last modified time | relevance | path

Searched refs:mkOp2 (Results 1 – 7 of 7) sorted by relevance

/external/mesa3d/src/gallium/drivers/nv50/codegen/
Dnv50_ir_lowering_nv50.cpp72 i[2] = bld->mkOp2(OP_MUL, fTy, t[0], a[0], b[1]); in expandIntegerMUL()
74 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL()
85 i[8] = bld->mkOp2(OP_SHR, fTy, r[0], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL()
86 i[6] = bld->mkOp2(OP_ADD, fTy, r[1], r[0], imm); in expandIntegerMUL()
87 bld->mkOp2(OP_UNION, TYPE_U32, r[2], r[1], r[0]); in expandIntegerMUL()
348 arl = bld.mkOp2(OP_SHL, TYPE_U32, i->getDef(0), bld.getSSA(), bld.mkImm(0)); in handleAddrDef()
367 mul = bld.mkOp2(OP_MUL, add->sType, res, add->getSrc(0), add->getSrc(1)); in handleMUL()
417 bld.mkOp2(OP_MUL, TYPE_F32, (qf = bld.getSSA()), af, bf)->rnd = ROUND_Z; in handleDIV()
422 bld.mkOp2(OP_MUL, TYPE_U32, (t = bld.getSSA()), q0, b)); in handleDIV()
423 bld.mkOp2(OP_SUB, TYPE_U32, (aRf = bld.getSSA()), a, t); in handleDIV()
[all …]
Dnv50_ir_from_tgsi.cpp1382 mkOp2(OP_MAX, dstTy, val, val, mkImm(-1.0f)); in storeDst()
1383 mkOp2(OP_MIN, dstTy, val, val, mkImm(+1.0f)); in storeDst()
1413 mkOp2(OP_WRSV, TYPE_U32, NULL, dstToSym(dst, c), val); in storeDst()
1442 mkOp2(OP_MUL, TYPE_F32, dotp, src0, src1); in buildDot()
1593 mkOp2(OP_MAX, TYPE_F32, val, src[0], src[1]); in handleTEX()
1594 mkOp2(OP_MAX, TYPE_F32, val, src[2], val); in handleTEX()
1670 mkOp2(OP_MAX, TYPE_F32, val0, fetchSrc(0, 0), zero); in handleLIT()
1682 mkOp2(OP_MAX, TYPE_F32, val1, src1, zero); in handleLIT()
1683 mkOp2(OP_MAX, TYPE_F32, val3, src3, neg128); in handleLIT()
1684 mkOp2(OP_MIN, TYPE_F32, val3, val3, pos128); in handleLIT()
[all …]
Dnv50_ir_from_sm4.cpp1609 mkOp2(OP_MAX, TYPE_F32, val, src0[0], src0[1]); in handleSAMPLE()
1610 mkOp2(OP_MAX, TYPE_F32, val, src0[2], val); in handleSAMPLE()
1642 mkOp2(OP_MUL, TYPE_F32, dotp, src0, src1); in handleDP()
1763 Instruction *insn = mkOp2(op, dTy, dst0[c], src(0, c), src(1, c)); in handleInstruction()
1773 Instruction *insn = mkOp2(op, dTy, dst0[c], src(0, c), src(1, c)); in handleInstruction()
1791 mkOp2(op, dTy, dst0[c], src(0, c), src(1, c)); in handleInstruction()
1803 mkOp2(OP_DIV, TYPE_U32, dst0[c], dvn, dvs); in handleInstruction()
1805 mkOp2(OP_MOD, TYPE_U32, dst1[c], dvn, dvs); in handleInstruction()
1818 mkOp2(OP_MUL, dTy, dst0[c], a, b)->subOp = in handleInstruction()
1821 mkOp2(OP_MUL, dTy, dst1[c], a, b); in handleInstruction()
[all …]
Dnv50_ir_build_util.cpp78 BuildUtil::mkOp2(operation op, DataType ty, Value *dst, in mkOp2() function in nv50_ir::BuildUtil
263 Instruction *quadop = mkOp2(OP_QUADOP, TYPE_F32, def, src0, src1); in mkQuadop()
278 return mkOp2(OP_UNION, typeOfSize(dst->reg.size), dst, def0, def1); in mkSelect()
Dnv50_ir_build_util.h54 Instruction *mkOp2(operation, DataType, Value *, Value *, Value *);
273 mkOp2(op, ty, dst, src0, src1); in mkOp2v()
Dnv50_ir_peephole.cpp703 mul = bld.mkOp2(OP_MUL, TYPE_U32, tA, i->getSrc(0), in opnd()
706 bld.mkOp2(OP_SUB, TYPE_U32, tB, i->getSrc(0), tA); in opnd()
709 bld.mkOp2(OP_SHR, TYPE_U32, tA, tB, bld.mkImm(r)); in opnd()
713 bld.mkOp2(OP_ADD, TYPE_U32, tB, mul->getDef(0), tA); in opnd()
715 bld.mkOp2(OP_SHR, TYPE_U32, i->getDef(0), tB, bld.mkImm(s)); in opnd()
739 bld.mkOp2(OP_SHR, TYPE_S32, tB, tA, bld.mkImm(l - 1)); in opnd()
745 bld.mkOp2(OP_SUB, TYPE_U32, tD, tB, tA); in opnd()
/external/mesa3d/src/gallium/drivers/nvc0/codegen/
Dnv50_ir_lowering_nvc0.cpp675 bld.mkOp2(OP_SHL, TYPE_U32, tmp[0], rRel, shCnt); in handleTEX()
677 bld.mkOp2(OP_AND, TYPE_U32, tmp[0], tmp[1], in handleTEX()
685 bld.mkOp2(OP_SHL, TYPE_U32, tmp[0], sRel, shCnt); in handleTEX()
687 bld.mkOp2(OP_AND, TYPE_U32, tmp[0], tmp[1], in handleTEX()
692 bld.mkOp2(OP_OR, TYPE_U32, rRel, rRel, sRel); in handleTEX()
886 bld.mkOp2(OP_ADD, TYPE_F32, dst, x, y); in readTessCoord()
887 bld.mkOp2(OP_SUB, TYPE_F32, dst, bld.loadImm(NULL, 1.0f), dst); in readTessCoord()
912 bld.mkOp2(OP_AND, TYPE_U32, face, face, bld.mkImm(0x80000000)); in handleRDSV()
913 bld.mkOp2(OP_XOR, TYPE_U32, face, face, bld.mkImm(0xbf800000)); in handleRDSV()
952 bld.mkOp2(OP_MUL, TYPE_F32, value, i->getSrc(0), value); in handleMOD()
[all …]