view run/a/asm_movd_02_G.d @ 1542:d8e1feb9e66e

[Issue 1152] Inline assembler: cannot use properties of types Matti Niemenmaa (Deewiant) <deewiant@gmail.com> 2007-05-31 http://d.puremagic.com/issues/show_bug.cgi?id=1152
author thomask
date Sun, 01 Jul 2007 13:19:07 +0000
parents b8c0195059d9
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	pmoore <pmoore_member@pathlink.com>
// @date@	2006-03-14
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6662

module dstress.run.a.asm_movd_02_G;

int main(){
	version(D_InlineAsm_X86){
		ulong l = 0x4444_AAAA_CCCC_1111;
		uint i = 0x33FF_FF33;
		asm{
			movdqu XMM6, l;
			mov EAX, i;

			movd EBX, XMM6;
			cmp i, EAX;
			jne bug;

			movd ECX, XMM6;
			cmp i, EAX;
			jne bug;

			movd EDX, XMM6;
			cmp i, EAX;
			jne bug;
		}

		return 0;
bug:
		assert(0);
	}else{
		pragma(msg, "DSTRESS{XFAIL}: no inline asm support");
		return 0;
	}
}