annotate run/a/asm_lea_03_A.d @ 1584:75358a6522ce

[Issue 1829] New: Inline assembler cannot get label addresses <burton-radons@shaw.ca> 2007-02-12 http://d.puremagic.com/issues/show_bug.cgi?id=1829
author thomask
date Fri, 22 Feb 2008 07:55:41 +0000
parents
children 276327753cc7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1584
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
1 // $HeadURL$
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
2 // $Date$
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
3 // $Author$
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
4
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
5 // @author@ <burton-radons@shaw.ca>
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
6 // @date@ 2007-02-12
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1829
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
8 // @desc@ [Issue 1829] New: Inline assembler cannot get label addresses
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
9
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
10 module dstress.run.a.asm_lea_03_A;
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
11
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
12 version(D_InlineAsm_X86){
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
13 void test(){
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
14 asm{
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
15 lea EAX, test;
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
16 }
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
17 }
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
18 }else version(D_InlineAsm_X86_64){
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
19 void test(){
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
20 asm{
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
21 lea RAX, test;
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
22 }
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
23 }
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
24 }else{
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
25 pragma(msg, "DSTRESS{XFAIl}: X86 assembler not supported");
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
26 static assert(0);
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
27 }
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
28
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
29 int main(){
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
30 test();
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
31
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
32 return 0;
75358a6522ce [Issue 1829] New: Inline assembler cannot get label addresses
thomask
parents:
diff changeset
33 }