Mercurial > projects > dstress
changeset 1053:136829b474f9
<pmoore_member@pathlink.com>
2006-06-21
news:e7cgng$13vq$1@digitaldaemon.com
author | thomask |
---|---|
date | Thu, 29 Jun 2006 13:25:29 +0000 |
parents | b524fdde8950 |
children | 8f18e188ad90 |
files | compile/a/asm_offset_02_A.d compile/a/asm_offset_02_B.d |
diffstat | 2 files changed, 58 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/a/asm_offset_02_A.d Thu Jun 29 13:25:29 2006 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <pmoore_member@pathlink.com> +// @date@ 2006-06-21 +// @uri@ news:e7cgng$13vq$1@digitaldaemon.com + +module dstress.compile.a.asm_offset_02_A; + +version(D_InlineAsm_X86){ + version = runTest; +} + +version(runTest){ + const int CONST_OFFSET = 10; + + int main(){ + asm{ + mov EDI, 10; + mov EAX, [EDI + CONST_OFFSET]; + } + + return 0; + } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/a/asm_offset_02_B.d Thu Jun 29 13:25:29 2006 +0000 @@ -0,0 +1,28 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <pmoore_member@pathlink.com> +// @date@ 2006-06-21 +// @uri@ news:e7cgng$13vq$1@digitaldaemon.com + +module dstress.compile.a.asm_offset_02_B; + +version(D_InlineAsm_X86){ + version = runTest; +} + +version(runTest){ + int main(){ + asm{ + mov EDI, 10; + mov EAX, [EDI + 10]; + } + + return 0; + } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +} +