Example #1
0
    private static int Main()
    {
        int    returnVal = Pass;
        Random random    = new Random(100);

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

        JitLog jitLog = new JitLog();

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

        return(returnVal);
    }
Example #2
0
    private static int Main()
    {
        int    returnVal = Pass;
        Random random    = new Random(100);

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