File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2261,12 +2261,14 @@ def test_pure_uop_body_copied_in(self):
22612261 """
22622262 input2 = """
22632263 op(OP, (foo -- res)) {
2264- res = sym_new_unknown (ctx);
2264+ res = sym_new_known (ctx, foo );
22652265 }
22662266 """
22672267 output = """
22682268 case OP: {
2269+ JitOptSymbol *foo;
22692270 JitOptSymbol *res;
2271+ foo = stack_pointer[-1];
22702272 if (
22712273 sym_is_const(ctx, foo)
22722274 ) {
@@ -2280,7 +2282,7 @@ def test_pure_uop_body_copied_in(self):
22802282 stack_pointer[-1] = res;
22812283 }
22822284 else {
2283- res = sym_new_unknown (ctx);
2285+ res = sym_new_known (ctx, foo );
22842286 stack_pointer[-1] = res;
22852287 }
22862288 break;
@@ -2301,12 +2303,14 @@ def test_pure_uop_body_copied_in_complex(self):
23012303 """
23022304 input2 = """
23032305 op(OP, (foo -- res)) {
2304- res = sym_new_unknown (ctx);
2306+ res = sym_new_known (ctx, foo );
23052307 }
23062308 """
23072309 output = """
23082310 case OP: {
2311+ JitOptSymbol *foo;
23092312 JitOptSymbol *res;
2313+ foo = stack_pointer[-1];
23102314 if (
23112315 sym_is_const(ctx, foo)
23122316 ) {
@@ -2325,7 +2329,7 @@ def test_pure_uop_body_copied_in_complex(self):
23252329 stack_pointer[-1] = res;
23262330 }
23272331 else {
2328- res = sym_new_unknown (ctx);
2332+ res = sym_new_known (ctx, foo );
23292333 stack_pointer[-1] = res;
23302334 }
23312335 break;
You can’t perform that action at this time.
0 commit comments