[LLVMbugs] [Bug 2807] New: CellSPU cannot select fdiv

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Sep 18 19:54:46 PDT 2008


           Summary: CellSPU cannot select fdiv
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ph.silva at gmail.com
                CC: llvmbugs at cs.uiuc.edu

This code:

; ModuleID = '<stdin>'

define double @div(double, double) nounwind {
        %2 = fdiv double %0, %1         ; <double> [#uses=1]
        ret double %2

fails to compile with:

$ llvm-as < div.ll | llc -march=cellspu 
Cannot yet select: 0x8a20ab4: f64 = fdiv 0x8a20cd4, 0x8a20de4

While writing this report, I found a comment on SPUInstrInfo.td asking for info
about how to map fdiv and other to Cell. GCC folks use some algorithms "taken
from STI's gcc" (see spu.md on GCC tree), but I don't know if GPL code is
welcome on a BSD-like licensed project.

The mentioned commented make this bug a "current feature", anyway would be good
to work on this.

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