38865c1232a9c8453b6753f30a5a16d41b875a1e
[cacao.git] / src / vm / jit / alpha / emit.c
1 /* src/vm/jit/alpha/emit.c - Alpha code emitter functions
2
3    Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    $Id: emit.c 4398 2006-01-31 23:43:08Z twisti $
26
27 */
28
29
30 #include "config.h"
31 #include "vm/types.h"
32
33 #include <assert.h>
34
35 #include "md-abi.h"
36
37 #include "vm/jit/alpha/codegen.h"
38
39 #include "mm/memory.h"
40
41 #if defined(ENABLE_THREADS)
42 # include "threads/native/lock.h"
43 #endif
44
45 #include "vm/builtin.h"
46 #include "vm/exceptions.h"
47
48 #include "vm/jit/abi.h"
49 #include "vm/jit/abi-asm.h"
50 #include "vm/jit/asmpart.h"
51 #include "vm/jit/dseg.h"
52 #include "vm/jit/emit-common.h"
53 #include "vm/jit/jit.h"
54 #include "vm/jit/replace.h"
55
56 #include "vmcore/options.h"
57
58
59 /* emit_load *******************************************************************
60
61    Emits a possible load of an operand.
62
63 *******************************************************************************/
64
65 s4 emit_load(jitdata *jd, instruction *iptr, varinfo *src, s4 tempreg)
66 {
67         codegendata  *cd;
68         s4            disp;
69         s4            reg;
70
71         /* get required compiler data */
72
73         cd = jd->cd;
74
75         if (IS_INMEMORY(src->flags)) {
76                 COUNT_SPILLS;
77
78                 disp = src->vv.regoff * 8;
79
80                 switch (src->type) {
81                 case TYPE_INT:
82                 case TYPE_LNG:
83                 case TYPE_ADR:
84                         M_LLD(tempreg, REG_SP, disp);
85                         break;
86                 case TYPE_FLT:
87                 case TYPE_DBL:
88                         M_DLD(tempreg, REG_SP, disp);
89                         break;
90                 default:
91                         vm_abort("emit_load: unknown type %d", src->type);
92                 }
93
94                 reg = tempreg;
95         }
96         else
97                 reg = src->vv.regoff;
98
99         return reg;
100 }
101
102
103 /* emit_store ******************************************************************
104
105    Emit a possible store for the given variable.
106
107 *******************************************************************************/
108
109 void emit_store(jitdata *jd, instruction *iptr, varinfo *dst, s4 d)
110 {
111         codegendata  *cd;
112         s4            disp;
113
114         /* get required compiler data */
115
116         cd = jd->cd;
117
118         if (IS_INMEMORY(dst->flags)) {
119                 COUNT_SPILLS;
120
121                 disp = dst->vv.regoff * 8;
122
123                 switch (dst->type) {
124                 case TYPE_INT:
125                 case TYPE_LNG:
126                 case TYPE_ADR:
127                         M_LST(d, REG_SP, disp);
128                         break;
129                 case TYPE_FLT:
130                 case TYPE_DBL:
131                         M_DST(d, REG_SP, disp);
132                         break;
133                 default:
134                         vm_abort("emit_store: unknown type %d", dst->type);
135                 }
136         }
137 }
138
139
140 /* emit_copy *******************************************************************
141
142    Generates a register/memory to register/memory copy.
143
144 *******************************************************************************/
145
146 void emit_copy(jitdata *jd, instruction *iptr)
147 {
148         codegendata *cd;
149         varinfo     *src;
150         varinfo     *dst;
151         s4           s1, d;
152
153         /* get required compiler data */
154
155         cd = jd->cd;
156
157         /* get source and destination variables */
158
159         src = VAROP(iptr->s1);
160         dst = VAROP(iptr->dst);
161
162         if ((src->vv.regoff != dst->vv.regoff) ||
163                 ((src->flags ^ dst->flags) & INMEMORY)) {
164
165                 if ((src->type == TYPE_RET) || (dst->type == TYPE_RET)) {
166                         /* emit nothing, as the value won't be used anyway */
167                         return;
168                 }
169
170                 /* If one of the variables resides in memory, we can eliminate
171                    the register move from/to the temporary register with the
172                    order of getting the destination register and the load. */
173
174                 if (IS_INMEMORY(src->flags)) {
175                         d  = codegen_reg_of_var(iptr->opc, dst, REG_IFTMP);
176                         s1 = emit_load(jd, iptr, src, d);
177                 }
178                 else {
179                         s1 = emit_load(jd, iptr, src, REG_IFTMP);
180                         d  = codegen_reg_of_var(iptr->opc, dst, s1);
181                 }
182
183                 if (s1 != d) {
184                         switch (src->type) {
185                         case TYPE_INT:
186                         case TYPE_LNG:
187                         case TYPE_ADR:
188                                 M_MOV(s1, d);
189                                 break;
190                         case TYPE_FLT:
191                         case TYPE_DBL:
192                                 M_FMOV(s1, d);
193                                 break;
194                         default:
195                                 vm_abort("emit_copy: unknown type %d", src->type);
196                         }
197                 }
198
199                 emit_store(jd, iptr, dst, d);
200         }
201 }
202
203
204 /* emit_iconst *****************************************************************
205
206    XXX
207
208 *******************************************************************************/
209
210 void emit_iconst(codegendata *cd, s4 d, s4 value)
211 {
212         s4 disp;
213
214         if ((value >= -32768) && (value <= 32767))
215                 M_LDA_INTERN(d, REG_ZERO, value);
216         else {
217                 disp = dseg_add_s4(cd, value);
218                 M_ILD(d, REG_PV, disp);
219         }
220 }
221
222
223 /* emit_lconst *****************************************************************
224
225    XXX
226
227 *******************************************************************************/
228
229 void emit_lconst(codegendata *cd, s4 d, s8 value)
230 {
231         s4 disp;
232
233         if ((value >= -32768) && (value <= 32767))
234                 M_LDA_INTERN(d, REG_ZERO, value);
235         else {
236                 disp = dseg_add_s8(cd, value);
237                 M_LLD(d, REG_PV, disp);
238         }
239 }
240
241
242 /* emit_branch *****************************************************************
243
244    Emits the code for conditional and unconditional branchs.
245
246 *******************************************************************************/
247
248 void emit_branch(codegendata *cd, s4 disp, s4 condition, s4 reg, u4 opt)
249 {
250         s4 checkdisp;
251         s4 branchdisp;
252
253         /* calculate the different displacements */
254
255         checkdisp  = (disp - 4);
256         branchdisp = (disp - 4) >> 2;
257
258         /* check which branch to generate */
259
260         if (condition == BRANCH_UNCONDITIONAL) {
261                 /* check displacement for overflow */
262
263                 if ((checkdisp < (s4) 0xffe00000) || (checkdisp > (s4) 0x001fffff)) {
264                         /* if the long-branches flag isn't set yet, do it */
265
266                         if (!CODEGENDATA_HAS_FLAG_LONGBRANCHES(cd)) {
267                                 log_println("setting error");
268                                 cd->flags |= (CODEGENDATA_FLAG_ERROR |
269                                                           CODEGENDATA_FLAG_LONGBRANCHES);
270                         }
271
272                         vm_abort("emit_branch: emit unconditional long-branch code");
273                 }
274                 else {
275                         M_BR(branchdisp);
276                 }
277         }
278         else {
279                 /* and displacement for overflow */
280
281                 if ((checkdisp < (s4) 0xffe00000) || (checkdisp > (s4) 0x001fffff)) {
282                         /* if the long-branches flag isn't set yet, do it */
283
284                         if (!CODEGENDATA_HAS_FLAG_LONGBRANCHES(cd)) {
285                                 log_println("setting error");
286                                 cd->flags |= (CODEGENDATA_FLAG_ERROR |
287                                                           CODEGENDATA_FLAG_LONGBRANCHES);
288                         }
289
290                         vm_abort("emit_branch: emit conditional long-branch code");
291                 }
292                 else {
293                         switch (condition) {
294                         case BRANCH_EQ:
295                                 M_BEQZ(reg, branchdisp);
296                                 break;
297                         case BRANCH_NE:
298                                 M_BNEZ(reg, branchdisp);
299                                 break;
300                         case BRANCH_LT:
301                                 M_BLTZ(reg, branchdisp);
302                                 break;
303                         case BRANCH_GE:
304                                 M_BGEZ(reg, branchdisp);
305                                 break;
306                         case BRANCH_GT:
307                                 M_BGTZ(reg, branchdisp);
308                                 break;
309                         case BRANCH_LE:
310                                 M_BLEZ(reg, branchdisp);
311                                 break;
312                         default:
313                                 vm_abort("emit_branch: unknown condition %d", condition);
314                         }
315                 }
316         }
317 }
318
319
320 /* emit_arithmetic_check *******************************************************
321
322    Emit an ArithmeticException check.
323
324 *******************************************************************************/
325
326 void emit_arithmetic_check(codegendata *cd, instruction *iptr, s4 reg)
327 {
328         if (INSTRUCTION_MUST_CHECK(iptr)) {
329                 M_BNEZ(reg, 1);
330                 /* Destination register must not be REG_ZERO, because then no
331                    SIGSEGV is thrown. */
332                 M_ALD_INTERN(reg, REG_ZERO, EXCEPTION_HARDWARE_ARITHMETIC);
333         }
334 }
335
336
337 /* emit_arrayindexoutofbounds_check ********************************************
338
339    Emit an ArrayIndexOutOfBoundsException check.
340
341 *******************************************************************************/
342
343 void emit_arrayindexoutofbounds_check(codegendata *cd, instruction *iptr, s4 s1, s4 s2)
344 {
345         if (INSTRUCTION_MUST_CHECK(iptr)) {
346                 M_ILD(REG_ITMP3, s1, OFFSET(java_arrayheader, size));
347                 M_CMPULT(s2, REG_ITMP3, REG_ITMP3);
348                 M_BNEZ(REG_ITMP3, 1);
349                 M_ALD_INTERN(s2, REG_ZERO, EXCEPTION_HARDWARE_ARRAYINDEXOUTOFBOUNDS);
350         }
351 }
352
353
354 /* emit_classcast_check ********************************************************
355
356    Emit a ClassCastException check.
357
358 *******************************************************************************/
359
360 void emit_classcast_check(codegendata *cd, instruction *iptr, s4 condition, s4 reg, s4 s1)
361 {
362         if (INSTRUCTION_MUST_CHECK(iptr)) {
363                 switch (condition) {
364                 case BRANCH_EQ:
365                         M_BNEZ(reg, 1);
366                         break;
367                 case BRANCH_LE:
368                         M_BGTZ(reg, 1);
369                         break;
370                 default:
371                         vm_abort("emit_classcast_check: unknown condition %d", condition);
372                 }
373                 M_ALD_INTERN(s1, REG_ZERO, EXCEPTION_HARDWARE_CLASSCAST);
374         }
375 }
376
377
378 /* emit_nullpointer_check ******************************************************
379
380    Emit a NullPointerException check.
381
382 *******************************************************************************/
383
384 void emit_nullpointer_check(codegendata *cd, instruction *iptr, s4 reg)
385 {
386         if (INSTRUCTION_MUST_CHECK(iptr)) {
387                 M_BNEZ(reg, 1);
388                 /* Destination register must not be REG_ZERO, because then no
389                    SIGSEGV is thrown. */
390                 M_ALD_INTERN(reg, REG_ZERO, EXCEPTION_HARDWARE_NULLPOINTER);
391         }
392 }
393
394
395 /* emit_exception_check ********************************************************
396
397    Emit an Exception check.
398
399 *******************************************************************************/
400
401 void emit_exception_check(codegendata *cd, instruction *iptr)
402 {
403         if (INSTRUCTION_MUST_CHECK(iptr)) {
404                 M_BNEZ(REG_RESULT, 1);
405                 /* Destination register must not be REG_ZERO, because then no
406                    SIGSEGV is thrown. */
407                 M_ALD_INTERN(REG_RESULT, REG_ZERO, EXCEPTION_HARDWARE_EXCEPTION);
408         }
409 }
410
411
412 /* emit_patcher_stubs **********************************************************
413
414    Generates the code for the patcher stubs.
415
416 *******************************************************************************/
417
418 void emit_patcher_stubs(jitdata *jd)
419 {
420         codegendata *cd;
421         patchref    *pref;
422         u4           mcode;
423         u1          *savedmcodeptr;
424         u1          *tmpmcodeptr;
425         s4           targetdisp;
426         s4           disp;
427
428         /* get required compiler data */
429
430         cd = jd->cd;
431
432         /* generate code patching stub call code */
433
434         targetdisp = 0;
435
436         for (pref = cd->patchrefs; pref != NULL; pref = pref->next) {
437                 /* check code segment size */
438
439                 MCODECHECK(100);
440
441                 /* Get machine code which is patched back in later. The
442                    call is 1 instruction word long. */
443
444                 tmpmcodeptr = (u1 *) (cd->mcodebase + pref->branchpos);
445
446                 mcode = *((u4 *) tmpmcodeptr);
447
448                 /* Patch in the call to call the following code (done at
449                    compile time). */
450
451                 savedmcodeptr = cd->mcodeptr;   /* save current mcodeptr              */
452                 cd->mcodeptr  = tmpmcodeptr;    /* set mcodeptr to patch position     */
453
454                 disp = ((u4 *) savedmcodeptr) - (((u4 *) tmpmcodeptr) + 1);
455                 M_BSR(REG_ITMP3, disp);
456
457                 cd->mcodeptr = savedmcodeptr;   /* restore the current mcodeptr       */
458
459                 /* create stack frame */
460
461                 M_LSUB_IMM(REG_SP, 6 * 8, REG_SP);
462
463                 /* move return address onto stack */
464
465                 M_AST(REG_ITMP3, REG_SP, 5 * 8);
466
467                 /* move pointer to java_objectheader onto stack */
468
469 #if defined(ENABLE_THREADS)
470                 /* create a virtual java_objectheader */
471
472                 (void) dseg_add_unique_address(cd, NULL);                  /* flcword */
473                 (void) dseg_add_unique_address(cd, lock_get_initial_lock_word());
474                 disp = dseg_add_unique_address(cd, NULL);                  /* vftbl   */
475
476                 M_LDA(REG_ITMP3, REG_PV, disp);
477                 M_AST(REG_ITMP3, REG_SP, 4 * 8);
478 #else
479                 /* nothing to do */
480 #endif
481
482                 /* move machine code onto stack */
483
484                 disp = dseg_add_s4(cd, mcode);
485                 M_ILD(REG_ITMP3, REG_PV, disp);
486                 M_IST(REG_ITMP3, REG_SP, 3 * 8);
487
488                 /* move class/method/field reference onto stack */
489
490                 disp = dseg_add_address(cd, pref->ref);
491                 M_ALD(REG_ITMP3, REG_PV, disp);
492                 M_AST(REG_ITMP3, REG_SP, 2 * 8);
493
494                 /* move data segment displacement onto stack */
495
496                 disp = dseg_add_s4(cd, pref->disp);
497                 M_ILD(REG_ITMP3, REG_PV, disp);
498                 M_IST(REG_ITMP3, REG_SP, 1 * 8);
499
500                 /* move patcher function pointer onto stack */
501
502                 disp = dseg_add_functionptr(cd, pref->patcher);
503                 M_ALD(REG_ITMP3, REG_PV, disp);
504                 M_AST(REG_ITMP3, REG_SP, 0 * 8);
505
506                 if (targetdisp == 0) {
507                         targetdisp = ((u4 *) cd->mcodeptr) - ((u4 *) cd->mcodebase);
508
509                         disp = dseg_add_functionptr(cd, asm_patcher_wrapper);
510                         M_ALD(REG_ITMP3, REG_PV, disp);
511                         M_JMP(REG_ZERO, REG_ITMP3);
512                 }
513                 else {
514                         disp = (((u4 *) cd->mcodebase) + targetdisp) -
515                                 (((u4 *) cd->mcodeptr) + 1);
516
517                         M_BR(disp);
518                 }
519         }
520 }
521
522
523 /* emit_replacement_stubs ******************************************************
524
525    Generates the code for the replacement stubs.
526
527 *******************************************************************************/
528
529 #if defined(ENABLE_REPLACEMENT)
530 void emit_replacement_stubs(jitdata *jd)
531 {
532         codegendata *cd;
533         codeinfo    *code;
534         rplpoint    *rplp;
535         s4           disp;
536         s4           i;
537 #if !defined(NDEBUG)
538         u1          *savedmcodeptr;
539 #endif
540
541         /* get required compiler data */
542
543         cd   = jd->cd;
544         code = jd->code;
545
546         rplp = code->rplpoints;
547
548         /* store beginning of replacement stubs */
549
550         code->replacementstubs = (u1*) (cd->mcodeptr - cd->mcodebase);
551
552         for (i = 0; i < code->rplpointcount; ++i, ++rplp) {
553                 /* do not generate stubs for non-trappable points */
554
555                 if (rplp->flags & RPLPOINT_FLAG_NOTRAP)
556                         continue;
557
558                 /* check code segment size */
559
560                 MCODECHECK(100);
561
562 #if !defined(NDEBUG)
563                 savedmcodeptr = cd->mcodeptr;
564 #endif
565
566                 /* create stack frame - 16-byte aligned */
567
568                 M_LSUB_IMM(REG_SP, 2 * 8, REG_SP);
569
570                 /* push address of `rplpoint` struct */
571
572                 disp = dseg_add_address(cd, rplp);
573                 M_ALD(REG_ITMP3, REG_PV, disp);
574                 M_AST(REG_ITMP3, REG_SP, 0 * 8);
575
576                 /* jump to replacement function */
577
578                 disp = dseg_add_functionptr(cd, asm_replacement_out);
579                 M_ALD(REG_ITMP3, REG_PV, disp);
580                 M_JMP(REG_ZERO, REG_ITMP3);
581
582                 assert((cd->mcodeptr - savedmcodeptr) == 4*REPLACEMENT_STUB_SIZE);
583         }
584 }
585 #endif /* defined(ENABLE_REPLACEMENT) */
586
587
588 /* emit_verbosecall_enter ******************************************************
589
590    Generates the code for the call trace.
591
592 *******************************************************************************/
593
594 #if !defined(NDEBUG)
595 void emit_verbosecall_enter(jitdata *jd)
596 {
597         methodinfo   *m;
598         codegendata  *cd;
599         registerdata *rd;
600         methoddesc   *md;
601         s4            disp;
602         s4            i, t;
603
604         /* get required compiler data */
605
606         m  = jd->m;
607         cd = jd->cd;
608         rd = jd->rd;
609
610         md = m->parseddesc;
611
612         /* mark trace code */
613
614         M_NOP;
615
616         M_LDA(REG_SP, REG_SP, -((ARG_CNT + TMP_CNT + 2) * 8));
617         M_AST(REG_RA, REG_SP, 1 * 8);
618
619         /* save argument registers */
620
621         for (i = 0; i < INT_ARG_CNT; i++)
622                 M_LST(abi_registers_integer_argument[i], REG_SP, (2 + i) * 8);
623
624         for (i = 0; i < FLT_ARG_CNT; i++)
625                 M_DST(abi_registers_float_argument[i], REG_SP, (2 + INT_ARG_CNT + i) * 8);
626
627         /* save temporary registers for leaf methods */
628
629         if (jd->isleafmethod) {
630                 for (i = 0; i < INT_TMP_CNT; i++)
631                         M_LST(rd->tmpintregs[i], REG_SP, (2 + ARG_CNT + i) * 8);
632
633                 for (i = 0; i < FLT_TMP_CNT; i++)
634                         M_DST(rd->tmpfltregs[i], REG_SP, (2 + ARG_CNT + INT_TMP_CNT + i) * 8);
635         }
636
637         /* load float arguments into integer registers */
638
639         for (i = 0; i < md->paramcount && i < INT_ARG_CNT; i++) {
640                 t = md->paramtypes[i].type;
641
642                 if (IS_FLT_DBL_TYPE(t)) {
643                         if (IS_2_WORD_TYPE(t)) {
644                                 M_DST(abi_registers_float_argument[i], REG_SP, 0 * 8);
645                                 M_LLD(abi_registers_integer_argument[i], REG_SP, 0 * 8);
646                         }
647                         else {
648                                 M_FST(abi_registers_float_argument[i], REG_SP, 0 * 8);
649                                 M_ILD(abi_registers_integer_argument[i], REG_SP, 0 * 8);
650                         }
651                 }
652         }
653
654         disp = dseg_add_address(cd, m);
655         M_ALD(REG_ITMP1, REG_PV, disp);
656         M_AST(REG_ITMP1, REG_SP, 0 * 8);
657         disp = dseg_add_functionptr(cd, builtin_verbosecall_enter);
658         M_ALD(REG_PV, REG_PV, disp);
659         M_JSR(REG_RA, REG_PV);
660         disp = (s4) (cd->mcodeptr - cd->mcodebase);
661         M_LDA(REG_PV, REG_RA, -disp);
662         M_ALD(REG_RA, REG_SP, 1 * 8);
663
664         /* restore argument registers */
665
666         for (i = 0; i < INT_ARG_CNT; i++)
667                 M_LLD(abi_registers_integer_argument[i], REG_SP, (2 + i) * 8);
668
669         for (i = 0; i < FLT_ARG_CNT; i++)
670                 M_DLD(abi_registers_float_argument[i], REG_SP, (2 + INT_ARG_CNT + i) * 8);
671
672         /* restore temporary registers for leaf methods */
673
674         if (jd->isleafmethod) {
675                 for (i = 0; i < INT_TMP_CNT; i++)
676                         M_LLD(rd->tmpintregs[i], REG_SP, (2 + ARG_CNT + i) * 8);
677
678                 for (i = 0; i < FLT_TMP_CNT; i++)
679                         M_DLD(rd->tmpfltregs[i], REG_SP, (2 + ARG_CNT + INT_TMP_CNT + i) * 8);
680         }
681
682         M_LDA(REG_SP, REG_SP, (ARG_CNT + TMP_CNT + 2) * 8);
683
684         /* mark trace code */
685
686         M_NOP;
687 }
688 #endif /* !defined(NDEBUG) */
689
690
691 /* emit_verbosecall_exit *******************************************************
692
693    Generates the code for the call trace.
694
695    void builtin_verbosecall_exit(s8 l, double d, float f, methodinfo *m);
696
697 *******************************************************************************/
698
699 #if !defined(NDEBUG)
700 void emit_verbosecall_exit(jitdata *jd)
701 {
702         methodinfo   *m;
703         codegendata  *cd;
704         registerdata *rd;
705         s4            disp;
706
707         /* get required compiler data */
708
709         m  = jd->m;
710         cd = jd->cd;
711         rd = jd->rd;
712
713         /* mark trace code */
714
715         M_NOP;
716
717         M_ASUB_IMM(REG_SP, 4 * 8, REG_SP);
718         M_AST(REG_RA, REG_SP, 0 * 8);
719
720         M_LST(REG_RESULT, REG_SP, 1 * 8);
721         M_DST(REG_FRESULT, REG_SP, 2 * 8);
722
723         M_MOV(REG_RESULT, REG_A0);
724         M_FMOV(REG_FRESULT, REG_FA1);
725         M_FMOV(REG_FRESULT, REG_FA2);
726
727         disp = dseg_add_address(cd, m);
728         M_ALD(REG_A3, REG_PV, disp);
729
730         disp = dseg_add_functionptr(cd, builtin_verbosecall_exit);
731         M_ALD(REG_PV, REG_PV, disp);
732         M_JSR(REG_RA, REG_PV);
733         disp = (cd->mcodeptr - cd->mcodebase);
734         M_LDA(REG_PV, REG_RA, -disp);
735
736         M_DLD(REG_FRESULT, REG_SP, 2 * 8);
737         M_LLD(REG_RESULT, REG_SP, 1 * 8);
738
739         M_ALD(REG_RA, REG_SP, 0 * 8);
740         M_AADD_IMM(REG_SP, 4 * 8, REG_SP);
741
742         /* mark trace code */
743
744         M_NOP;
745 }
746 #endif /* !defined(NDEBUG) */
747
748
749 /*
750  * These are local overrides for various environment variables in Emacs.
751  * Please do not remove this and leave it at the end of the file, where
752  * Emacs will automagically detect them.
753  * ---------------------------------------------------------------------
754  * Local variables:
755  * mode: c
756  * indent-tabs-mode: t
757  * c-basic-offset: 4
758  * tab-width: 4
759  * End:
760  * vim:noexpandtab:sw=4:ts=4:
761  */