[Issue 21490] Front end detection logic for SSE4.1 is failing when using -O
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 20 08:12:35 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21490
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Test case clipped from dmd/test/runnable/testxmm.d:
-------
import core.simd;
void test2e()
{
int4 v1, v2 = 1, v3 = 1;
v1 = v2 + v3;
static if (__traits(compiles, { v1 = v2 * v3; })) // SSE4.1
v1 = v2 * v3;
}
int main() { test2e(); return 0; }
------
This will seg fault on illegal PMULLD instruction if running on a machine
without SSE4.1
--
More information about the Digitalmars-d-bugs
mailing list