Skip to content

Commit

Permalink
xe: jit: gemm: implement qqw mul instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Simonsays095 committed Jan 18, 2025
1 parent b344d99 commit 301eb0d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gpu/intel/jit/emulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,15 @@ struct EmulationImplementation {
bool emulate64 = strategy.emulate64_mul;

if (s0Q) {
if (!s1D || !dstQ) stub();
if (s1Q || !dstQ) stub();
auto temp = s1Signed ? state.temp[0].d() : state.temp[0].ud();
auto &src1Reg = [&]() -> ngen::RegData & {
if (std::is_base_of<ngen::RegData, S1>::value)
if (s1Immed || s1W) {
g.mov(mod, temp, src1);
return temp;
} else {
return *reinterpret_cast<ngen::RegData *>(&src1);
g.mov(1, temp, src1);
return temp;
}
}();
return emulInternal(g, mod, dst, src1Reg, src0, strategy, state);
} else if (s1Q) {
Expand Down

0 comments on commit 301eb0d

Please sign in to comment.