Thread overview
[Issue 17215] [Reg 2.073] ICE(cgcod.c:findreg) with SIMD and -O -inline
[Issue 17215] ICE(cgcod.c:findreg) with SIMD and -O -inline
Feb 22, 2017
Walter Bright
Feb 24, 2017
Martin Nowak
Feb 24, 2017
Martin Nowak
Feb 24, 2017
Martin Nowak
Feb 24, 2017
Martin Nowak
Feb 24, 2017
Martin Nowak
February 22, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
This is working for me on Windows 64. It's listed as "All" platforms. Which is it failing on?

--
February 24, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|All                         |x86_64
                 OS|All                         |Linux

--- Comment #2 from Martin Nowak <code@dawg.eu> ---
Ah yes calling convention, it's definitely failing on linux x86_64. https://dpaste.dzfl.pl/449dd3669728

--
February 24, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
cat > bug.d << CODE
alias vec = __vector(int[4]);

vec binop(vec a)
{
    vec b = a;
    return b;
}
CODE
dmd -c -O bug
----
Internal error: backend/cgcod.c 1659
----

Further reduced, no longer requires -inline.

--
February 24, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

--- Comment #4 from Martin Nowak <code@dawg.eu> ---
Digger points to https://github.com/dlang/dmd/pull/6176 for having introduced this.

--
February 24, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE(cgcod.c:findreg) with   |[Reg 2.073]
                   |SIMD and -O -inline         |ICE(cgcod.c:findreg) with
                   |                            |SIMD and -O -inline
           Severity|major                       |regression

--
February 24, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #5 from Martin Nowak <code@dawg.eu> ---
https://github.com/dlang/dmd/pull/6566

--
February 25, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/46d1948f4c4f05143729f9849b4edefe01b1a02e fix Issue 17215 -  ICE(cgcod.c:findreg) with SIMD and -O -inline

- caused by assigning 2*REGSIZE XMM vectors partially
- only triggers since SROA sees this 8 bytes access

https://github.com/dlang/dmd/commit/b054a20d288db623c91ccbb9f2fb1e9f64e5f100 Merge pull request #6566 from MartinNowak/fix17215

fix Issue 17215 -  ICE(cgcod.c:findreg) with SIMD and -O -inline

--
February 25, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

--- Comment #7 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/46d1948f4c4f05143729f9849b4edefe01b1a02e fix Issue 17215 -  ICE(cgcod.c:findreg) with SIMD and -O -inline

https://github.com/dlang/dmd/commit/b054a20d288db623c91ccbb9f2fb1e9f64e5f100 Merge pull request #6566 from MartinNowak/fix17215

--
March 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

--- Comment #8 from github-bugzilla@puremagic.com ---
Commit pushed to revert-6566-fix17215 at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/4373a211ed16d05650aeb1779881b12e09c2ca80 Revert "fix Issue 17215 -  ICE(cgcod.c:findreg) with SIMD and -O -inline"

--
August 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17215

--- Comment #9 from github-bugzilla@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/46d1948f4c4f05143729f9849b4edefe01b1a02e fix Issue 17215 -  ICE(cgcod.c:findreg) with SIMD and -O -inline

https://github.com/dlang/dmd/commit/b054a20d288db623c91ccbb9f2fb1e9f64e5f100 Merge pull request #6566 from MartinNowak/fix17215

--