Mercurial > projects > dstress
view run/a/asm_and_02_A.d @ 987:1c9d1337cb77
inline asm review
author | thomask |
---|---|
date | Sun, 07 May 2006 15:37:44 +0000 |
parents | |
children | a468938b0160 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.a.asm_and_02_A; version(D_InlineAsm_X86){ version = doTest; }else version(D_InlineAsm_X86_64){ version = doTest; } int main(){ version(doTest){ uint a = 0x12_34_56_06; ubyte b = 5; asm{ mov EBX, a; and BL, b; mov a, EBX; } if(a != 0x12_34_56_04){ assert(0); } return 0; }else{ pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); static assert(0); } }