[LLVMbugs] [Bug 2538] New: llvm-as gives an error on extremely large constants

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 10 08:08:30 PDT 2008


           Summary: llvm-as gives an error on extremely large constants
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


target datalayout =
target triple = "i686-pc-linux-gnu"

define void @a() {
        br label %dobody

dobody:         ; preds = %dobody, %entry
        %y.0 = phi i128 [ 0, %entry ], [ %add, %dobody ]
        %x.0 = phi i128 [ 0, %entry ], [ %add2, %dobody ]
        %add = add i128 %y.0, shl (i128 1, i128 64)
        %add2 = add i128 %x.0, shl (i128 1, i128 48)
        call void @b( i128 %add )
        %cmp = icmp ult i128 %add2, shl (i128 1, i128 64)
        br i1 %cmp, label %dobody, label %afterdo

afterdo:                ; preds = %dobody
        ret void

To reproduce, run llvm-as | llvm-dis | llvm-as, and note that llvm-as rejects
the output of llvm-dis with the following error:
/home/eli/llvmbin/Debug/bin/llvm-as: <stdin>:12,0: <stdin>:12: error: syntax
error, unexpected EUAPINTVAL while reading token: '18446744073709551616'

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