summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/JitBlue/DevDiv_545500/DevDiv_545500.il
blob: 9d66bcbe18f19827925c012084fa9301b28b9d63 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

// The bug that this test captures was a case where a call to a divide helper
// was being removed as dead code, but the GT_FIELD_LIST node for the int64
// argument was left. Such nodes must always be contained, and if they become
// dead, all of their children must be marked as unused.

.assembly extern mscorlib { auto }
.assembly extern System.Runtime { auto }
.assembly extern System.Console { auto }

.assembly DevDiv_545500 { }

.class public auto ansi beforefieldinit DevDiv_545500
       extends [System.Runtime]System.Object
{
  .method public hidebysig static uint8 
          Test(float32 f, int32 i, int64 l) cil managed noinlining
  {
    .locals init ([0] float64 d, bool b, int64 l2)
        ldc.r8       100.0
        conv.r4     
        conv.ovf.u8.un
        ldc.i8       0x70B9
        not         
        not         
        neg         
        add.ovf     
        not         
        ldarg        0x1
        ldarg        0x1
        div         
        ldarg        0x1
        ldarg        0x1
        and         
        and         
        shr.un      
        conv.u8     
        conv.r8     
        nop         
        conv.ovf.i8.un
        ldc.i8       0xB03F
        ldloc.s      0x0
        ckfinite    
        conv.ovf.u8 
        ldc.i4       0x9260
        conv.i8     
        or          
        conv.ovf.u8 
        clt.un      
        neg         
        conv.i8     
        conv.ovf.u4 
        shr         
        conv.ovf.u.un
        brtrue       L1
        ldloc.s      0x1
        not         
        conv.r4     
        ldloc        0x0
        add         
        ldarg        0x0
        ldloc.s      0x0
        mul         
        conv.r4     
        conv.r8     
        add         
        ldarg        0x0
        ldloc        0x0
        cgt.un      
        neg         
        conv.r8     
        neg         
        conv.r4     
        ldloc.s      0x2
        neg         
        conv.ovf.i2.un
        ldc.i4       0xAAC7
        conv.r8     
        conv.ovf.i1 
        xor         
        conv.r.un   
        conv.r8     
        ldc.r8       -2.9830006130986561e+135
        starg        0x0
        neg         
        mul         
        stloc        0x0
        conv.ovf.i8 
        nop         
        starg.s      0x2
L1:     ldarg.s      0x1
        neg         
        ldloc.s      0x2
        conv.r.un   
        ldarg.s      0x0
        ldarg.s      0x0
        cgt         
        conv.r.un   
        cgt         
        neg         
        add
        conv.r.un   
        ckfinite    
        conv.u8     
        conv.i  
        conv.i2     
        ldarg        0x1
        neg         
        ldloc.s      0x1
        ldloc.s      0x0
        conv.ovf.i4.un
        shl         
        add         
        conv.u8     
        ldarg        0x2
        ldc.i8       0x5ACB
        ldarg.s      0x2
        sub    
        add
        ldc.i8       0x9B4E
        div.un      
        conv.u8
        cgt         
        shr.un      
        neg         
        ret 
  } // end of method DevDiv_545500:Test

  .method public hidebysig static int32  Main() cil managed
  {
    .entrypoint
    .locals init ([0] int32 retVal, [1] int32 testResult)

         ldc.i4     100
         stloc.0
         ldc.r4     1.0
         ldc.i4     1
         ldc.i8     3
         call       uint8 DevDiv_545500::Test(float32 f, int32 i, int64 l)
         stloc.1
         ldloc.1
         ldc.i4.1
         ceq
         brtrue.s  L1

         ldstr      "Test Result = "
         call       void [System.Console]System.Console::Write(string)
         ldloc.1
         call       void [System.Console]System.Console::WriteLine(int32)
         ldstr      "FAIL"
         call       void [System.Console]System.Console::WriteLine(string)
         ldc.i4.m1
         stloc.0
         br        L2

    L1:  ldstr      "PASS"
         call       void [System.Console]System.Console::WriteLine(string)

    L2:  ldloc.0
         ret
  } // end of method DevDiv_545500:Main

  .method public hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // Code size       8 (0x8)
    .maxstack  8
         ldarg.0
         call       instance void [System.Runtime]System.Object::.ctor()
         ret
  } // end of method DevDiv_545500:.ctor

} // end of class DevDiv_545500