[LLVMbugs] [Bug 20098] New: Backend crashes on mode(TI) add/sub for mips64

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 21 20:47:13 PDT 2014


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

            Bug ID: 20098
           Summary: Backend crashes on mode(TI) add/sub for mips64
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: duane.sand at imgtec.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Android's 3.4 and 3.5 clang crashes in backend when compiling Android's latest
copy of compiler-rt to a mips64 target.  The crashes happens on every
recently-added CRT_HAS_128BIT compiler_rt/lib/builtins/* routine that uses the
mode(TI) 128-bit integer datatype.

compile command for reduced example:
prebuilts/clang/linux-x86/host/3.5/bin/clang -target mips64el-linux-android
clangbug.c


Source code for reduced test case clangbug.c:

typedef int ti_int __attribute__ ((mode (TI)));
ti_int  bug(ti_int a, ti_int b)
{
    return a + b;
}


This gives the compile-time failure message:

fatal error: error in backend: Cannot select: 0xf8852f88: i64,glue = addc
0xf8852dd8, 0xf8850d00 [ORD=8] [ID=34]
  0xf8852dd8: i64,ch = load 0xf8852d48, 0xf8851690,
0xf8851720<LD8[%1](align=16)> [ORD=6] [ID=32]
    0xf8851690: i64 = FrameIndex<0> [ID=9]
    0xf8851720: i64 = undef [ID=10]
  0xf8850d00: i64,ch = CopyFromReg 0xf8843490, 0xf8850c70 [ORD=1] [ID=17]
    0xf8850c70: i64 = Register %vreg2 [ID=3]
In function: bug
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.5
Target: mips64el--linux-android


This problem is preventing all builds of the mips64 version of Android at AOSP.
 As a workaround until the mips64 codegen is made solid for this datatype and
that compiler is available at aosp, we are removing these unneeded
CRT_HAS_128BIT library routines via the compiler_rt patch
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140616/222726.html

-- 
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/20140622/148328b8/attachment.html>


More information about the llvm-bugs mailing list