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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to