3 static unsigned long test
[] ={
74 /* fixs390: we also need to check if invalid values cause a fixed-point-devide exception.
75 Not yet implemented. */
76 /* 0x000002147483648c,
78 0x00000000000000fa, */
83 static signed int dec_to_hex(unsigned long *addr
)
85 register signed int res
asm("2") = 0;
86 register unsigned long *_addr
asm("4") = addr
;
90 : "=d" (res
) : "d" (_addr
) : "memory");
91 return res
& 0xffffffff;
101 for (i
= 0; i
< sizeof(test
) / sizeof(test
[0]); i
++)
102 printf("%d\n", dec_to_hex(&test
[i
]));