Re: align(16) struct member throws an exception with movdqa

2012-06-16 Thread Kapps
On Monday, 11 June 2012 at 03:19:08 UTC, ixid wrote: struct a { align(16) int[4] test = [1,2,3,4]; } a test; asm { movdqa XMM0, test ; addps XMM0, XMM0; movdpa test, XMM0 ; } This works fine with unaligned movdqu but

Re: align(16) struct member throws an exception with movdqa

2012-06-14 Thread Kagamin
On Thursday, 14 June 2012 at 12:02:02 UTC, Trass3r wrote: What the heck is this supposed to mean? It sounds like in any case the C compiler's value is used and the attribute is completely superfluous/useless. It means it works like C's _Alignas ( constant-expression ) (C11, 6.7.5).

Re: align(16) struct member throws an exception with movdqa

2012-06-13 Thread Sean Cavanaugh
On 6/11/2012 7:15 AM, Trass3r wrote: I think it has been fixed for the next version of DMD already. Any idea why align isn't letting me use movdqa? Cause align doesn't work the way you think it does. In fact I still don't understand how it works at all. The language align keyword can only

Re: align(16) struct member throws an exception with movdqa

2012-06-13 Thread Jonathan M Davis
On Thursday, June 14, 2012 00:17:25 Sean Cavanaugh wrote: On 6/11/2012 7:15 AM, Trass3r wrote: I think it has been fixed for the next version of DMD already. Any idea why align isn't letting me use movdqa? Cause align doesn't work the way you think it does. In fact I still don't

Re: align(16) struct member throws an exception with movdqa

2012-06-11 Thread Trass3r
test code please

Re: align(16) struct member throws an exception with movdqa

2012-06-11 Thread ixid
import std.stdio, core.simd; void main() { int4 v; } Internal error: ..\ztc\cgcod.c 1447 Building Debug\dtest1.exe failed!

Re: align(16) struct member throws an exception with movdqa

2012-06-11 Thread Trass3r
import std.stdio, core.simd; void main() { int4 v; } Internal error: ..\ztc\cgcod.c 1447 Building Debug\dtest1.exe failed! Works fine on Linux. Maybe the 32Bit check doesn't work for Windoze? -m32 on Linux yields Error: SIMD vector types not supported on this platform

Re: align(16) struct member throws an exception with movdqa

2012-06-11 Thread ixid
I think it has been fixed for the next version of DMD already. Any idea why align isn't letting me use movdqa?

Re: align(16) struct member throws an exception with movdqa

2012-06-11 Thread Trass3r
I think it has been fixed for the next version of DMD already. Any idea why align isn't letting me use movdqa? Cause align doesn't work the way you think it does. In fact I still don't understand how it works at all.

align(16) struct member throws an exception with movdqa

2012-06-10 Thread ixid
struct a { align(16) int[4] test = [1,2,3,4]; } a test; asm { movdqa XMM0, test ; addps XMM0, XMM0; movdpa test, XMM0 ; } This works fine with unaligned movdqu but throws an access violation exception with movdqa. Why

Re: align(16) struct member throws an exception with movdqa

2012-06-10 Thread jerro
On Monday, 11 June 2012 at 03:19:08 UTC, ixid wrote: struct a { align(16) int[4] test = [1,2,3,4]; } a test; asm { movdqa XMM0, test ; addps XMM0, XMM0; movdpa test, XMM0 ; } This works fine with unaligned movdqu but

Re: align(16) struct member throws an exception with movdqa

2012-06-10 Thread ixid
That doesn't work for me, hence using assembler. I get: Internal error: ..\ztc\cgcod.c 1447