wilzbach / tools-test

1 stars 0 forks source link

Have test runner in the test suite check CPU capability to determine whether to use -mavx flag #150

Closed wilzbach closed 7 years ago

wilzbach commented 7 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#16945 From: Walter Bright <bugzilla@digitalmars.com> Reported version: D2 CC: braddr@puremagic.com

See also: BZ#16958

wilzbach commented 7 years ago

Comment author: Walter Bright <bugzilla@digitalmars.com>

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

wilzbach commented 7 years ago

Comment author: Brad Roberts <braddr@puremagic.com>

Also consider something akin to:

if (cpuid.hasAVX) { ... }

within the tests

wilzbach commented 7 years ago

Comment author: Walter Bright <bugzilla@digitalmars.com>

Replaced by -mcpu=native in https://github.com/dlang/dmd/pull/6306