LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 818 - Legalize doesn't legalize through inline asm
Summary: Legalize doesn't legalize through inline asm
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Common Code Generator Code (show other bugs)
Version: 1.7
Hardware: All All
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-07-06 10:21 PDT by Andrew Lenharth
Modified: 2010-02-22 12:49 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Lenharth 2006-07-06 10:21:49 PDT
Legalize doesn't legalize the arguments to an inline asm call.  see
test/Regression/CodeGen/Alpha/2006-07-03-ASMFormalLowering.ll for an example.  I
would think that a similar example (function consisting of only a call to an
inline asm block) in other archs would show the same problem.
Comment 1 Chris Lattner 2006-07-10 20:10:48 PDT
What am I missing here?

$ llvm-as < 2006-07-03-ASMFormalLowering.ll | llc -march=alpha
 Cannot yet select: 0x8603da0: i64,i64,ch = formal_arguments 0x8603cf0, 0x8603d50, 0x8603d50
Abort

This looks like you haven't implemented support for formal arguments yet.  ?

-Chris
Comment 2 Chris Lattner 2006-07-10 20:12:47 PDT
ok, I get it, investigating.
Comment 3 Chris Lattner 2006-07-10 20:41:07 PDT
Fixed.  Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060710/035942.html

Testcase here:
CodeGen/Alpha/2006-07-03-ASMFormalLowering.ll

-Chris