[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


http://llvm.org/bugs/show_bug.cgi?id=13428

             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 =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
  target triple = "x86_64-unknown-linux-gnu"

  define void @test() {
  entry:
    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)
    unreachable
  }

  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]>
[ID=12]
      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