7 register long g
asm("r7");
8 register double f
asm("f8");
11 memset(&f1
, 0x0f, sizeof(double));
14 printf("test LGDR\n\n");
15 printf("before g = %ld\n", g
);
16 printf("before f = %a\n", f
);
17 printf("copy f to g\n");
18 asm volatile ( LGDR(7,8) : "=d"(g
) : "f"(f
));
19 printf("after g = %16.16lx\n", g
); /* 0x0x0x0...... */
20 printf("after f = %a\n", f
);
22 printf("\ntest LDGR\n\n");
24 printf("before g = %16.16lx\n", g
); /* 0x0x0x0...... */
25 printf("before f = %a\n", f
);
26 printf("copy g to f\n");
27 asm volatile ( LDGR(8,7) : "=f"(f
) : "d"(g
));
28 printf("after g = %16.16lx\n", g
); /* 0x0x0x0...... */
29 printf("after f = %a\n", f
);