[LLVMbugs] [Bug 17817] New: ARMv7: Kaleidoscope "2" returns "1.000000".

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 5 06:35:48 PST 2013


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

            Bug ID: 17817
           Summary: ARMv7: Kaleidoscope "2" returns "1.000000".
           Product: new-bugs
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael at lyngvig.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I am entering the integer literal 2 into the Kaleidoscope sample built using
the stock v3.3 LLVM available in Arch Linux (pacman -S llvm).  The program then
informs me that it evaluated to 1.000000.  The generated IR code seems okay so
the problem must be in the JIT somewhere:

~/bld> ./Kaleidoscope
ready> 2
ready> Evaluated to 1.000000
ready> ; ModuleID = 'my cool jit'

declare void @abort()

define double @0() {
entry:
  ret double 2.000000e+00
}
~/bld>

Also, the declaration of "abort" turns up of itself so this must be something
LLVM generates.

Finally, this command:

    gcc `llvm-config --cxxflags --ldflags` Kaleidoscope.cpp

Gives a trillion unresolved externals.  I am building Kaleidoscope as part of
my own CMAKE project which builds correctly.  The Kaleidscope example's build
command (clang++ -g Kaleidoscope.cpp) doesn't build either.

Architecture: BeagleBoard Black (ARMv7l) running Arch Linux/ARM.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131105/221346cc/attachment.html>


More information about the llvm-bugs mailing list