Mercurial > projects > dstress
annotate run/byte_07.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_07; | |
0 | 6 |
7 int main(){ | |
8 byte a, b, c; | |
9 | |
10 // "&" | |
11 a=28; b=7; c=a&b; | |
12 assert( a == 28); | |
13 assert( b == 7); | |
14 assert( c == 4); | |
15 a=-28; b=7; c=a&b; | |
16 assert( a == -28); | |
17 assert( b == 7); | |
18 assert( c == 4); | |
19 a=28; b=-7; c=a&b; | |
20 assert( a == 28); | |
21 assert( b == -7); | |
22 assert( c == 24); | |
23 a=-28; b=-7; c=a&b; | |
24 assert( a == -28); | |
25 assert( b == -7); | |
26 assert( c == -32); | |
27 return 0; | |
1 | 28 } |