Bug 16697 – Extend IsExpression to accept __vector as a TypeSpecialization

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-11-17T00:50:00Z
Last change time
2017-03-22T12:21:21Z
Keywords
bootcamp, SIMD
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2016-11-17T00:50:35Z
https://dlang.org/spec/expression.html#TypeSpecialization Add __vector to the list of TypeSpecialization's. When used: is (__vector(float[4]) == __vector) will return true, is (__vector(float[4]) A == __vector) will set A to float[4]. This can be done with: is (__vector(float[4]) == __vector(T[N]), T, size_t N) alias A = T[N]; but is a bit noisy. The need for this comes up with templates specialized to work with vectors.
Comment #1 by bitter.taste — 2017-01-16T22:31:30Z
Comment #2 by github-bugzilla — 2017-01-20T03:01:10Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f298a8ca60fab15ac5a552f2818daf9724f2e0df Fix issue 16697 - Accept __vector as type specialization in is() https://github.com/dlang/dmd/commit/2853931c19f4f94b134da8bfa2867aba48d8a1c2 Merge pull request #6458 from LemonBoy/b16697 Fix issue 16697 - Accept __vector as type specialization in is()
Comment #3 by github-bugzilla — 2017-01-24T11:54:59Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f298a8ca60fab15ac5a552f2818daf9724f2e0df Fix issue 16697 - Accept __vector as type specialization in is() https://github.com/dlang/dmd/commit/2853931c19f4f94b134da8bfa2867aba48d8a1c2 Merge pull request #6458 from LemonBoy/b16697
Comment #4 by github-bugzilla — 2017-03-22T12:21:21Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f298a8ca60fab15ac5a552f2818daf9724f2e0df Fix issue 16697 - Accept __vector as type specialization in is() https://github.com/dlang/dmd/commit/2853931c19f4f94b134da8bfa2867aba48d8a1c2 Merge pull request #6458 from LemonBoy/b16697