Re: SIMD/SSE support alignment

2013-03-12 Thread Geoffrey Mainland
On 03/10/2013 09:52 PM, Nicolas Trangez wrote: All, I've been toying with the SSE code generation in GHC 7.7 and Geoffrey Mainland's work to integrate this into the 'vector' library in order to generate SIMD code from high-level Haskell code. While working with this, I wrote some simple

Re: SIMD/SSE support alignment

2013-03-12 Thread Geoffrey Mainland
On 03/12/2013 03:01 PM, Johan Tibell wrote: On Tue, Mar 12, 2013 at 7:09 AM, Geoffrey Mainland mainl...@apeiron.net wrote: Unboxed vectors are allocated by GHC, and it does not align memory on 16-byte boundaries, so our first cut at SSE intrinsics simply used unaligned accesses. Obviously

Re: SIMD/SSE support alignment

2013-03-12 Thread Johan Tibell
On Tue, Mar 12, 2013 at 8:08 AM, Geoffrey Mainland mainl...@apeiron.netwrote: LLVM needs to know statically whether or not an SSE move is aligned---it can't be computed at runtime. I don't think passing an extra Int# argument (or whatever) to a primop is going to work. Ah, but sometimes

Re: [commit: testsuite] master: Revert Accept unicode quotes in T2507 (937c039)

2013-03-12 Thread Ian Lynagh
On Tue, Mar 12, 2013 at 08:26:46AM +, Simon Peyton-Jones wrote: | I don't know if there's an easy way to set a non-Unicode locale on | Windows; for now I've marked it as an expected failure. Is there a ticket for this bug? No, but the bug is in the testcase, not in GHC. Is it worth

RE: [commit: testsuite] master: Revert Accept unicode quotes in T2507 (937c039)

2013-03-12 Thread Simon Peyton-Jones
Oh, I thought the bug was that we don't know how to set a non-Unicode locale on Windows. Maybe it's not possible (ie bug in windows). Anyway, I don't mind! Regardless, worth commenting the expect-broken to say why. Maybe you already have. I'll go away now :-) Simon | -Original

Re: SIMD/SSE support alignment

2013-03-12 Thread Nicolas Trangez
Hey, On Tue, 2013-03-12 at 14:09 +, Geoffrey Mainland wrote: On 03/10/2013 09:52 PM, Nicolas Trangez wrote: ... Hi Nicolas, Have you read our paper about the SIMD work? It's available here: https://research.microsoft.com/en-us/um/people/simonpj/papers/ndp/haskell-beats-C.pdf I

Re: SIMD/SSE support alignment

2013-03-12 Thread Geoffrey Mainland
On 03/12/2013 08:08 PM, Nicolas Trangez wrote: Hey, On Tue, 2013-03-12 at 14:09 +, Geoffrey Mainland wrote: On 03/10/2013 09:52 PM, Nicolas Trangez wrote: ... Hi Nicolas, Have you read our paper about the SIMD work? It's available here: