@@ -1026,7 +1026,7 @@ class jit_generator : public Xbyak::CodeGenerator {
10261026 assert (IMPLICATION (load_size > 16 , is_ymm));
10271027
10281028 // TODO: Support this routine for every isa
1029- assert (mayiuse (avx2 ) && " routine is not supported for the current isa" );
1029+ assert (mayiuse (avx ) && " routine is not supported for the current isa" );
10301030
10311031 auto xmm = Xbyak::Xmm (vmm.getIdx ());
10321032 auto ymm = Xbyak::Ymm (vmm.getIdx ());
@@ -1103,8 +1103,8 @@ class jit_generator : public Xbyak::CodeGenerator {
11031103 }
11041104
11051105 if (load_size > 16 ) {
1106- vinserti128 (ymm, ymm, xmm, 1 ); // insert to upper bits of ymm
1107- vinserti128 (ymm, ymm, addr (0 ), 0 ); // insert to lower bits of ymm
1106+ vinsertf128 (ymm, ymm, xmm, 1 ); // insert to upper bits of ymm
1107+ vinsertf128 (ymm, ymm, addr (0 ), 0 ); // insert to lower bits of ymm
11081108 }
11091109 }
11101110
@@ -1146,7 +1146,7 @@ class jit_generator : public Xbyak::CodeGenerator {
11461146
11471147 assert (IMPLICATION (store_size > 16 , is_ymm));
11481148
1149- assert (mayiuse (avx2 ) && " routine is not supported for the current isa" );
1149+ assert (mayiuse (avx ) && " routine is not supported for the current isa" );
11501150
11511151 auto xmm = Xbyak::Xmm (vmm.getIdx ());
11521152 auto ymm = Xbyak::Ymm (vmm.getIdx ());
@@ -1167,7 +1167,7 @@ class jit_generator : public Xbyak::CodeGenerator {
11671167 vmovdqu (addr (0 ), xmm); // load lower bits from ymm
11681168 start_bytes = 16 ;
11691169 bytes_to_store -= 16 ;
1170- vextracti128 (xmm, ymm, 1 ); // load upper bits from ymm into xmm
1170+ vextractf128 (xmm, ymm, 1 ); // load upper bits from ymm into xmm
11711171 }
11721172
11731173 if (bytes_to_store >= 8 && bytes_to_store < 16 )
0 commit comments