D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17105 - [ICE] SIMD Internal error with optimizations: backend\cod3.c 6807
Summary: [ICE] SIMD Internal error with optimizations: backend\cod3.c 6807
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords: backend, pull, SIMD
: 17106 (view as issue list)
Depends on:
Blocks:
 
Reported: 2017-01-18 14:30 UTC by Simen Kjaeraas
Modified: 2020-12-23 02:57 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Simen Kjaeraas 2017-01-18 14:30:53 UTC
Test case:

module foo;
import core.simd;

struct bug {
    float4 value;
    auto normalize() {
        value = __simd(XMM.DPPS, value, value);
    }
}


Compiled with dmd -m64 -O foo.d
Comment 1 Walter Bright 2020-12-22 10:23:06 UTC
DPPS takes 3 arguments, like:

    __simd(XMM.DPPS, value, value, 0xFF);

Of course, the compiler still shouldn't issue an internal error.
Comment 2 Dlang Bot 2020-12-22 10:53:54 UTC
@WalterBright created dlang/dmd pull request #12046 "fix Issue 17105 - [ICE] SIMD Internal error with optimizations: backe…" fixing this issue:

- fix Issue 17105 - [ICE] SIMD Internal error with optimizations: backend\cod3.c 6807

https://github.com/dlang/dmd/pull/12046
Comment 3 Walter Bright 2020-12-23 00:48:33 UTC
*** Issue 17106 has been marked as a duplicate of this issue. ***
Comment 4 Dlang Bot 2020-12-23 02:57:51 UTC
dlang/dmd pull request #12046 "fix Issue 17105 - [ICE] SIMD Internal error with optimizations: backe…" was merged into master:

- 46bc5e52402236eac5b1fa5c2726e073b00a5399 by Walter Bright:
  fix Issue 17105 - [ICE] SIMD Internal error with optimizations: backend\cod3.c 6807

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