640
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.a.asm_cmc_01;
|
|
6
|
988
|
7 version(D_InlineAsm_X86){
|
989
|
8 version = runTest;
|
988
|
9 }else version(D_InlineAsm_X86_64){
|
989
|
10 version = runTest;
|
988
|
11 }
|
|
12
|
1070
|
13 version(runTest){
|
|
14 int main(){
|
640
|
15 byte a = 0;
|
1044
|
16
|
640
|
17 asm{
|
|
18 clc;
|
|
19 cmc;
|
988
|
20 jnc error;
|
640
|
21 stc;
|
|
22 cmc;
|
988
|
23 jc error;
|
640
|
24 }
|
1044
|
25
|
|
26
|
640
|
27 return 0;
|
988
|
28 error:
|
|
29 assert(0);
|
640
|
30 }
|
1070
|
31 }else{
|
1386
|
32 pragma(msg, "DSTRESS{XFAIL}: no inline ASM support");
|
1070
|
33 static assert(0);
|
988
|
34 }
|