Remember to push the result of lor onto the stack.
authorDavid Given <dg@cowlark.com>
Thu, 17 Nov 2016 21:04:32 +0000 (22:04 +0100)
committerDavid Given <dg@cowlark.com>
Thu, 17 Nov 2016 21:04:32 +0000 (22:04 +0100)
mach/proto/mcg/treebuilder.c

index fcd1361..01e4865 100644 (file)
@@ -1261,20 +1261,24 @@ static void insn_ivalue(int opcode, arith value)
             switch (value)
             {
                 case 0:
-                    appendir(
-                        new_ir1(
-                            IR_FPTOLB, EM_pointersize,
-                            new_ir0(
-                                IR_GETFP, EM_pointersize
+                    push(
+                        appendir(
+                            new_ir1(
+                                IR_FPTOLB, EM_pointersize,
+                                new_ir0(
+                                    IR_GETFP, EM_pointersize
+                                )
                             )
                         )
                     );
                     break;
                         
                 case 1:
-                    appendir(
-                        new_ir0(
-                            IR_GETSP, EM_pointersize
+                    push(
+                        appendir(
+                            new_ir0(
+                                IR_GETSP, EM_pointersize
+                            )
                         )
                     );
                     break;