Mercurial > projects > dstress
annotate run/byte_04.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 | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.byte_04; | |
0 | 6 |
7 int main(){ | |
8 byte a, b, c; | |
9 | |
10 // "/" | |
11 a=91; b=7; c=a/b; | |
12 assert( a == 91); | |
13 assert( b == 7); | |
14 assert( c == 13); | |
15 a=-91; b=13; c=a/b; | |
16 assert( a == -91); | |
17 assert( b == 13); | |
18 assert( c == -7); | |
19 a=91; b=-13; c=a/b; | |
20 assert( a == 91); | |
21 assert( b == -13); | |
22 assert( c == -7); | |
23 a=-91; b=-13; c=a/b; | |
24 assert( a == -91); | |
25 assert( b == -13); | |
26 assert( c == 7); | |
27 | |
28 return 0; | |
1 | 29 } |