public void RunStructFldScenario(SimpleUnaryOpTest__BroadcastScalarToVector256SByte testClass) { var result = Avx2.BroadcastScalarToVector256(_fld); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr); }
public void RunStructFldScenario_Load(SimpleUnaryOpTest__BroadcastScalarToVector256SByte testClass) { fixed(Vector128 <SByte> *pFld1 = &_fld1) { var result = Avx2.BroadcastScalarToVector256( Sse2.LoadVector128((SByte *)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } }