[LLVMbugs] [Bug 4935] New: ARM HowToUseJIT Result: 10

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 9 07:21:45 PDT 2009


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

           Summary: ARM HowToUseJIT Result: 10
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: xerxes at zafena.se
                CC: llvmbugs at cs.uiuc.edu


Consider these two consecutive runs of HowToUseJIT on ARM: one returns 11
(correct) the other returns 10 (wrong).  It fails on about 1 of 4 runs.
tested using rev 81338

xerxes at sheeva:/wd/llvm/Debug/examples$ ./HowToUseJIT 
We just constructed this LLVM module:

; ModuleID = 'test'

define i32 @add1(i32 %AnArg) {
EntryBlock:
  %addresult = add i32 1, %AnArg                  ; <i32> [#uses=1]
  ret i32 %addresult
}

define i32 @foo() {
EntryBlock:
  %add1 = tail call i32 @add1(i32 10)             ; <i32> [#uses=1]
  ret i32 %add1
}

declare void @abort()


Running foo: Result: 11
xerxes at sheeva:/wd/llvm/Debug/examples$ ./HowToUseJIT 
We just constructed this LLVM module:

; ModuleID = 'test'

define i32 @add1(i32 %AnArg) {
EntryBlock:
  %addresult = add i32 1, %AnArg                  ; <i32> [#uses=1]
  ret i32 %addresult
}

define i32 @foo() {
EntryBlock:
  %add1 = tail call i32 @add1(i32 10)             ; <i32> [#uses=1]
  ret i32 %add1
}

declare void @abort()


Running foo: Result: 10
xerxes at sheeva:/wd/llvm/Debug/examples$


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