[LLVMbugs] [Bug 2435] New: likely bad codegen bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jun 12 13:18:57 PDT 2008


           Summary: likely bad codegen 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

For recent svn targeting ia32.

The generated code does not store to g_139 at all.  It should.

[regehr at babel tmp18]$ cat small.c
typedef int int32_t;
typedef unsigned int uint32_t;
int32_t g_139;

void func_56 (int32_t p_60)
  g_139 = 1;
  if (p_60) {
    for (1; 1; 1)
      g_139 = 1;

[regehr at babel tmp18]$ llvm-gcc -O small.c -S --emit-llvm -o -
; ModuleID = 'small.c'
target datalayout =
target triple = "i386-pc-linux-gnu"
@g_139 = common global i32 0            ; <i32*> [#uses=0]

define void @func_56(i32 %p_60) nounwind  {
        %tmp1 = icmp eq i32 %p_60, 0            ; <i1> [#uses=1]
        br i1 %tmp1, label %return, label %bb

bb:             ; preds = %entry, %bb
        br label %bb

return:         ; preds = %entry
        ret void

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