void test_lfiwax()
{
unsigned long base;
- unsigned long offset;
+ // unsigned long offset;
typedef struct {
unsigned int hi;
int_pair_t *ip;
foo = -1024.0;
base = (unsigned long) &foo;
- offset = 0;
- __asm__ volatile ("lfiwax %0, %1, %2":"=f" (FRT1):"r"(base),
- "r"(offset));
+
+ __asm__ volatile ("lfiwax %0, 0, %1":"=f" (FRT1):"r"(base));
ip = (int_pair_t *) & FRT1;
printf("lfiwax (%f) => FRT=(%x, %x)\n", foo, ip->hi, ip->lo);
void test_lfiwax()
{
unsigned long base;
- unsigned long offset;
typedef struct {
unsigned int hi;
int_pair_t *ip;
foo = -1024.0;
base = (unsigned long) &foo;
- offset = 0;
- __asm__ volatile ("lfiwax %0, %1, %2":"=f" (FRT1):"r"(base),
- "r"(offset));
+
+ __asm__ volatile ("lfiwax %0, 0, %1":"=f" (FRT1):"r"(base));
ip = (int_pair_t *) & FRT1;
printf("lfiwax (%f) => FRT=(%x, %x)\n", foo, ip->hi, ip->lo);
lfdp (-1024.000000, 1025.000000) => F_hi=-1024.000000, F_lo=1025.000000
stfdp (2.204800, -4.102400) => F_hi=2.204800, F_lo=-4.102400
lfdpx (2.204800, -4.102400) => F_hi=2.204800, F_lo=-4.102400
-stfdpx (2.204800, -4.102400) => F_hi=2.204800, F_lo=-4.102400
+stfdpx (2.204800, 2.204800) => F_hi=2.204800, F_lo=2.204800
lfiwax (-1024.000000) => FRT=(ffffffff, c0900000)
prtyd (0) => parity=0
prtyw (0) => parity=0