[LLVMbugs] [Bug 15303] New: __builtin_expect(n, 0) && 0 triggers fatal error: error in backend: Cannot select

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 19 14:36:35 PST 2013


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

            Bug ID: 15303
           Summary: __builtin_expect(n, 0) && 0 triggers fatal error:
                    error in backend: Cannot select
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andersk at mit.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang 3.2-1~exp5ubuntu2 on Ubuntu 13.04 amd64 gives a strange backend error
when compiling mosh (https://github.com/keithw/mosh).  Using creduce I found
this minimal test case:

int main()
{
    int n;
    __builtin_expect(n, 0) && 0;
    return 0;
}

fatal error: error in backend: Cannot select: 0x1be4580: i64 = fexp2 0x1be4480
[ORD=1] [ID=4]
  0x1be4480: i64,ch = CopyFromReg 0x1bd1e30, 0x1be4380 [ORD=1] [ID=3]
    0x1be4380: i64 = Register %vreg3 [ORD=1] [ID=1]
In function: main

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130219/15ca2113/attachment.html>


More information about the llvm-bugs mailing list