Revision e3e86d56 tests/test-i386.c

b/tests/test-i386.c
1 1
#define _GNU_SOURCE
2 2
#include <stdlib.h>
3 3
#include <stdio.h>
4
#include <string.h>
4 5
#include <inttypes.h>
5 6
#include <math.h>
6 7
#include <signal.h>
......
591 592
    asm("fld1\n"\
592 593
        prefix "fnstenv %1\n"\
593 594
        prefix "fldenv %1\n"\
594
        : "=t" (res) : "m" (*(env)) : "st");\
595
        : "=t" (res) : "m" (*(env)));\
595 596
    printf("res=%f\n", res);\
596 597
    printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
597 598
           (env)->fpuc,\
......
601 602
    asm("fld1\n"\
602 603
        prefix "fnsave %1\n"\
603 604
        prefix "frstor %1\n"\
604
        : "=t" (res) : "m" (*(env)) : "st");\
605
        : "=t" (res) : "m" (*(env)));\
605 606
    printf("res=%f\n", res);\
606 607
    printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
607 608
           (env)->fpuc,\

Also available in: Unified diff