search for: checkalignment

Displaying 5 results from an estimated 5 matches for "checkalignment".

2015 Apr 27
4
[LLVMdev] Invalid or unaligned stack exception on Windows
...on the source code, it looks like you are allocating stack manually, but I could be wrong. What triple are you using with LLVM to generate code? There isn't much else information here, but you can try to zero in on the problem by checking the stack alignment manually with a helper like: void CheckAlignment() { assert((((uintptr_t)_AddressOfReturnAddress() + 8) & 15) == 0); } Run this near where LLVM calls back into C code. If it fails, disassemble the calling LLVM function and look at that to see if there's something wrong with the prologue. Sending that along with any followups would be h...
2015 Apr 25
2
[LLVMdev] Invalid or unaligned stack exception on Windows
Hi, I wrote sometime ago about this issue (see links below). http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/084089.html http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-April/084193.html At the time I thought the problem was due to a bug in my code, and that I had fixed it. But sadly it seems that the issue is still present - it just got hidden by whatever change I made. The error only
2016 Dec 14
2
LLD status update and performance chart
...thread, if > you look at the details, the argument is not as strong as the > high-level software engineering spidey sense might initially > suggest. Alright, let's be specific. PPC64TargetInfo::relocateOne in tools/lld/ELF/Target.cpp has this: switch (Type) { case R_PPC64_ADDR14: { checkAlignment<4>(Val, Type); // Preserve the AA/LK bits in the branch instruction uint8_t AALK = Loc[3]; write16be(Loc + 2, (AALK & 3) | (Val & 0xfffc)); break; } case R_PPC64_ADDR16: checkInt<16>(Val, Type); write16be(Loc, Val); break; case R_PPC64_ADDR16_DS: checkInt<16>(Va...
2016 Dec 14
0
LLD status update and performance chart
...tails, the argument is not as strong as the high-level software > engineering spidey sense might initially suggest. > > Alright, let's be specific. PPC64TargetInfo::relocateOne in > tools/lld/ELF/Target.cpp has this: > > switch (Type) { > case R_PPC64_ADDR14: { > checkAlignment<4>(Val, Type); > // Preserve the AA/LK bits in the branch instruction > uint8_t AALK = Loc[3]; > write16be(Loc + 2, (AALK & 3) | (Val & 0xfffc)); > break; > } > case R_PPC64_ADDR16: > checkInt<16>(Val, Type); > write16be(Loc, V...
2016 Dec 14
0
LLD status update and performance chart
On Tue, Dec 13, 2016 at 12:08 PM, Rui Ueyama <ruiu at google.com> wrote: > On Tue, Dec 13, 2016 at 12:01 PM, Mehdi Amini <mehdi.amini at apple.com> > wrote: > >> >> On Dec 13, 2016, at 11:51 AM, Rui Ueyama <ruiu at google.com> wrote: >> >> On Tue, Dec 13, 2016 at 11:37 AM, Mehdi Amini <mehdi.amini at apple.com> >> wrote: >>