Exemplo n.º 1
0
    private static int Main()
    {
        int    returnVal = Pass;
        Random random    = new Random(100);

        if (VectorCopyToArrayTest <Single> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <Single> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <Double> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <Double> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <int> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <int> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <long> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <long> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ushort> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ushort> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <byte> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <byte> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <short> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <short> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <sbyte> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <sbyte> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <uint> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <uint> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ulong> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ulong> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }

        JitLog jitLog = new JitLog();

        if (!jitLog.Check("CopyTo(ref)", "Single"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "Single"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "Double"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "Double"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "Int32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "Int32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "Int64"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "Int64"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "UInt16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "UInt16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "Byte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "Byte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "Int16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "Int16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "SByte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "SByte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "UInt32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "UInt32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref)", "UInt64"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("CopyTo(ref,int)", "UInt64"))
        {
            returnVal = Fail;
        }
        jitLog.Dispose();

        return(returnVal);
    }
Exemplo n.º 2
0
    private static int Main()
    {
        int    returnVal = Pass;
        Random random    = new Random(100);

        if (VectorCopyToArrayTest <Single> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <Single> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <Double> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <Double> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <int> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <int> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <long> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <long> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ushort> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ushort> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <byte> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <byte> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <short> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <short> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <sbyte> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <sbyte> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <uint> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <uint> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ulong> .VectorCopyToArray(12, random) == Fail)
        {
            returnVal = Fail;
        }
        if (VectorCopyToArrayTest <ulong> .VectorCopyToArray(17, random) == Fail)
        {
            returnVal = Fail;
        }
        return(returnVal);
    }