Lines Matching +full:0 +full:x00800000

22 #define FPSCR_RCHG 0x00000000
46 asm volatile ("sts.l fpul, @-%0\n\t" in save_fpu()
47 "sts.l fpscr, @-%0\n\t" in save_fpu()
50 "fmov.s fr15, @-%0\n\t" in save_fpu()
51 "fmov.s fr14, @-%0\n\t" in save_fpu()
52 "fmov.s fr13, @-%0\n\t" in save_fpu()
53 "fmov.s fr12, @-%0\n\t" in save_fpu()
54 "fmov.s fr11, @-%0\n\t" in save_fpu()
55 "fmov.s fr10, @-%0\n\t" in save_fpu()
56 "fmov.s fr9, @-%0\n\t" in save_fpu()
57 "fmov.s fr8, @-%0\n\t" in save_fpu()
58 "fmov.s fr7, @-%0\n\t" in save_fpu()
59 "fmov.s fr6, @-%0\n\t" in save_fpu()
60 "fmov.s fr5, @-%0\n\t" in save_fpu()
61 "fmov.s fr4, @-%0\n\t" in save_fpu()
62 "fmov.s fr3, @-%0\n\t" in save_fpu()
63 "fmov.s fr2, @-%0\n\t" in save_fpu()
64 "fmov.s fr1, @-%0\n\t" in save_fpu()
65 "fmov.s fr0, @-%0\n\t" in save_fpu()
67 "fmov.s fr15, @-%0\n\t" in save_fpu()
68 "fmov.s fr14, @-%0\n\t" in save_fpu()
69 "fmov.s fr13, @-%0\n\t" in save_fpu()
70 "fmov.s fr12, @-%0\n\t" in save_fpu()
71 "fmov.s fr11, @-%0\n\t" in save_fpu()
72 "fmov.s fr10, @-%0\n\t" in save_fpu()
73 "fmov.s fr9, @-%0\n\t" in save_fpu()
74 "fmov.s fr8, @-%0\n\t" in save_fpu()
75 "fmov.s fr7, @-%0\n\t" in save_fpu()
76 "fmov.s fr6, @-%0\n\t" in save_fpu()
77 "fmov.s fr5, @-%0\n\t" in save_fpu()
78 "fmov.s fr4, @-%0\n\t" in save_fpu()
79 "fmov.s fr3, @-%0\n\t" in save_fpu()
80 "fmov.s fr2, @-%0\n\t" in save_fpu()
81 "fmov.s fr1, @-%0\n\t" in save_fpu()
82 "fmov.s fr0, @-%0\n\t" in save_fpu()
84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
97 "fmov.s @%0+, fr0\n\t" in restore_fpu()
98 "fmov.s @%0+, fr1\n\t" in restore_fpu()
99 "fmov.s @%0+, fr2\n\t" in restore_fpu()
100 "fmov.s @%0+, fr3\n\t" in restore_fpu()
101 "fmov.s @%0+, fr4\n\t" in restore_fpu()
102 "fmov.s @%0+, fr5\n\t" in restore_fpu()
103 "fmov.s @%0+, fr6\n\t" in restore_fpu()
104 "fmov.s @%0+, fr7\n\t" in restore_fpu()
105 "fmov.s @%0+, fr8\n\t" in restore_fpu()
106 "fmov.s @%0+, fr9\n\t" in restore_fpu()
107 "fmov.s @%0+, fr10\n\t" in restore_fpu()
108 "fmov.s @%0+, fr11\n\t" in restore_fpu()
109 "fmov.s @%0+, fr12\n\t" in restore_fpu()
110 "fmov.s @%0+, fr13\n\t" in restore_fpu()
111 "fmov.s @%0+, fr14\n\t" in restore_fpu()
112 "fmov.s @%0+, fr15\n\t" in restore_fpu()
114 "fmov.s @%0+, fr0\n\t" in restore_fpu()
115 "fmov.s @%0+, fr1\n\t" in restore_fpu()
116 "fmov.s @%0+, fr2\n\t" in restore_fpu()
117 "fmov.s @%0+, fr3\n\t" in restore_fpu()
118 "fmov.s @%0+, fr4\n\t" in restore_fpu()
119 "fmov.s @%0+, fr5\n\t" in restore_fpu()
120 "fmov.s @%0+, fr6\n\t" in restore_fpu()
121 "fmov.s @%0+, fr7\n\t" in restore_fpu()
122 "fmov.s @%0+, fr8\n\t" in restore_fpu()
123 "fmov.s @%0+, fr9\n\t" in restore_fpu()
124 "fmov.s @%0+, fr10\n\t" in restore_fpu()
125 "fmov.s @%0+, fr11\n\t" in restore_fpu()
126 "fmov.s @%0+, fr12\n\t" in restore_fpu()
127 "fmov.s @%0+, fr13\n\t" in restore_fpu()
128 "fmov.s @%0+, fr14\n\t" in restore_fpu()
129 "fmov.s @%0+, fr15\n\t" in restore_fpu()
131 "lds.l @%0+, fpscr\n\t" in restore_fpu()
132 "lds.l @%0+, fpul\n\t" in restore_fpu()
134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
152 if (x != 0 && (x & 0x7f800000) == 0) { in denormal_to_double()
153 du = (x & 0x80000000); in denormal_to_double()
154 while ((x & 0x00800000) == 0) { in denormal_to_double()
158 x &= 0x007fffff; in denormal_to_double()
180 (insn >> 12) & 0xf, in ieee_fpe_handler()
181 (insn >> 8) & 0xf, in ieee_fpe_handler()
182 (insn >> 4) & 0xf, in ieee_fpe_handler()
183 insn & 0xf in ieee_fpe_handler()
186 if (nib[0] == 0xb || (nib[0] == 0x4 && nib[2] == 0x0 && nib[3] == 0xb)) in ieee_fpe_handler()
189 if (nib[0] == 0xa || nib[0] == 0xb) { in ieee_fpe_handler()
191 nextpc = regs->pc + 4 + ((short)((insn & 0xfff) << 4) >> 3); in ieee_fpe_handler()
193 } else if (nib[0] == 0x8 && nib[1] == 0xd) { in ieee_fpe_handler()
196 nextpc = regs->pc + 4 + ((char)(insn & 0xff) << 1); in ieee_fpe_handler()
200 } else if (nib[0] == 0x8 && nib[1] == 0xf) { in ieee_fpe_handler()
205 nextpc = regs->pc + 4 + ((char)(insn & 0xff) << 1); in ieee_fpe_handler()
207 } else if (nib[0] == 0x4 && nib[3] == 0xb && in ieee_fpe_handler()
208 (nib[2] == 0x0 || nib[2] == 0x2)) { in ieee_fpe_handler()
212 } else if (nib[0] == 0x0 && nib[3] == 0x3 && in ieee_fpe_handler()
213 (nib[2] == 0x0 || nib[2] == 0x2)) { in ieee_fpe_handler()
217 } else if (insn == 0x000b) { in ieee_fpe_handler()
226 if ((finsn & 0xf1ff) == 0xf0ad) { in ieee_fpe_handler()
233 (finsn >> 8) & 0xf); in ieee_fpe_handler()
235 return 0; in ieee_fpe_handler()
239 } else if ((finsn & 0xf00f) == 0xf002) { in ieee_fpe_handler()
246 n = (finsn >> 8) & 0xf; in ieee_fpe_handler()
247 m = (finsn >> 4) & 0xf; in ieee_fpe_handler()
254 && (prec && ((hx & 0x7fffffff) < 0x00100000 in ieee_fpe_handler()
255 || (hy & 0x7fffffff) < 0x00100000))) { in ieee_fpe_handler()
265 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
267 && (!prec && ((hx & 0x7fffffff) < 0x00800000 in ieee_fpe_handler()
268 || (hy & 0x7fffffff) < 0x00800000))) { in ieee_fpe_handler()
273 return 0; in ieee_fpe_handler()
277 } else if ((finsn & 0xf00e) == 0xf000) { in ieee_fpe_handler()
284 n = (finsn >> 8) & 0xf; in ieee_fpe_handler()
285 m = (finsn >> 4) & 0xf; in ieee_fpe_handler()
292 && (prec && ((hx & 0x7fffffff) < 0x00100000 in ieee_fpe_handler()
293 || (hy & 0x7fffffff) < 0x00100000))) { in ieee_fpe_handler()
301 if ((finsn & 0xf00f) == 0xf000) in ieee_fpe_handler()
306 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
308 && (!prec && ((hx & 0x7fffffff) < 0x00800000 in ieee_fpe_handler()
309 || (hy & 0x7fffffff) < 0x00800000))) { in ieee_fpe_handler()
311 if ((finsn & 0xf00f) == 0xf000) in ieee_fpe_handler()
317 return 0; in ieee_fpe_handler()
321 } else if ((finsn & 0xf003) == 0xf003) { in ieee_fpe_handler()
328 n = (finsn >> 8) & 0xf; in ieee_fpe_handler()
329 m = (finsn >> 4) & 0xf; in ieee_fpe_handler()
336 && (prec && ((hx & 0x7fffffff) < 0x00100000 in ieee_fpe_handler()
337 || (hy & 0x7fffffff) < 0x00100000))) { in ieee_fpe_handler()
349 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
351 && (!prec && ((hx & 0x7fffffff) < 0x00800000 in ieee_fpe_handler()
352 || (hy & 0x7fffffff) < 0x00800000))) { in ieee_fpe_handler()
357 return 0; in ieee_fpe_handler()
361 } else if ((finsn & 0xf0bd) == 0xf0bd) { in ieee_fpe_handler()
367 m = (finsn >> 8) & 0x7; in ieee_fpe_handler()
371 && ((hx & 0x7fffffff) < 0x00100000)) { in ieee_fpe_handler()
380 return 0; in ieee_fpe_handler()
386 return 0; in ieee_fpe_handler()
407 fpu_exception_flags = 0; in BUILD_TRAP_HANDLER()
419 (fpu_exception_flags >> 2)) == 0) { in BUILD_TRAP_HANDLER()