[Issue 21486] assert fail cgcod.d:1864 with simd and -O
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 18 09:30:07 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21486
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |backend
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
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);
}
--
More information about the Digitalmars-d-bugs
mailing list