Esempio n. 1
0
    private static int Main()
    {
        int returnVal = Pass;

        if (VectorMinTest <float> .VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <double> .VectorMin(2d, 3d, 2d) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <int> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <long> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector4Test.VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector3Test.VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector2Test.VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <ushort> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <byte> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <short> .VectorMin(-2, -3, -3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <sbyte> .VectorMin(-2, 3, -2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <uint> .VectorMin(0x80000000u, 0x40000000u, 0x40000000u) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <ulong> .VectorMin(2ul, 3ul, 2ul) != Pass)
        {
            returnVal = Fail;
        }
        return(returnVal);
    }
Esempio n. 2
0
    private static int Main()
    {
        int returnVal = Pass;

        if (VectorMinTest <float> .VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <double> .VectorMin(2d, 3d, 2d) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <int> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <long> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector4Test.VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector3Test.VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (Vector2Test.VectorMin(2f, 3f, 2f) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <ushort> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <byte> .VectorMin(2, 3, 2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <short> .VectorMin(-2, -3, -3) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <sbyte> .VectorMin(-2, 3, -2) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <uint> .VectorMin(0x80000000u, 0x40000000u, 0x40000000u) != Pass)
        {
            returnVal = Fail;
        }
        if (VectorMinTest <ulong> .VectorMin(2ul, 3ul, 2ul) != Pass)
        {
            returnVal = Fail;
        }

        JitLog jitLog = new JitLog();

        if (!jitLog.Check("Min", "Single"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "Double"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "Int32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "Int64"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("System.Numerics.Vector4:Min"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("System.Numerics.Vector3:Min"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("System.Numerics.Vector2:Min"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "UInt16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "Byte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "Int16"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "SByte"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "UInt32"))
        {
            returnVal = Fail;
        }
        if (!jitLog.Check("Min", "UInt64"))
        {
            returnVal = Fail;
        }
        jitLog.Dispose();

        return(returnVal);
    }