Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stackifier bug with inline asm #4857

Closed
llvmbot opened this issue Jun 30, 2009 · 0 comments
Closed

stackifier bug with inline asm #4857

llvmbot opened this issue Jun 30, 2009 · 0 comments
Labels
bugzilla Issues migrated from bugzilla tools:llc

Comments

@llvmbot
Copy link
Member

llvmbot commented Jun 30, 2009

Bugzilla Link 4485
Resolution FIXED
Resolved on Jun 30, 2009 11:42
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

the test


define void @​test(x86_fp80* %a) {
entry:
%0 = load x86_fp80* %a, align 16
%1 = fmul x86_fp80 %0, 0xK4006B400000000000000
%2 = fmul x86_fp80 %1, 0xK4012F424000000000000
tail call void asm sideeffect "fistpl $0", "{st},{st}"(x86_fp80 %2)
%3 = load x86_fp80* %a, align 16
%4 = fmul x86_fp80 %3, 0xK4006B400000000000000
%5 = fmul x86_fp80 %4, 0xK4012F424000000000000
tail call void asm sideeffect "fistpl $0", "{st},
{st}"(x86_fp80 %5)
ret void
}

Fails with

Assertion `StackTop == 1 && FirstFPRegOp == getStackEntry(0) && "Top of stack not the right register for RET!"

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla tools:llc
Projects
None yet
Development

No branches or pull requests

1 participant