Mercurial > projects > dstress
view run/a/asm_jpe_01_A.d @ 640:1fc8a80e4599
* added conditional jump tests
* extended basic integer math tests
author | thomask |
---|---|
date | Tue, 23 Aug 2005 22:23:55 +0000 |
parents | |
children | 03c97933de98 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.a.asm_jpe_01_A; int main(){ version(D_InlineAsm){ int a = int.min; asm{ mov EAX, 8; cmp EAX, 2; jpe save; mov EAX, 0; save: mov a, EAX; } assert(a == 8); return 0; }else{ pragma(msg, "no Inline asm support"); static assert(0); } }