Mercurial > projects > dstress
annotate run/a/asm_05_A.d @ 1542:d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
Matti Niemenmaa (Deewiant) <deewiant@gmail.com>
2007-05-31
http://d.puremagic.com/issues/show_bug.cgi?id=1152
author | thomask |
---|---|
date | Sun, 01 Jul 2007 13:19:07 +0000 |
parents | |
children |
rev | line source |
---|---|
1542
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
2 // $Date$ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
3 // $Author$ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
4 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
5 // @author@ Matti Niemenmaa (Deewiant) <deewiant@gmail.com> |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
6 // @date@ 2007-05-31 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1152 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 1152] Inline assembler: cannot use properties of types |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
9 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
10 module dstress.run.a.asm_05_A; |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
11 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
12 version(D_InlineAsm_X86){ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
13 version = runTest; |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
14 }else version(D_InlineAsm_X86_64){ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
15 version = runTest; |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
16 } |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
17 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
18 version(runTest){ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
19 int main(){ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
20 int i = 1; |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
21 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
22 asm{ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
23 mov i, i.max; |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
24 } |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
25 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
26 if(0x7FFF_FFFF != i){ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
27 assert(0); |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
28 } |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
29 |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
30 return 0; |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
31 } |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
32 }else{ |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
33 static assert(0, "DSTRESS{XFAIL}: no inline x86 ASM support"); |
d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
thomask
parents:
diff
changeset
|
34 } |