From 91fb1e7f6ca22c27ac904c29bbdb5e6d6a1b3f11 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 27 Apr 2000 10:49:16 +0000 Subject: * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use post-increment when it is worth it, spacewise. --- newlib/libc/machine/mn10300/setjmp.S | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'newlib/libc/machine/mn10300') diff --git a/newlib/libc/machine/mn10300/setjmp.S b/newlib/libc/machine/mn10300/setjmp.S index 006aa3e1c..a95f12c5a 100644 --- a/newlib/libc/machine/mn10300/setjmp.S +++ b/newlib/libc/machine/mn10300/setjmp.S @@ -17,10 +17,11 @@ _setjmp: mov sp,a1 mov a1,(20,a0) #ifdef __AM33__ - mov r4,(24,a0) - mov r5,(28,a0) - mov r6,(32,a0) - mov r7,(36,a0) + add 24,a0 + mov r4,(a0+) + mov r5,(a0+) + mov r6,(a0+) + mov r7,(a0+) #endif sub d0,d0 rets @@ -37,10 +38,11 @@ _longjmp: mov (20,a0),a1 mov a1,sp #ifdef __AM33__ - mov (24,a0),r4 - mov (28,a0),r5 - mov (32,a0),r6 - mov (36,a0),r7 + add 24,a0 + mov (a0+),r4 + mov (a0+),r5 + mov (a0+),r6 + mov (a0+),r7 #endif cmp 0,d1 bne L1 -- cgit v1.2.3