[Issue 16914] Add -mavx switch to generate AVX instructions instead of SSE instructions

2016-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16914

--- Comment #1 from Walter Bright  ---
A start:

https://github.com/dlang/dmd/pull/6293

--


[Issue 16914] New: Add -mavx switch to generate AVX instructions instead of SSE instructions

2016-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16914

  Issue ID: 16914
   Summary: Add -mavx switch to generate AVX instructions instead
of SSE instructions
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

Because they're smaller & faster, and they have 3 operands instead of 2. Note
that this is not necessarily supporting 32 byte vectors.

--


[Issue 16914] Add -mavx switch to generate AVX instructions instead of SSE instructions

2016-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16914

Walter Bright  changed:

   What|Removed |Added

   Keywords||SIMD

--


[Issue 16885] Cannot deduce function from argument type when mixing template instantiation and implicit convertion

2016-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16885

uplink.co...@googlemail.com changed:

   What|Removed |Added

 CC||uplink.co...@googlemail.com

--- Comment #1 from uplink.co...@googlemail.com ---
works as intended.
Template types must no coerce.

--


[Issue 16885] New: Cannot deduce function from argument type when mixing template instantiation and implicit convertion

2016-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16885

  Issue ID: 16885
   Summary: Cannot deduce function from argument type when mixing
template instantiation and implicit convertion
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: mathias.l...@sociomantic.com

Sorry for the very generic title, didn't knew how to put it.

This snippet should compile:
```
T[] tail (T) (T[] v, in T[] i, out T[] o)
{
return v;
}

void main ()
{
const(char)[] p1, p2;
immutable(char)[] pi;
tail(p1, pi, p2);
}
```

As there is one possible instantiation for tail, which is `T=const(char)`.
But here the compiler fails to see it and spit out:
```
lol.d(11): Error: template lol.tail cannot deduce function from argument types
!()(const(char)[], string, const(char)[]), candidates are:
lol.d(1):lol.tail(T)(T[] v, in T[] i, out T[] o)
```

--


[Issue 15935] compiling dub with -fPIC triggers internal compiler error

2016-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15935

--- Comment #2 from Martin Krejcirik  ---
(In reply to Jonathan M Davis from comment #1)
> The same thing happens when compiling druntime with PIC=1 on the latest

What DMD version ? Also see issue 16031.

--