Created
September 14, 2022 18:48
-
-
Save erique/f5aa608f6e4a6d987a4e1d423f9b890f to your computer and use it in GitHub Desktop.
testing ___floatundidf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// m68k-amigaos-gcc -O0 -m68060 -mhard-float casttest.c -o casttest | |
#include <stdio.h> | |
int main() | |
{ | |
printf("GCC %s\n", __VERSION__); | |
uint64_t i = 1; | |
double d = i; | |
printf("d = %f ; %s\n", d, (d == 1.0) ? "PASS" : "FAIL"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
m68k-amigaos-objdump -d casttest
PASS:
FAIL: