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
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).
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
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
test code please
import std.stdio, core.simd;
void main()
{ int4 v;
}
Internal error: ..\ztc\cgcod.c 1447
Building Debug\dtest1.exe failed!
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
I think it has been fixed for the next version of DMD already.
Any idea why align isn't letting me use movdqa?
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.
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
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
That doesn't work for me, hence using assembler. I get:
Internal error: ..\ztc\cgcod.c 1447
12 matches
Mail list logo