blob: 246b251ab96031ad50b3048a346e116f3d428c1b (
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
|
// 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.
.assembly extern legacy library mscorlib {}
.assembly shl.exe{}
.class public _shl {
.method public static int32 return(int32) {
.maxstack 2
ldarg 0
ret
}
.method public static int64 return(int64) {
.maxstack 2
ldarg 0
ret
}
.method public static int32 main(class [mscorlib]System.String[]) {
.entrypoint
.maxstack 10
ldc.i4 0x7FFFFFFF
call int32 _shl::return(int32)
ldc.i4 0x1
call int32 _shl::return(int32)
shl
ldc.i4 0xFFFFFFFE
call int32 _shl::return(int32)
ceq
brfalse FAIL
ldc.i8 0x7FFFFFFFFFFFFFFF
call int64 _shl::return(int64)
ldc.i4 0x1
call int32 _shl::return(int32)
shl
ldc.i8 0xFFFFFFFFFFFFFFFE
call int64 _shl::return(int64)
ceq
brfalse FAIL
PASS:
ldc.i4 100
ret
FAIL:
ldc.i4 0x0
ret
}
}
|