annotate run/a/asm_movd_05_K.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 9f4bc2c68ce5
children 8a8d5cb8775c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
911
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
1 // $HeadURL$
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
2 // $Date$
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
3 // $Author$
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
4
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
5 // @author@ pmoore <pmoore_member@pathlink.com>
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
6 // @date@ 2006-03-14
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1409
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6662
911
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
8
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
9 module dstress.run.a.asm_movd_05_K;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
10
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
11 int main(){
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
12 version(D_InlineAsm_X86){
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
13 ulong l = 0x4444_AAAA_CCCC_1111;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
14 uint i = 0x33FF_FF33;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
15 asm{
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
16 movdqu XMM5, l;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
17 mov EDX, i;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
18
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
19 movd XMM5, EAX;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
20 cmp i, EDX;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
21 jne bug;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
22
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
23 movd XMM5, EBX;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
24 cmp i, EDX;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
25 jne bug;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
26
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
27 movd XMM5, ECX;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
28 cmp i, EDX;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
29 jne bug;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
30 }
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
31
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
32 return 0;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
33 bug:
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
34 assert(0);
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
35 }else{
1409
9f4bc2c68ce5 div. inline asm fixes
thomask
parents: 911
diff changeset
36 pragma(msg, "DSTRESS{XFAIL}: no inline asm support");
911
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
37 return 0;
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
38 }
18208c74def0 pmoore <pmoore_member@pathlink.com>
thomask
parents:
diff changeset
39 }