[LLVMbugs] [Bug 7135] New: cast unsigned long -> double -> int gets assertion with -mno-mmx

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 13 19:29:20 PDT 2010


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

           Summary: cast unsigned long -> double -> int gets assertion
                    with -mno-mmx
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nomura at netapp.com
                CC: llvmbugs at cs.uiuc.edu


[cyclsvl01]$ /u/nomura/dl/Installed/clang/bin/clang -mno-mmx -c bug.i
fatal error: error in backend: Cannot yet select: 0x1509e0d0: f64 = bit_convert
0x1509ded0 [ID=20]
  0x1509ded0: i64 = or 0x1509dbd0, 0x1509c690 [ID=18]
    0x1509dbd0: i64 = and 0x1509c290, 0x1509cf90 [ID=15]
      0x1509c290: i64,ch = CopyFromReg 0x15085af8, 0x1509c190 [ORD=1] [ID=12]
        0x15085af8: ch = EntryToken [ORD=1] [ID=0]
        0x1509c190: i64 = Register %reg1024 [ORD=1] [ID=1]
      0x1509cf90: i64 = Constant<4294967295> [ID=8]
    0x1509c690: i64 = Constant<4841369599423283200> [ID=6]


[cyclsvl01]$ cat bug.i
unsigned long x;

int foo()
{
   return (int)(double)x;
}

I checked out llvm and clang from svn a couple days ago:
[cyclsvl01]$ svnversion .
103473

and built with
../llvm/configure --prefix=/u/nomura/dl/Installed/clang
--host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
--target=x86_64-unknown-freebsd7  --enable-debug-symbols    2>&1 | tee log

host is Linux cyclsvl01.eng.netapp.com 2.6.18-164.10.1.el5 #1 SMP Wed Dec 30
18:35:28 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

-- 
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