Re: phobos build issue with dmd-2.102.2 (RESOLVED)

2023-05-08 Thread thinkunix via Digitalmars-d-learn
This is a followup to my original post on March 9 about issues building dmd-2.102.2 on an old Linux x86_64 system. See bugzilla: https://issues.dlang.org/show_bug.cgi?id=23846 The short answer is it is fixed as of dmd-2.104.0-beta.1, that version now builds dmd and phobos successfully.

Re: core.simd ubyte16 initialization weirdness.

2023-05-08 Thread realhet via Digitalmars-d-learn
On Monday, 8 May 2023 at 11:43:33 UTC, Richard (Rikki) Andrew Cattermole wrote: Don't forget to type bad2 which gives the same result as the good one. Otherwise it only has 7 elements in it. Thank You, now that's good too. So here are the weird stuff: Pure arrays produce errors: enum ubyte16

Re: core.simd ubyte16 initialization weirdness.

2023-05-08 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Don't forget to type bad2 which gives the same result as the good one. Otherwise it only has 7 elements in it. ```d static immutable ubyte16 bad2 = [1, 2, 3, 4, 5, 6, 7]; ``` ``` [1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0] [101, 102, 103, 104, 105, 106, 107, 100, 100, 100, 100, 100, 100, 1

Re: core.simd ubyte16 initialization weirdness.

2023-05-08 Thread realhet via Digitalmars-d-learn
On Monday, 8 May 2023 at 08:05:13 UTC, Richard (Rikki) Andrew Cattermole wrote: Yes, there is a pragma msg bug, but there is also a functionality 'bug'. I collected some more info: ``` import std, core.simd, ldc.llvmasm; T pshufb(T, U)(T a, in U b) { return __asm!ubyte16("pshufb $2, $1", "

Re: core.simd ubyte16 initialization weirdness.

2023-05-08 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 08/05/2023 9:07 AM, realhet wrote: I just don't understand why the int array fails -> [1, 2, 3] It would look so nice. It doesn't. ```d import std, core.simd; void main() { enum ubyte16 good1 = mixin([1, 2, 3, 4]), bad = [1, 2, 3, 4]; static immutable ubyte