Mercurial > projects > dstress
diff run/a/asm_paddw_01_A.d @ 1285:229e630d4b1a
partuial inline asm review
author | thomask |
---|---|
date | Tue, 26 Dec 2006 14:21:37 +0000 |
parents | 6e5d377573e1 |
children |
line wrap: on
line diff
--- a/run/a/asm_paddw_01_A.d Tue Dec 26 14:21:29 2006 +0000 +++ b/run/a/asm_paddw_01_A.d Tue Dec 26 14:21:37 2006 +0000 @@ -16,9 +16,13 @@ int main(){ haveSSE2!()(); - short* a = [cast(short)1, 2, 3, 4, 5, 6, 7, 8]; - short* b = [cast(short)-9, -8, -7, -6, -5, -4, -3, -2]; - short* c = new short[8]; + short[] A = [1, 2, 3, 4, 5, 6, 7, 8]; + short* a = A.ptr; + + short[] B = [-9, -8, -7, -6, -5, -4, -3, -2]; + short* b = B.ptr; + + short* c = (new short[8]).ptr; static if(size_t.sizeof == 4){ asm{