diff run/a/asm_pmaxsw_01_A.d @ 1290:e3d0dea394ab

partial inline asm review
author thomask
date Wed, 27 Dec 2006 11:59:48 +0000
parents 6e5d377573e1
children
line wrap: on
line diff
--- a/run/a/asm_pmaxsw_01_A.d	Wed Dec 27 11:59:35 2006 +0000
+++ b/run/a/asm_pmaxsw_01_A.d	Wed Dec 27 11:59:48 2006 +0000
@@ -17,9 +17,13 @@
 	int main(){
 		haveSSE!()();
 
-		short* a = [cast(short)1, 2, 3, 4, 5, 6, 16, 2];
-		short* b = [cast(short)-9, 10, -11, -12, 13, 14, 0xFFF, 1];
-		short* c = new short[8];
+		short[] A = [cast(short)1, 2, 3, 4, 5, 6, 16, 2];
+		short* a = A.ptr;
+
+		short[] B = [cast(short)-9, 10, -11, -12, 13, 14, 0xFFF, 1];
+		short* b = B.ptr;
+
+		short* c = (new short[8]).ptr;
 
 		static if(size_t.sizeof == 4){
 			asm{