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

X86 backend lacks 'q' inlineasm constraint #1200

Closed
llvmbot opened this issue Jul 12, 2006 · 3 comments
Closed

X86 backend lacks 'q' inlineasm constraint #1200

llvmbot opened this issue Jul 12, 2006 · 3 comments
Assignees
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 12, 2006

Bugzilla Link 828
Resolution FIXED
Resolved on Feb 22, 2010 12:53
Version 1.7
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

cat |llvm-as|llc
target endian = little
target pointersize = 32
target triple = "i686-pc-linux-gnu"

implementation ; Functions:

void %_ZN5() {

cond_true9: ; preds = %entry
%tmp3.i.i = call int asm sideeffect "lock; cmpxchg $1,$2",
"={ax},q,m,0,{dirflag},{fpsr},{flags},{memory}"( int 0, int* null, int 0 )
; [#uses=0]
ret void
}
^D
llc: SelectionDAGISel.cpp:2230: void
llvm::SelectionDAGLowering::visitInlineAsm(llvm::CallInst&): Assertion `CTy ==
TargetLowering::C_RegisterClass && "Unknown op type!"' failed.
llc((anonymous namespace)::PrintStackTrace()+0x1f)[0x878a07f]
/lib/tls/i686/cmov/libc.so.6(abort+0x1dc)[0xb7dc27d8]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0x109)[0xb7dbad5d]
llc(llvm::SelectionDAGLowering::visitInlineAsm(llvm::CallInst&)+0x57e)[0x8559e2e]
Aborted

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jul 12, 2006

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Jul 12, 2006

Fixed. Testcase here:
CodeGen/X86/2006-07-12-InlineAsmQConstraint.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060710/035971.html

Thanks!

-Chris

@lattner
Copy link
Collaborator

lattner commented Jul 12, 2006

Oops, really, this is fixed. :)

@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
backend:X86 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