Skip to content

Commit

Permalink
keep selector used only for avx512 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo-intel committed Dec 6, 2024
1 parent 72444fb commit 60ffe50
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ class jit_uni_vcvtneps2bf16 : public jit_emitter {
h->uni_vmovups(vmm_temp, table_val(bf16_max_key));
h->uni_vminps(clamped, clamped, vmm_temp);

h->uni_vmovups(vmm_temp, table_val("selector"));
h->vfixupimmps(clamped, in, vmm_temp, 0);
if (dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core)) {
h->uni_vmovups(vmm_temp, table_val("selector"));
h->vfixupimmps(clamped, in, vmm_temp, 0);
}
}

template <dnnl::impl::cpu::x64::cpu_isa_t isa>
Expand Down

0 comments on commit 60ffe50

Please sign in to comment.