llvmpy / llvmpy

Originally a github fork of the llvm-py repository from http://www.mdevan.org/llvm-py/index.html updated to work with LLVM 3.x. Since then it has changed significantly with multiple sub-projects.

Home Page:www.llvmpy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests segfault on armv7l architecture

sergiopasra opened this issue · comments

Hi, I have packaged llvmpy for Fedora Linux. Fedora now has armv7l as one of its primary architectures, that means that all packages are build on it by default.

I have noticed that the tests in llvm.test() in version 0.12.0 fail with segmentation fault in this particular architecture.

the problem seems to be in test_cpu_support2

   $ arch
   armv7l
   $ nosetests -v /opt/lib/python2.7/site-packages
   (...)   
   test_bitcode (llvm.test_llvmpy.TestAsm) ... ok
   test_atomic_cmpxchg (llvm.test_llvmpy.TestAtomic) ... ok
   test_atomic_ldst (llvm.test_llvmpy.TestAtomic) ... ok
   test_atomic_rmw (llvm.test_llvmpy.TestAtomic) ... ok
   test_align (llvm.test_llvmpy.TestAttr) ... ok
   test_cpu_support2 (llvm.test_llvmpy.TestCPUSupport) ... '-sse3' is not a   recognized feature for this target (ignoring feature)
   '-sse41' is not a recognized feature for this target (ignoring feature)
   '-sse42' is not a recognized feature for this target (ignoring feature)
   '-avx' is not a recognized feature for this target (ignoring feature)
   '-sse3' is not a recognized feature for this target (ignoring feature)
   '-sse41' is not a recognized feature for this target (ignoring feature)
   '-sse42' is not a recognized feature for this target (ignoring feature)
   '-avx' is not a recognized feature for this target (ignoring feature)
   Stack dump:
   0.   Running pass 'ARM Machine Code Emitter' on function '@mysin'
   Segmentation fault

I have set up a virtual machine to make this test, I do not own armv7l hardware my self. I have followed to instructions here https://fedoraproject.org/wiki/Architectures/ARM/F19/Installation#For_Versatile_Express_Emulation_with_QEMU to setup the VM.

Some of the tests are architecture specific. We really haven't been testing on non x86 arch yet. I will be reviewing the tests.

-Siu

On Oct 2, 2013, at 4:26 AM, Sergio notifications@github.com wrote:

Hi, I have packaged llvmpy for Fedora Linux. Fedora now has armv7l as one of its primary architectures, that means that all packages are build on it by default.

I have noticed that the tests in llvm.test() in version 0.12.0 fail with segmentation fault in this particular architecture.

the problem seems to be in test_cpu_support2

$ arch
armv7l
$ nosetests -v /opt/lib/python2.7/site-packages
(...)
test_bitcode (llvm.test_llvmpy.TestAsm) ... ok
test_atomic_cmpxchg (llvm.test_llvmpy.TestAtomic) ... ok
test_atomic_ldst (llvm.test_llvmpy.TestAtomic) ... ok
test_atomic_rmw (llvm.test_llvmpy.TestAtomic) ... ok
test_align (llvm.test_llvmpy.TestAttr) ... ok
test_cpu_support2 (llvm.test_llvmpy.TestCPUSupport) ... '-sse3' is not a recognized feature for this target (ignoring feature)
'-sse41' is not a recognized feature for this target (ignoring feature)
'-sse42' is not a recognized feature for this target (ignoring feature)
'-avx' is not a recognized feature for this target (ignoring feature)
'-sse3' is not a recognized feature for this target (ignoring feature)
'-sse41' is not a recognized feature for this target (ignoring feature)
'-sse42' is not a recognized feature for this target (ignoring feature)
'-avx' is not a recognized feature for this target (ignoring feature)
Stack dump:

  1. Running pass 'ARM Machine Code Emitter' on function '@MySin'
    Segmentation fault
    I have set up a virtual machine to make this test, I do not own armv7l hardware my self. I have followed to instructions here https://fedoraproject.org/wiki/Architectures/ARM/F19/Installation#For_Versatile_Express_Emulation_with_QEMU to setup the VM.


Reply to this email directly or view it on GitHub.

I'm seeing the same issue on aarch64 (arm64) so it would be useful to have architecture specific tests so that both the non x86 tests aren't run but also to have tests for non x86 too