January 25, 2016 General » Re: Dconf 2015 talks... | |||
|---|---|---|---|
| |||
...variables // code // cleanup/return mov sp, bp ret [/code] Technically alloca simply returns the current... | |||
January 22, 2016 Learn » Re: D ASM. Program fails | |||
|---|---|---|---|
| |||
...the prelude and the prologue:
int pmovmskb2(byte16 v)
{
asm
{
naked;
pmovmskb EAX, XMM0;
ret;
}
}
| |||
January 22, 2016 Learn » Re: D ASM. Program fails | |||
|---|---|---|---|
| |||
...EAX, XMM0;
mov RSP, RBP;
pop RBP;
ret;
}
Looks like the SIMD param is passed... | |||
January 22, 2016 Learn » Re: D ASM. Program fails | |||
|---|---|---|---|
| |||
...movdqa XMM0, dword ptr[RBP-0x10];
pmovmskb EAX, XMM0;
mov RSP, RBP;
pop RBP;
ret;
}
} | |||
January 22, 2016 Learn » Re: D ASM. Program fails | |||
|---|---|---|---|
| |||
...EAX, XMM0;
mov RSP, RBP;
pop RBP;
ret;
}
}
Note that there is maybe a DMD... | |||
January 22, 2016 Learn » Re: D ASM. Program fails | |||
|---|---|---|---|
| |||
...sometimes a few other register restores */ leave; ret; `leave` btw is the same as `mov... | |||
January 22, 2016 Learn » Re: D ASM. Program fails | |||
|---|---|---|---|
| |||
...things, but it seems to be the `ret;`. This doesn't segfault: ---- int pmovmskb(byte16... | |||
January 22, 2016 Learn » D ASM. Program fails | |||
|---|---|---|---|
| |||
...asm
{
movdqa XMM0, v;
pmovmskb EAX, XMM0;
ret;
}
}
void main()
{
byte16 a = [-1, 0, -1... | |||
January 11, 2016 Learn » Re: ndslice, using a slice in place of T[] in template parameters | |||
|---|---|---|---|
| |||
...it is like a hack (&ret[0, 0, 0])[0 .. ret.elementsCount]). Have you made... | |||
December 28, 2015 Learn » are MRV as an optimization well known ? | |||
|---|---|---|---|
| |||
...mov rsp, rbp 000000000044C957h pop rbp 000000000044C958h ret ;------------------------------------- ;------- SUB 000000000044C960h ------- ; NAMED: tupNo 000000000044C960h sub rsp... | |||
Copyright © 1999-2021 by the D Language Foundation