[haskell-llvm] Crashes in Array, Vector, DotProd

Henning Thielemann lemming at henning-thielemann.de
Tue Oct 12 07:28:38 EDT 2010

David Terei schrieb:
> On 12 October 2010 07:40, Bryan O'Sullivan <bos at serpentine.com> wrote:
>> So 2.8 uses fadd for floats, and add for ints, while we have just add?
> Yeah llvm-2.6 introduced new 'fadd', 'fsub' and 'fmul' operations for
> floating point arithmetic. The old overloaded arithmetic operators
> continued to work with integer and floating point types for 2.6 and
> 2.7 to allow for an easier transition but now that has been dropped in
> 2.8.
> Here is the line from the 2.6 release notes:
> 'The Add, Sub, and Mul operators are no longer overloaded for
> floating-point types. Floating-point addition, subtraction, and
> multiplication are now represented with new operators FAdd, FSub, and
> FMul'

Attached is a patch that fixes 'add'&Co. in the way I proposed and
introduces 'iadd' and friends.

There is still a problem with BrainF that I have to fix.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: integer-arithmetic.darcs
Url: http://projects.haskell.org/pipermail/haskell-llvm/attachments/20101012/2a3debbc/attachment-0001.txt 

More information about the Haskell-llvm mailing list