Thread overview | |||||
---|---|---|---|---|---|
|
June 09, 2013 compiler assert failure with ctfe on simd vector type | ||||
---|---|---|---|---|
| ||||
I get a compiler assert failing when trying to compile the follow minimal case: import core.simd; void main() { auto arr = si; } const float4 si = [1f, 1f, 1f, 1f]; This compiles fine: import core.simd; void main() { auto arr = si; } float4 si = [1f, 1f, 1f, 1f]; Should I file this or am I doing something dumb here? |
June 09, 2013 Re: compiler assert failure with ctfe on simd vector type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Roderick Gibson | On 6/8/2013 5:36 PM, Roderick Gibson wrote: > I get a compiler assert failing when trying to compile the follow minimal case: Please report all bugs to: http://d.puremagic.com/issues/ |
June 09, 2013 Re: compiler assert failure with ctfe on simd vector type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Roderick Gibson Attachments:
| On 9 June 2013 10:36, Roderick Gibson <kniteli@gmail.com> wrote:
> I get a compiler assert failing when trying to compile the follow minimal case:
>
> import core.simd;
>
> void main() {
> auto arr = si;
> }
>
> const float4 si = [1f, 1f, 1f, 1f];
>
> This compiles fine:
>
> import core.simd;
>
> void main() {
> auto arr = si;
> }
>
> float4 si = [1f, 1f, 1f, 1f];
>
> Should I file this or am I doing something dumb here?
>
Possibly unrelated to this, it looks like a bug... but certainly when it
comes to any SIMD operation. It's not really possible to solve unless the
compiler becomes aware of all architectures intrinsics.
One of my goals for std.simd is a CTFE path for all functions in the API.
This example should surely work though.
|
Copyright © 1999-2021 by the D Language Foundation