Mercurial > projects > dstress
view run/a/asm_imul_02_A.d @ 638:61d8b062bf80
added some basic integer asm operations and registers tests
author | thomask |
---|---|
date | Sat, 20 Aug 2005 18:24:41 +0000 |
parents | |
children | 861fe190f7ef |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.a.asm_imul_02_A; int main(){ version(D_InlineAsm){ int a = -2; int b = 3; asm{ mov EAX, a; imul EAX, b; mov b, EAX; } assert(b==-6); return 0; }else{ pragma(msg, "no Inline asm support"); static assert(0); } }