From d5347dd20a79a4f2b80d6910dc02d6b38017d1b2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 11 Dec 2008 10:01:31 +0000 Subject: use newer spiffy asm constraints to get better code generation --- libc/sysdeps/linux/bfin/syscall.c | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'libc/sysdeps/linux/bfin') diff --git a/libc/sysdeps/linux/bfin/syscall.c b/libc/sysdeps/linux/bfin/syscall.c index 1db873874..d68eb6e2f 100644 --- a/libc/sysdeps/linux/bfin/syscall.c +++ b/libc/sysdeps/linux/bfin/syscall.c @@ -29,24 +29,16 @@ long syscall(long sysnum, long a, long b, long c, long d, long e, long f) int _r0 = 0; __asm__ __volatile__ ( - "R5 = %7;" - "R4 = %6;" - "R3 = %5;" - "R2 = %4;" - "R1 = %3;" - "R0 = %2;" - "P0 = %1;" "excpt 0;" - "%0 = R0;" - : "=r" (_r0) - : "rm" (sysnum), - "rm" (a), - "rm" (b), - "rm" (c), - "rm" (d), - "rm" (e), - "rm" (f) - : "memory","CC","R0","R1","R2","R3","R4","R5","P0"); + : "=q0" (_r0) + : "qA" (sysnum), + "q0" (a), + "q1" (b), + "q2" (c), + "q3" (d), + "q4" (e), + "q5" (f) + : "memory", "CC"); if (_r0 >= (unsigned long) -4095) { (*__errno_location()) = (-_r0); -- cgit v1.2.3