view run/a/asm_movq_01_A.d @ 701:93c604903b9d

small iasm update
author thomask
date Wed, 05 Oct 2005 08:12:26 +0000
parents
children a7310ceac844
line wrap: on
line source

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

module dstress.run.a.asm_movq_01_A;

int main(){
	version(D_InlineAsm){
		
		ulong a = 0x1234_ABCD_5678_EF01;
		ulong b = 2;
		
		asm{
			movq MM0, a;
			movq b, MM0;
		}
		
		assert(a==b);
		assert(b==0x1234_ABCD_5678_EF01);
		
		return 0;
	}else{
		pragma(msg, "no Inline asm support");
		static assert(0);
	}
}