[LLVMbugs] [Bug 4592] New: ARM JIT 1+1=0

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jul 20 06:43:30 PDT 2009


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

           Summary: ARM JIT 1+1=0
           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: xerxes at zafena.se
                CC: llvmbugs at cs.uiuc.edu


Running Kaleidoscope on a armv5t sheevaplug using llvm svn 2.6 r76402:

ready> 1+1;
ready> Evaluated to 0.000000

ready> def test() 1+1;
ready> Read function definition:
define double @test() {
entry:
        ret double 2.000000e+00
}
ready> test();
ready> Evaluated to 0.000000
ready> 

ready> 0-2;
ready> Evaluated to 0.000000

... testing some other numbers to check the sanity of the JIT.

ready> 1;
ready> Evaluated to 1.000000

ready> def testtest() 1+2;
ready> Read function definition:
define double @testtest() {
entry:
        ret double 3.000000e+00
}

ready> testtest();
ready> Evaluated to 3.000000
ready> 11111111111;
ready> Evaluated to 11111111111.000000

seems ok.

...  OK now testing 0

ready> def zero() 0;
ready> Read function definition:
define double @zero() {
entry:
        ret double 0.000000e+00
}

ready> zero();
ready> Evaluated to 104.000992

ready> 0;
ready> Evaluated to 104.004898
ready> 0;
ready> Evaluated to 104.005875
ready> 0;
ready> Evaluated to 104.006851
ready> 0;
ready> Evaluated to 104.007828
ready> 0;
ready> Evaluated to 104.008804
ready> 0;
ready> Evaluated to 104.009781
ready> 0;
ready> [New Thread 0x4001f740 (LWP 27893)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4001f740 (LWP 27893)]
0x41320000 in ?? ()
(gdb) bt
#0  0x41320000 in ?? ()
#1  0x000980d0 in main () at
/usr/src/openembedded/verdexpro/tmp/work/armv5te-angstrom-linux-gnueabi/llvm2.6-2.5+svnr76402-r1/trunk/examples/Kaleidoscope/toy.cpp:1042


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