[LLVMbugs] [Bug 4110] New: codegen crash on i128 in 32-bit mode
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Apr 29 19:50:47 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4110
Summary: codegen crash on i128 in 32-bit mode
Product: libraries
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
llc crashes on this:
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9.0"
@numer = external global i64 ; <i64*> [#uses=1]
@denom = external global i64 ; <i64*> [#uses=1]
define i64 @test(i64 %val) nounwind readonly {
entry:
%conv = zext i64 %val to i128 ; <i128> [#uses=1]
%tmp3 = load i64* @numer, align 8 ; <i64> [#uses=1]
%conv4 = zext i64 %tmp3 to i128 ; <i128> [#uses=1]
%mul = mul i128 %conv4, %conv ; <i128> [#uses=1]
%tmp6 = load i64* @denom, align 8 ; <i64> [#uses=1]
%conv7 = zext i64 %tmp6 to i128 ; <i128> [#uses=1]
%div = sdiv i128 %mul, %conv7 ; <i128> [#uses=1]
%conv9 = trunc i128 %div to i64 ; <i64> [#uses=1]
ret i64 %conv9
}
--
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