Bug 23221 – codegen: Casting from static array to vector should result in an element-wise conversion

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-06-29T11:01:22Z
Last change time
2024-12-13T19:23:40Z
Keywords
rejects-valid, SIMD, wrong-code
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=23218, https://issues.dlang.org/show_bug.cgi?id=23219, https://issues.dlang.org/show_bug.cgi?id=23220
Moved to GitHub: dmd#18114 →

Comments

Comment #0 by ibuclaw — 2022-06-29T11:01:22Z
Separate from CTFE, as the fix can be done independently - possibly also fixing issue 23218 too. i.e: --- int[4] arr = [1,2,3,4]; float4 vec = cast(float4)arr; assert(vec.array == [1,2,3,4]);
Comment #1 by robert.schadek — 2024-12-13T19:23:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18114 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB