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

valid inline asm rejected #1205

Closed
lattner opened this issue Jul 18, 2006 · 3 comments
Closed

valid inline asm rejected #1205

lattner opened this issue Jul 18, 2006 · 3 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm-tools All llvm tools that do not have corresponding tag

Comments

@lattner
Copy link
Collaborator

lattner commented Jul 18, 2006

Bugzilla Link 833
Resolution FIXED
Resolved on Apr 01, 2019 13:42
Version 1.7
OS All
CC @yuanfang-chen

Extended Description

This:

int G;
int foo(int X) {
asm volatile ("xchg{l} {%0,%1|%1,%0}"
: "=m" (G), "+r" (X) : "m" (G));
return X;
}

Is rejected with:

asm.c:4: error: Invalid or unsupported inline assembly!

-Chris

@lattner
Copy link
Collaborator Author

lattner commented Jul 18, 2006

assigned to @lattner

@lattner
Copy link
Collaborator Author

lattner commented Jul 20, 2006

Patch applied to llvm-gcc, but now it crashes in the code generator.

@lattner
Copy link
Collaborator Author

lattner commented Jul 20, 2006

Fixed. Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060717/036098.html

Testcase here: CodeGen/X86/2006-07-20-InlineAsm.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 llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

1 participant