HomeFreeBSD

tests/sys/kern/crc32: Check for SSE4.2 before using it

Description

tests/sys/kern/crc32: Check for SSE4.2 before using it

This avoids a SIGILL when running these tests on QEMU (which
defaults to a basic amd64 CPU without SSE4.2).

This commit also tests the table-based implementations in addition to
testing the hw-accelerated crc32 versions.

Reviewed By: cem, kib, markj
Differential Revision: https://reviews.freebsd.org/D28395

(cherry picked from commit 83c20b8a2da04937cf4af127366b3dc92c855784)

Details

Provenance
arichardsonAuthored on Feb 2 2021, 9:52 AM
Reviewer
cem
Differential Revision
D28395: tests/sys/kern/crc32: Check for SSE4.2 before using it
Parents
rG76713be0f593: Avoid double output in fenv_test
Branches
Unknown
Tags
Unknown