blob: 4a1f79b5ca87fc6275f71c73f807f0c68a3ffa63 (
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
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace JitTest
{
internal class Test
{
private static int Main()
{
long L1, L2;
ulong U1, U2;
try
{
L1 = 0x7000123480001234;
L2 = 0x7123400081234000;
if ((L1 & L2) != 0x7000000080000000)
goto fail;
L1 = 0x7000123480001234;
L2 = 0x7123400081234000;
if ((L1 | L2) != 0x7123523481235234)
goto fail;
U1 = 0x8000123480001234;
U2 = 0x8123400081234000;
if (~(U1 & U2) != 0x7fffffff7fffffff)
goto fail;
U1 = 0x8000123480001234;
U2 = 0x8123400081234000;
if ((U1 | U2) != 0x8123523481235234)
goto fail;
}
catch (Exception)
{
Console.WriteLine("Exception handled!");
goto fail;
}
Console.WriteLine("Passed");
return 100;
fail:
Console.WriteLine("Failed");
return 1;
}
}
}
|