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

crash compiling inline asm #1421

Closed
asl opened this issue Dec 15, 2006 · 4 comments
Closed

crash compiling inline asm #1421

asl opened this issue Dec 15, 2006 · 4 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:codegen

Comments

@asl
Copy link
Collaborator

asl commented Dec 15, 2006

Bugzilla Link 1049
Resolution FIXED
Resolved on Feb 22, 2010 12:50
Version 1.8
OS Linux
Blocks #1234
Attachments Failed bytecode

Extended Description

Qt-compiling series is continuing...

Attached bytecode forces llc to crash with assertion:

./llc bugpoint-reduced-simplified.bc
llc: /home/asl/proj/llvm/src/include/llvm/Support/Casting.h:199: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::ConstantSDNode, Y = llvm::SDOperand]: Assertion `isa(Val) &&
"cast() argument of incompatible type!"' failed.
./llc((anonymous namespace)::PrintStackTrace()+0x1f)[0x85a8cef]
/lib/libc.so.6(abort+0xeb)[0xb7d6d133]
/lib/libc.so.6(__assert_fail+0xeb)[0xb7d654f3]
./llc(llvm::ScheduleDAG::EmitNode(llvm::SDNode*, std::map<llvm::SDNode*,
unsigned int, std::lessllvm::SDNode*, std::allocator<std::pair<llvm::SDNode*
const, unsigned int> > >&)+0x1079)[0x840dcd9]

@asl
Copy link
Collaborator Author

asl commented Dec 15, 2006

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Dec 16, 2006

This looks like an inline asm bug.

@lattner
Copy link
Collaborator

lattner commented Dec 16, 2006

Fixed. This was a subtle nasty bug with a simple fix. Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061211/041497.html

Testcase here:
CodeGen/Generic/2006-12-16-InlineAsmCrash.ll

Thanks!

-Chris

@asl
Copy link
Collaborator Author

asl commented Nov 27, 2021

mentioned in issue #1234

@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:codegen
Projects
None yet
Development

No branches or pull requests

2 participants