]>
Commit | Line | Data |
---|---|---|
c76b6ab5 JB |
1 | --- glibc-2.5/sysdeps/sparc/sparc32/soft-fp/sfp-machine.h.orig 2006-01-14 12:09:02.000000000 +0000 |
2 | +++ glibc-2.5/sysdeps/sparc/sparc32/soft-fp/sfp-machine.h 2006-12-30 20:17:12.000000000 +0000 | |
3 | @@ -105,16 +105,15 @@ | |
4 | ||
5 | #define __FP_FRAC_ADD_4(r3,r2,r1,r0,x3,x2,x1,x0,y3,y2,y1,y0) \ | |
6 | do { \ | |
7 | - /* We need to fool gcc, as we need to pass more than 10 \ | |
8 | - input/outputs. */ \ | |
9 | - register USItype _t1 __asm__ ("g1"), _t2 __asm__ ("g2"); \ | |
10 | __asm__ __volatile__ ("\ | |
11 | - addcc %r8,%9,%1\n\ | |
12 | - addxcc %r6,%7,%0\n\ | |
13 | - addxcc %r4,%5,%%g2\n\ | |
14 | - addx %r2,%3,%%g1" \ | |
15 | + addcc %r10,%11,%1\n\ | |
1a81c969 | 16 | + addxcc %r8,%9,%0\n\ |
c76b6ab5 JB |
17 | + addxcc %r6,%7,%3\n\ |
18 | + addx %r4,%5,%2" \ | |
19 | : "=&r" ((USItype)(r1)), \ | |
20 | - "=&r" ((USItype)(r0)) \ | |
21 | + "=&r" ((USItype)(r0)), \ | |
22 | + "=&r" ((USItype)(r3)), \ | |
23 | + "=&r" ((USItype)(r2)) \ | |
24 | : "%rJ" ((USItype)(x3)), \ | |
25 | "rI" ((USItype)(y3)), \ | |
26 | "%rJ" ((USItype)(x2)), \ | |
27 | @@ -123,23 +122,20 @@ | |
28 | "rI" ((USItype)(y1)), \ | |
29 | "%rJ" ((USItype)(x0)), \ | |
30 | "rI" ((USItype)(y0)) \ | |
31 | - : "cc", "g1", "g2"); \ | |
32 | - __asm__ __volatile__ ("" : "=r" (_t1), "=r" (_t2)); \ | |
33 | - r3 = _t1; r2 = _t2; \ | |
34 | + : "cc"); \ | |
35 | } while (0) | |
36 | ||
37 | #define __FP_FRAC_SUB_4(r3,r2,r1,r0,x3,x2,x1,x0,y3,y2,y1,y0) \ | |
38 | do { \ | |
39 | - /* We need to fool gcc, as we need to pass more than 10 \ | |
40 | - input/outputs. */ \ | |
41 | - register USItype _t1 __asm__ ("g1"), _t2 __asm__ ("g2"); \ | |
42 | __asm__ __volatile__ ("\ | |
43 | - subcc %r8,%9,%1\n\ | |
44 | - subxcc %r6,%7,%0\n\ | |
45 | - subxcc %r4,%5,%%g2\n\ | |
46 | - subx %r2,%3,%%g1" \ | |
47 | + subcc %r10,%11,%1\n\ | |
48 | + subxcc %r8,%9,%0\n\ | |
49 | + subxcc %r6,%7,%3\n\ | |
50 | + subx %r4,%5,%2" \ | |
51 | : "=&r" ((USItype)(r1)), \ | |
52 | - "=&r" ((USItype)(r0)) \ | |
53 | + "=&r" ((USItype)(r0)), \ | |
54 | + "=&r" ((USItype)(r3)), \ | |
55 | + "=&r" ((USItype)(r2)) \ | |
56 | : "%rJ" ((USItype)(x3)), \ | |
57 | "rI" ((USItype)(y3)), \ | |
58 | "%rJ" ((USItype)(x2)), \ | |
59 | @@ -148,9 +144,7 @@ | |
60 | "rI" ((USItype)(y1)), \ | |
61 | "%rJ" ((USItype)(x0)), \ | |
62 | "rI" ((USItype)(y0)) \ | |
63 | - : "cc", "g1", "g2"); \ | |
64 | - __asm__ __volatile__ ("" : "=r" (_t1), "=r" (_t2)); \ | |
65 | - r3 = _t1; r2 = _t2; \ | |
66 | + : "cc"); \ | |
67 | } while (0) | |
68 | ||
69 | #define __FP_FRAC_DEC_3(x2,x1,x0,y2,y1,y0) __FP_FRAC_SUB_3(x2,x1,x0,x2,x1,x0,y2,y1,y0) |