Bug 21486 – assert fail cgcod.d:1864 with simd and -O

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-12-18T09:28:45Z
Last change time
2020-12-21T09:36:25Z
Keywords
backend, pull, SIMD
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2020-12-18T09:28:45Z
Comment #1 by bugzilla — 2020-12-18T09:30:07Z
Compile with -O: ------------------- import core.simd; void test7951_2() { float[4] v1 = [1,2,3,4]; float[4] v2 = [1,2,3,4]; float4 f1, f2, f3; f1.array = v1; f2.array = v2; f3 = f1 + f2; assert((cast(float[4])f3)[2] == 6); }
Comment #2 by bugzilla — 2020-12-20T02:32:12Z
Comment #3 by bugzilla — 2020-12-21T09:36:25Z
The PR was merged.