Bug 9860 – Shifting a vector by a scalar value should be allowed

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2013-04-02T09:09:30Z
Last change time
2024-12-13T18:05:46Z
Assigned to
No Owner
Creator
kai
Moved to GitHub: dmd#18554 →

Comments

Comment #0 by kai — 2013-04-02T09:09:30Z
SSE2 has the PSLLW, PSRLW and PSRAW instruction family. Thus the shift operators <<, >> and >>> can be implemented for vectors in terms of these instructions. This is an useful extension because cryptographic algorithm require a shift operation very often (e.g. see the vectorized version of SHA1).
Comment #1 by robert.schadek — 2024-12-13T18:05:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18554 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB