← Back to index
|
Original Bugzilla link
Bug 16703 – Support indexing of SIMD vector types
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-11-20T01:13:00Z
Last change time
2017-01-16T23:25:07Z
Keywords
SIMD
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0
by bugzilla — 2016-11-20T01:13:37Z
Indexing should work, at least on lvalues: import core.simd; float foo(float4 f4) { // This should work return f4[2]; // This currently does work return (*cast(float[4]*)&f4)[2]; } Slicing should also work: float[4] foo(float4 f4) { return f4[]; }
Comment #1
by bugzilla — 2016-11-20T04:03:46Z
https://github.com/dlang/dmd/pull/6264
Comment #2
by github-bugzilla — 2016-11-20T06:28:15Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/82d81c8679a6b7330055a48283414c2810beec47
fix Issue 16703 - Support indexing of SIMD vector types
https://github.com/dlang/dmd/commit/ca488df0e85d7bff3df112698558a2690718f41d
Merge pull request #6264 from WalterBright/fix16703 fix Issue 16703 - Support indexing of SIMD vector types
Comment #3
by github-bugzilla — 2016-12-27T14:41:12Z
Commits pushed to scope at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/82d81c8679a6b7330055a48283414c2810beec47
fix Issue 16703 - Support indexing of SIMD vector types
https://github.com/dlang/dmd/commit/ca488df0e85d7bff3df112698558a2690718f41d
Merge pull request #6264 from WalterBright/fix16703
Comment #4
by github-bugzilla — 2017-01-16T23:25:07Z
Commits pushed to newCTFE at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/82d81c8679a6b7330055a48283414c2810beec47
fix Issue 16703 - Support indexing of SIMD vector types
https://github.com/dlang/dmd/commit/ca488df0e85d7bff3df112698558a2690718f41d
Merge pull request #6264 from WalterBright/fix16703