IntelXeonCodeGenerator extends OpenMPCodeGenerator { @Override protected String getVecLoadFunctionName (Specifier specDatatype) { String strFunction = null; if (Specifier.FLOAT.equals (specDatatype)) strFunction = "_mm512_extload_ps"; else if (Specifier.DOUBLE.equals (specDatatype)) strFunction = "_mm512_extload_pd"; return strFunction; } IntelXeonCodeGenerator(CodeGeneratorSharedObjects data); @Override Expression shuffle(Expression expr1, Expression expr2, Specifier specDatatype, int nOffset); @Override Traversable splat(Expression expr, Specifier specDatatype); StatementList offloadMicAllocate(); StatementList offloadMic(); StatementList offloadMicCopyback(); StatementList deallocateMicGrids();  }
@Test public void TestgetVecLoadFunctionNameDouble() { IntelXeonCodeGenerator cg = new IntelXeonCodeGenerator(null); assertEquals(cg.getVecLoadFunctionName(Specifier.DOUBLE), "_mm512_extload_pd"); }
@Test public void TestgetVecLoadFunctionNameFloat() { IntelXeonCodeGenerator cg = new IntelXeonCodeGenerator(null); assertEquals(cg.getVecLoadFunctionName(Specifier.FLOAT), "_mm512_extload_ps"); }