[Issue 15728] ICE while simd vec.f.array compared to ordinal array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 3 18:42:51 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=15728
--- Comment #2 from Basile-z <b2.temp at gmx.com> ---
No actually everything is fine
import core.simd;
int4 f()
{
int4 vec = [-1, -1, -1, -1];
return vec;
}
void main()
{
assert(f().array == [-1, -1, -1, -1]);
int4 v2 = f();
assert(v2.array == [-1, -1, -1, -1]);
int4 vec = [1, 1, 1, 1];
assert((-vec).array == [-1, -1, -1, -1]);
int4 neg = -vec;
assert(neg.array == [-1, -1, -1, -1]);
neg = -neg;
assert(neg.array == [1, 1, 1, 1]);
}
--
More information about the Digitalmars-d-bugs
mailing list