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

instrs with multiple frame indices don't get them all rewritten #1680

Closed
llvmbot opened this issue Apr 5, 2007 · 5 comments
Closed

instrs with multiple frame indices don't get them all rewritten #1680

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

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 5, 2007

Bugzilla Link 1308
Resolution FIXED
Resolved on Feb 22, 2010 12:51
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

$ cat|llvm-as|llc >/dev/null
define void @​stuff(i32, ...) {
%foo = alloca i8*
%bar = alloca i32*
%tmp10.i.i57 = call i32 asm sideeffect "movl $4,%edi", "={ax},0,i,m,m"( i32 0, i32 120, i8** %foo,
i32** %bar )
ret void
}
^D
llc: /usr/local/code/llvm/llvm/include/llvm/CodeGen/MachineInstr.h:233: unsigned int
llvm::MachineOperand::getReg() const: Assertion `isRegister() && "This is not a register operand!"'
failed.
llc((anonymous namespace)::PrintStackTrace()+0x19)[0x861ee09]
Aborted

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 5, 2007

assigned to @lattner

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 5, 2007

Also, if I run this in bugpoint I get a crash:
Read input file : 'foo.bc'
*** All input ok
Found gcc: /usr/bin/gcc
Initializing execution environment: Running the code generator to test for a crash: terminate called
after throwing an instance of 'llvm::ToolExecutionError'
bugpoint((anonymous namespace)::PrintStackTrace()+0x19)[0x83b6949]
Aborted

@lattner
Copy link
Collaborator

lattner commented Apr 9, 2007

Fixed, testcase here: CodeGen/Generic/2007-04-08-MultipleFrameIndices.ll

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

Thanks!

-Chris

@ggreif
Copy link
Contributor

ggreif commented Nov 26, 2021

mentioned in issue llvm/llvm-bugzilla-archive#1557

@ggreif
Copy link
Contributor

ggreif commented Nov 26, 2021

mentioned in issue llvm/llvm-bugzilla-archive#1682

@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

3 participants