https://llvm.org/bugs/show_bug.cgi?id=26381
Bug ID: 26381
Summary: PowerPC64: fast isel doesn't sign extend 32bit signed
constant
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Using the following testcase:
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"
define internal signext i32 @foo() #0 {
ret i32 -125452974
}
-O1 sign extends the constant:
# llc -O1 test.ll
...
foo:
lis 3, -1915
ori 3, 3, 48466
blr
-O1 -fast-isel zero extends the constant:
# llc -O1 -fast-isel test.ll
...
foo:
lis 3, 31810
ori 3, 3, 57001
sldi 3, 3, 1
blr
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs