[LLVMdev] FP Stack overflow with inline asm
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Sep 1 15:14:57 PDT 2011
On Aug 31, 2011, at 12:28 AM, Florian Schirmer wrote:
> Hi LLVM hackers,
>
> when switching one of our projects to LLVM we discovered some strange behavior. We tracked the issue down to the following test case:
>
> int main()
> {
> double v = 0.84711;
> int r;
>
> __asm__("fistl %0": "=m"(r) : "t"(v));
>
> return r;
> }
>
> The (relevant) clang generated asm looks like this:
>
> fldt 0.84711
> ## InlineAsm Start
> fistl -4(%ebp)
> ## InlineAsm End
This has been fixed in SVN trunk.
/jakob
More information about the llvm-dev
mailing list