summaryrefslogtreecommitdiff
path: root/test/regression/int64.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/int64.c')
-rw-r--r--test/regression/int64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/regression/int64.c b/test/regression/int64.c
index 5b32ccd..0012216 100644
--- a/test/regression/int64.c
+++ b/test/regression/int64.c
@@ -38,6 +38,7 @@ static void test1(u64 x, u64 y)
s64 y3;
int i;
double f;
+ float s;
printf("x = %llx\n", x);
printf("y = %llx\n", y);
@@ -75,6 +76,10 @@ static void test1(u64 x, u64 y)
printf("stod x = %llx\n", *((u64*) &f));
f = f * 0.0001;
printf("dtos f = %llx\n", (s64) f);
+ s = (float) x;
+ printf("utof x = %x\n", *((unsigned*) &s));
+ s = (float) ((s64) x);
+ printf("stof x = %x\n", *((unsigned*) &s));
printf("\n");
}