Lines Matching refs:sdwa
656 SDWA_instruction* sdwa = static_cast<SDWA_instruction*>(instr); in emit_instruction() local
664 encoding |= (sdwa->clamp ? 1 : 0) << 13; in emit_instruction()
666 encoding |= get_sdwa_sel(sdwa->dst_sel, instr->definitions[0].physReg()) << 8; in emit_instruction()
667 uint32_t dst_u = sdwa->dst_sel & sdwa_sext ? 1 : 0; in emit_instruction()
668 if (sdwa->dst_preserve || (sdwa->dst_sel & sdwa_isra)) in emit_instruction()
671 encoding |= (sdwa->clamp ? 1 : 0) << 13; in emit_instruction()
672 encoding |= sdwa->omod << 14; in emit_instruction()
675 encoding |= get_sdwa_sel(sdwa->sel[0], sdwa_op.physReg()) << 16; in emit_instruction()
676 encoding |= sdwa->sel[0] & sdwa_sext ? 1 << 19 : 0; in emit_instruction()
677 encoding |= sdwa->abs[0] << 21; in emit_instruction()
678 encoding |= sdwa->neg[0] << 20; in emit_instruction()
681 encoding |= get_sdwa_sel(sdwa->sel[1], instr->operands[1].physReg()) << 24; in emit_instruction()
682 encoding |= sdwa->sel[1] & sdwa_sext ? 1 << 27 : 0; in emit_instruction()
683 encoding |= sdwa->abs[1] << 29; in emit_instruction()
684 encoding |= sdwa->neg[1] << 28; in emit_instruction()