summaryrefslogtreecommitdiff
path: root/src/mongo/db/test_output/exec/sbe/s_b_e_code_fragment_test/append_local_val2.txt
blob: 571465ab2d28c5a9c6e801e37c276a55e984d9bd (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
# Golden test output of SBECodeFragmentTest/AppendLocalVal2
==== VARIATION append code 1
-- CODE:
[0x0000-0x0031] stackSize: 1, maxStackSize: 5
0x0000: pushConstVal(value: 10);
0x000a: pushConstVal(value: 20);
0x0014: pushConstVal(value: Nothing);
0x001e: pushLocalVal(arg: 2);
0x0023: pushLocalVal(arg: 2);
0x0028: sub(popLhs: 1, offsetLhs: 0, popRhs: 1, offsetRhs: 0);
0x002b: swap();
0x002c: pop();
0x002d: swap();
0x002e: pop();
0x002f: swap();
0x0030: pop();

-- RESULT:
-10

==== VARIATION append code 2
-- CODE:
[0x0000-0x0031] stackSize: 1, maxStackSize: 5
0x0000: pushConstVal(value: 10);
0x000a: pushConstVal(value: 20);
0x0014: pushConstVal(value: Nothing);
0x001e: pushLocalVal(arg: 2);
0x0023: pushLocalVal(arg: 2);
0x0028: sub(popLhs: 1, offsetLhs: 0, popRhs: 1, offsetRhs: 0);
0x002b: swap();
0x002c: pop();
0x002d: swap();
0x002e: pop();
0x002f: swap();
0x0030: pop();

-- RESULT:
-10

==== VARIATION append code 3
-- CODE:
[0x0000-0x0031] stackSize: 1, maxStackSize: 5
0x0000: pushConstVal(value: 10);
0x000a: pushConstVal(value: 20);
0x0014: pushConstVal(value: Nothing);
0x001e: pushLocalVal(arg: 2);
0x0023: pushLocalVal(arg: 2);
0x0028: sub(popLhs: 1, offsetLhs: 0, popRhs: 1, offsetRhs: 0);
0x002b: swap();
0x002c: pop();
0x002d: swap();
0x002e: pop();
0x002f: swap();
0x0030: pop();

-- RESULT:
-10

==== VARIATION append code 4
-- CODE:
[0x0000-0x0031] stackSize: 1, maxStackSize: 5
0x0000: pushConstVal(value: 10);
0x000a: pushConstVal(value: 20);
0x0014: pushConstVal(value: Nothing);
0x001e: pushLocalVal(arg: 2);
0x0023: pushLocalVal(arg: 2);
0x0028: sub(popLhs: 1, offsetLhs: 0, popRhs: 1, offsetRhs: 0);
0x002b: swap();
0x002c: pop();
0x002d: swap();
0x002e: pop();
0x002f: swap();
0x0030: pop();

-- RESULT:
-10

==== VARIATION append code 5
-- CODE:
[0x0000-0x0031] stackSize: 1, maxStackSize: 5
0x0000: pushConstVal(value: 10);
0x000a: pushConstVal(value: 20);
0x0014: pushConstVal(value: Nothing);
0x001e: pushLocalVal(arg: 2);
0x0023: pushLocalVal(arg: 2);
0x0028: sub(popLhs: 1, offsetLhs: 0, popRhs: 1, offsetRhs: 0);
0x002b: swap();
0x002c: pop();
0x002d: swap();
0x002e: pop();
0x002f: swap();
0x0030: pop();

-- RESULT:
-10

==== VARIATION append instr
-- CODE:
[0x0000-0x0031] stackSize: 1, maxStackSize: 5
0x0000: pushConstVal(value: 10);
0x000a: pushConstVal(value: 20);
0x0014: pushConstVal(value: Nothing);
0x001e: pushLocalVal(arg: 2);
0x0023: pushLocalVal(arg: 2);
0x0028: sub(popLhs: 1, offsetLhs: 0, popRhs: 1, offsetRhs: 0);
0x002b: swap();
0x002c: pop();
0x002d: swap();
0x002e: pop();
0x002f: swap();
0x0030: pop();

-- RESULT:
-10