[LLVMbugs] [Bug 13428] New: Cannot select: 0x2fab490: f64 = select_cc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 21 01:22:24 PDT 2012


             Bug #: 13428
           Summary: Cannot select: 0x2fab490: f64 = select_cc
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, rtrieu at google.com
    Classification: Unclassified

This bugpoint-reduced IR so small I'm just going to paste it:

  target datalayout =
  target triple = "x86_64-unknown-linux-gnu"

  define void @test() {
    call void @use(double 1.000000e+00)
    %A = icmp eq i64 undef, 2
    %B = zext i1 %A to i32
    %C = sitofp i32 %B to double
    call void @use(double %C)
    call void @use(double 0.000000e+00)

  declare void @use(double)

fails to build with llc -O1:

  $ llc -O1 bugpoint-reduced-simplified.bc
  LLVM ERROR: Cannot select: 0x2dc9490: f64 = select_cc 0x2dc6610, 0x2dc6710,
0x2dc6910, 0x2dc8f90, 0x2dc6810 [ID=14]
    0x2dc6610: i64 = undef [ORD=2] [ID=5]
    0x2dc6710: i64 = Constant<2> [ORD=2] [ID=6]
    0x2dc6910: f64,ch = load 0x2d9dc10, 0x2dc6a10, 0x2dc6610<LD8[ConstantPool]>
      0x2dc6a10: i64 = X86ISD::Wrapper 0x2dc5d10 [ID=11]
        0x2dc5d10: i64 = TargetConstantPool<double 1.000000e+00> 0 [ID=9]
      0x2dc6610: i64 = undef [ORD=2] [ID=5]
    0x2dc8f90: f64 = ConstantFP<0.000000e+00> [ORD=6] [ID=8]
  In function: test

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