Skip to content

Commit

Permalink
Add tests for the possibly gcc miscompile error of LLVM in the mandel…
Browse files Browse the repository at this point in the history
… example.
  • Loading branch information
sklam committed Nov 29, 2012
1 parent 4cb9e4f commit 33e2323
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions numba/tests/issues/test_potential_gcc_error.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This tests a potential GCC 4.1.2 miscompile of LLVM.
# The problem is observed as a error in greedy register allocation pass,
# which resulted as a segfault.
# No such problem in GCC 4.4.6.


from numba import *
import numpy as np

@jit(uint8[:,:](f8, f8, f8, f8, uint8[:,:], int32))
def create_fractal(min_x, max_x, min_y, max_y, image, iters):
return image



1 comment on commit 33e2323

@jriehl
Copy link
Contributor

@jriehl jriehl commented on 33e2323 Nov 29, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this module tests for issue #58.

Please sign in to comment.