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

-inline crash inlining asm into EH target #1707

Closed
llvmbot opened this issue Apr 15, 2007 · 2 comments
Closed

-inline crash inlining asm into EH target #1707

llvmbot opened this issue Apr 15, 2007 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 15, 2007

Bugzilla Link 1335
Resolution FIXED
Resolved on Feb 22, 2010 12:49
Version 1.9
OS Linux
Attachments testcase
Reporter LLVM Bugzilla Contributor

Extended Description

The -inline pass creates invalid bytecode from this testcase:

opt -inline hi_res.bc
WARNING: You're attempting to print out a bytecode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bytecode first-hand, you
can force output with the `-f' option.

Cannot take the address of an inline asm!
invoke void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx,
$1", "==imr,==imr,{dirflag},{fpsr},{flags},{dx},~{ax}"( i32* null, i32*
null )
to label %.noexc unwind label %cleanup144
Broken module found, compilation aborted!

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 15, 2007

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Apr 15, 2007

A winning combination: exceptions AND inline asm! :)

Fixed, patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070409/047684.html

Testcase here: Transforms/Inline/2007-04-15-InlineEH.ll

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
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 compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

2 participants