summaryrefslogtreecommitdiff
path: root/tests/src/JIT/jit64/mcc/interop/mcc_i11.il
blob: c72247c7899ab485caca5fdd3725b0252eaa518e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.


.assembly extern mscorlib {}
.assembly MCCTest {}
.module mcc_i11.exe


.namespace MCCTest
{
  .class MyClass
  {
    .method assembly static pinvokeimpl("native_i1c.dll" as "#1" cdecl) 
       vararg valuetype MCCTest.VType1 Sum(float32) cil managed preservesig {
    }

    .method private static int32 Main(string[] args)
    {
      .entrypoint
      .maxstack  64
      .locals init	(
        [0] valuetype MCCTest.VType1 res,
        [1] int32 rc
      )
      
      ldc.r4     1
      ldc.r4     2
      ldc.r4     3
      ldc.r4     4
      ldc.r4     5
      ldc.r4     6
      ldc.r4     7
      ldc.r4     8
      ldc.r4     9
      ldc.r4     10
      ldc.r4     11
      ldc.r4     12
      ldc.r4     1
      neg
      ldftn      vararg valuetype MCCTest.VType1 MCCTest.MyClass::Sum(float32)
      calli      vararg valuetype MCCTest.VType1(float32, ..., 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32, 
													float32)
      stloc.s    res

      // Check Result
      ldloc.s    res
      ldc.i4     12
      call       int32 MCCTest.Common::CheckResult(valuetype MCCTest.VType1, int32)
      stloc.s    rc
      
      ldloc.s    rc
      ret
    } // end of method MyClass::Main

  } // end of class MyClass

} // end of namespace MCCTest