[LLVMbugs] [Bug 3080] New: LegalizeTypes unconditionally produces addc/ adde nodes for shl x, 1
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Nov 17 05:49:17 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3080
Summary: LegalizeTypes unconditionally produces addc/adde nodes
for shl x, 1
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: richard at xmos.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2212)
--> (http://llvm.org/bugs/attachment.cgi?id=2212)
Proposed patch
Running llc -march=xcore on the following:
define i64 @test(i64 %a) {
%result = shl i64 %a, 1
ret i64 %result
}
results in the following failure:
Cannot yet select: 0x161b958: i32,flag = adde 0x161bf58, 0x161bf58, 0x161c058:1
It looks like the problem lies in LegalizeTypes: it shouldn't generate
ADDC/ADDE nodes if they are not supported by the target. A patch to fix this is
attached.
--
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