[LLVMbugs] [Bug 2513] New: invalid bitcode bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jul 2 09:13:55 PDT 2008


           Summary: invalid bitcode bug
           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: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu

This is using svn 53007 on Ubuntu Feisty on ia32.

[regehr at babel tmp36]$ /home/regehr/z/llvm/Release/bin/clang small.c --emit-llvm
-o - | llvm-as | opt -std-compile-opts | llc
llc: bitcode didn't read correctly.
Reason: Invalid bitcode signature

[regehr at babel tmp36]$ cat small.c
volatile short g_2;
unsigned char g_14;
int g_107;
volatile short g_121;
int g_131;
short g_154;

int func_10 (short p_11)
  return g_14;

int func_32 (short p_33, short p_34, unsigned char p_36, unsigned p_38,
             short p_39)
  for (0; 1; g_14--)
    if (1 != (func_63 (1, g_107, 1, 1)))
      for (1; 1; g_154++);

int func_63 (short p_64, short p_65, short p_66, int p_67)
  for (1; g_2; --g_2)
      (func_72 (p_67));
      if (g_131)
        return 1;
  return p_65;

int func_72 (short p_73)
  if (func_10 (1))
      if (p_73)
        return g_2;
      for (1; 1; p_73--);
  for (0; g_121; --g_121);
  for (g_107 = 1; 0; g_107--);

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