D ASM. Program fails
Iakh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 21 21:59:00 PST 2016
This code compiles but program exits with code -11
What's wrong?
import std.stdio;
import core.simd;
int pmovmskb(inout byte16 v)
{
asm
{
movdqa XMM0, v;
pmovmskb EAX, XMM0;
ret;
}
}
void main()
{
byte16 a = [-1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
auto i = pmovmskb(a);
}
Program exited with code -11
DMD64 D Compiler v2.069
More information about the Digitalmars-d-learn
mailing list