1044
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.a.asm_xor_02_B;
|
|
6
|
|
7 version(D_InlineAsm_X86){
|
|
8 version = runTest;
|
|
9 }else version(D_InlineAsm_X86_64){
|
|
10 version = runTest;
|
|
11 }
|
|
12
|
|
13 version(runTest){
|
|
14 int main(){
|
|
15 short a = 0x1534;
|
|
16 short b = 0x0150;
|
|
17
|
|
18 asm{
|
|
19 mov AX, a;
|
|
20 mov BX, b;
|
|
21 xor BX, AX;
|
|
22 mov b, BX;
|
|
23 }
|
|
24
|
|
25 if(b != (0x1534 ^ 0x0150)){
|
|
26 assert(0);
|
|
27 }
|
|
28
|
|
29 return 0;
|
|
30 }
|
|
31 }else{
|
1386
|
32 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support");
|
1044
|
33 static assert(0);
|
|
34 }
|