1 /* This does not work on m68hc11 due to the asm statement which forces
2 two 'long' (32-bits) variables to go in registers. */
3 /* { dg-do assemble } */
4 /* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "" } } */
6 static inline unsigned long rdfpcr(void)
8 unsigned long tmp
, ret
;
9 __asm__ ("" : "=r"(tmp
), "=r"(ret
));
13 static inline unsigned long
14 swcr_update_status(unsigned long swcr
, unsigned long fpcr
)
17 swcr
|= (fpcr
>> 3) & 0x7e0000ul
;
21 unsigned long osf_getsysinfo(unsigned long flags
)
24 w
= swcr_update_status(flags
, rdfpcr());