[LLVMbugs] [Bug 1894] New: Landing pad label misplaced
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jan 2 02:11:13 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=1894
Summary: Landing pad label misplaced
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicolas.geoffray at lip6.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=1313)
--> (http://llvm.org/bugs/attachment.cgi?id=1313)
Bug test case
This bug only happens when generating ppc code (by default it uses the list-td
scheduler. The other schedulers don't have this bug)
The landing pad label is placed after a few instructions that belong to a
landing pad basic block. I use the attached test case, which is not generated
by llvm-gcc.
Just run:
./Release/bin/llvm-as -f lp.ll
./Release/bin/llc -enable-eh -f -march=ppc32 lp.bc
For the unwind block, the code generated is:
BB1_2: # unwind
lis 3, printf at ha
lis 4, .str at ha
creqv 6, 6, 6
la 5, printf at l(3)
la 6, .str at l(4)
label3:
li 4, 5
li 30, 2
...
It should be:
BB1_2: # unwind
label3:
lis 3, printf at ha
lis 4, .str at ha
creqv 6, 6, 6
la 5, printf at l(3)
la 6, .str at l(4)
li 4, 5
li 30, 2
...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list