[LLVMbugs] [Bug 4235] New: copyFromParts bug with valueVt=f64 -> PartVT=i16

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue May 19 09:35:15 PDT 2009


           Summary: copyFromParts bug with valueVt=f64 -> PartVT=i16
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: quickslyver at free.fr
                CC: llvmbugs at cs.uiuc.edu

there is a bug with getCopyFromParts() function from f64  (valueVT)  to i16
this function try to convert recursively using this path: 
f64 -> f32 -> f16 -> i16 

but f16 doesn't exist and this finish in an assertion failure.

This bug happen with the following llvm code case on MSP430 target 
( because it's a 16 bit target)

; ModuleID = 'test.c'
target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
target triple = "msp430-unknown-unknown"

define i16 @test(double %d) nounwind {
        %add = add double %d, 1.000000e+00              ; <double> [#uses=1]
        %call = tail call i16 @funct(double %add) nounwind              ; <i16>
        ret i16 %call

declare i16 @funct(double)

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