Bug 16945 – Have test runner in the test suite check CPU capability to determine whether to use -mavx flag

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-12-03T08:36:00Z
Last change time
2016-12-08T05:21:36Z
Keywords
bootcamp, SIMD
Assigned to
nobody
Creator
bugzilla
See also
https://issues.dlang.org/show_bug.cgi?id=16958

Comments

Comment #0 by bugzilla — 2016-12-03T08:36:55Z
Since not all the test machines have AVX support. But if the machine does have AVX, it would be best to run -mavx globally to give it the most thorough workout. For reference: https://github.com/dlang/dmd/pull/6296
Comment #1 by braddr — 2016-12-04T01:45:21Z
Also consider something akin to: if (cpuid.hasAVX) { ... } within the tests
Comment #2 by bugzilla — 2016-12-08T05:21:36Z
Replaced by -mcpu=native in https://github.com/dlang/dmd/pull/6306