summaryrefslogtreecommitdiff
path: root/tests/src/JIT/SIMD/StoreElement.cs
blob: e8b710ab95f7c7af7a2e15abdf6c7093150cc7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector<int>;

namespace VectorTests
{
    class Program
    {
        static int Main(string[] args)
        {
            Point p = new Point(1);
            Point[] arr = new Point[10];
            arr[0] = p; // Loadelem bytecode.
            arr[2] = p;
            if (arr[0] == arr[1] || arr[2] != p)
            {
                return 0;
            }
            return 100;
        }
    }
}