Mercurial > projects > dstress
annotate run/ieee_754_zerocomp_08.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 80e1b85295b3 |
children |
rev | line source |
---|---|
496 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.ieee_754_zerocomp_08; | |
6 | |
7 int main(){ | |
8 ireal f1, f2; | |
9 | |
958 | 10 f1=0.0Li; |
496 | 11 f2=-f1; |
958 | 12 if(f1 != f2){ |
13 assert(0); | |
14 } | |
496 | 15 |
958 | 16 f1=-0.0Li; |
496 | 17 f2=-f1; |
958 | 18 if(f1 != f2){ |
19 assert(0); | |
20 } | |
496 | 21 |
22 return 0; | |
23 } |